1 #using scripts\shared\ai_shared;
2 #using scripts\shared\clientfield_shared;
3 #using scripts\shared\duplicaterender_mgr;
4 #using scripts\shared\util_shared;
5 #using scripts\shared\ai\systems\fx_character;
6 #using scripts\shared\ai\systems\gib;
7 #using scripts\shared\system_shared;
9 #insert scripts\shared\shared.gsh;
10 #insert scripts\shared\duplicaterender.gsh;
11 #insert scripts\shared\version.gsh;
12 #insert scripts\shared\ai\archetype_robot.gsh;
13 #insert scripts\shared\ai\systems\gib.gsh;
14 #insert scripts\shared\archetype_shared\archetype_shared.gsh;
16 #precache( "client_fx", ROBOT_EMP_FX_FILE );
17 #precache( "client_fx", ROBOT_MIND_CONTROL_EXPLOSION_FX_FILE );
75 #namespace RobotClientUtils;
82 function private robotLighting( localClientNum, entity, flicker, mindControlState )
84 switch ( mindControlState )
87 entity TmodeClearFlag( 0 );
99 entity TmodeClearFlag( 0 );
114 entity PlaySound(localClientNum,
"fly_bot_ctrl_lvl_01_start", entity.origin);
118 entity TmodeSetFlag( 0 );
133 entity PlaySound(localClientNum,
"fly_bot_ctrl_lvl_02_start", entity.origin);
137 entity TmodeSetFlag( 0 );
150 entity PlaySound(localClientNum,
"fly_bot_ctrl_lvl_03_start", entity.origin);
156 function private robotLightsHandler( localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump )
160 if ( !IsDefined( entity ) ||
162 ( IsDefined( entity.archetype ) && entity.archetype !=
"robot" ) )
181 function private robotEmpHandler( localClientNum, oldValue, newValue, bNewEnt, bInitialSnap, fieldName, wasDemoJump )
185 if ( !IsDefined( entity ) ||
187 ( IsDefined( entity.archetype ) && entity.archetype !=
"robot" ) )
192 if ( IsDefined( entity.empFX ) )
194 StopFx( localClientNum, entity.empFX );
202 entity.empFX = PlayFxOnTag(
215 if ( !IsDefined( entity ) ||
217 ( IsDefined( entity.archetype ) && entity.archetype !=
"robot" ) )
235 if ( !IsDefined( entity ) ||
237 ( IsDefined( entity.archetype ) && entity.archetype !=
"robot" ) )