AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Orpheu Help]Semiclip go through doors (https://forums.alliedmods.net/showthread.php?t=173348)

hzqst 12-04-2011 04:38

[Orpheu Help]Semiclip go through doors
 
Anyway I think it a good way but somehow don't understand
from https://forums.alliedmods.net/showthread.php?t=163322
Team semiclip 3.0, crashes my server.
PHP Code:

int g_iWantedPlayersMAX_PHYSENTS ];
int g_iWantedCount;

void FN_PM_Movestruct playermove_s *ppmoveqboolean server )
{
    if( !
ppmove -> spectator )
    {
        
g_iWantedCount 0;
        
        for( 
int i 0ppmove -> numphysenti++ )
            if( 
g_fn_GetPlayerTeamIDppmove -> player_index ) != g_fn_GetPlayerTeamIDppmove -> physents].info ) )
                
g_iWantedPlayersg_iWantedCount++ ] = i;
        
        for( 
int i 0g_iWantedCounti++ )
            if( 
!= g_iWantedPlayers] )
                
ppmove -> physents] = ppmove -> physentsg_iWantedPlayers] ];
        
        
ppmove -> numphysent g_iWantedCount;
    }
    
    
RETURN_METAMRES_IGNORED );


I don't know what ppmove -> physents[ i ] contains so I have no idea what to do with it


May I covert that module into Orpheu version just like:
PHP Code:

public PM_Move( const OrpheuStruct:ppmove, const server ){
    
    
g_iPMLastPlayer OrpheuGetParamStructMember1"player_index" ) + 1;
    if(
OrpheuGetParamStructMember1"deadflag" ) == DEAD_NO)
    {
........................
    }


and add a feature to let player go through doors?


All times are GMT -4. The time now is 08:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.