1 #using scripts\codescripts\struct;
3 #using scripts\shared\audio_shared;
4 #using scripts\shared\callbacks_shared;
5 #using scripts\shared\exploder_shared;
6 #using scripts\shared\filter_shared;
7 #using scripts\shared\footsteps_shared;
8 #using scripts\shared\system_shared;
9 #using scripts\shared\util_shared;
10 #using scripts\shared\vehicle_shared;
11 #using scripts\shared\vehicles\_driving_fx;
13 #insert scripts\shared\shared.gsh;
15 #using scripts\zm\_filter;
16 #using scripts\zm\_sticky_grenade;
17 #using scripts\shared\util_shared;
36 level.callbackPlayAIFootstep = &footsteps::playaifootstep;
37 level.callbackPlayLightLoopExploder = &exploder::playlightloopexploder;
46 if ( isdefined( level.characterCustomizationSetup ) )
48 [[ level.characterCustomizationSetup ]]( localclientnum );
54 self endon(
"entityshutdown" );
56 if ( isdefined( level._playerspawned_override ) )
58 self thread [[level._playerspawned_override]]( localClientNum );
62 if (
self isLocalPlayer() )
67 level.localPlayers = getLocalPlayers();
72 self endon(
"entityshutdown" );
76 if( isdefined( level._clientFaceAnimOnPlayerSpawned ) )
78 self thread [[level._clientFaceAnimOnPlayerSpawned]](localClientNum);
82 if ( isdefined( level._entityspawned_override ) )
84 self thread [[level._entityspawned_override]]( localClientNum );
88 if ( !isdefined(
self.type ) )
94 if (
self.type ==
"missile" )
96 if( isdefined( level._custom_weapon_CB_Func ) )
98 self thread [[level._custom_weapon_CB_Func]]( localClientNum );
102 switch(
self.weapon.name )
116 case "sticky_grenade":
122 else if(
self.type ==
"vehicle" ||
self.type ==
"helicopter" ||
self.type ==
"plane" )
124 if( isdefined(level._customVehicleCBFunc) )
126 self thread [[level._customVehicleCBFunc]](localClientNum);
132 if (
self.type ==
"plane" ||
self.type ==
"helicopter" )
142 if(
self.type ==
"helicopter" )
147 else if (
self.type ==
"actor" )
149 if( isdefined(level._customActorCBFunc) )
151 self thread [[level._customActorCBFunc]](localClientNum);