1 #using scripts\codescripts\struct;
3 #using scripts\shared\callbacks_shared;
4 #using scripts\shared\clientfield_shared;
5 #using scripts\shared\duplicaterender_mgr;
6 #using scripts\shared\filter_shared;
7 #using scripts\shared\postfx_shared;
8 #using scripts\shared\system_shared;
9 #using scripts\shared\util_shared;
10 #using scripts\shared\vehicle_shared;
13 #insert scripts\shared\shared.gsh;
14 #insert scripts\shared\version.gsh;
16 #define PARASITE_BELLY_GLOW_MIN 0.1
17 #define PARASITE_BELLY_GLOW_MAX 1.0
30 function private parasiteTellFxHandler( localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump )
32 if ( IsDefined(
self.tellFxHandle ) )
34 StopFX( localClientNum,
self.tellFxHandle );
35 self.tellFxHandle = undefined;
41 if( IsDefined( settings ) )
45 self.tellFxHandle = PlayFXOnTag( localClientNum, settings.weakspotfx,
self,
"tag_flash" );
51 function private parasite_damage( localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump )
55 self postfx::PlayPostfxBundle(
"pstfx_parasite_dmg" );
63 if( IsDefined( settings ) )
67 handle = PlayFX( localClientNum, settings.secondary_death_fx_1,
self GetTagOrigin( settings.secondary_death_tag_1 ) );
68 SetFXIgnorePause( localClientNum, handle,
true );
77 if(
IS_TRUE(level.debug_keyline_zombies) )