1 #using scripts\codescripts\struct;
3 #using scripts\shared\util_shared;
5 #insert scripts\shared\shared.gsh;
11 if ( !isdefined( level.zombie_network_choke_ids_max ) )
13 level.zombie_network_choke_ids_max = [];
14 level.zombie_network_choke_ids_count = [];
17 level.zombie_network_choke_ids_max[ id ] = max;
18 level.zombie_network_choke_ids_count[ id ] = 0;
29 level.zombie_network_choke_ids_count[ id ] = 0;
35 return( level.zombie_network_choke_ids_count[
id ] < level.zombie_network_choke_ids_max[
id ] );
40 Assert( isdefined( level.zombie_network_choke_ids_max[
id ] ),
"Network Choke: " +
id +
" undefined" );
47 level.zombie_network_choke_ids_count[ id ]++;
49 if ( !isdefined( arg1 ) )
51 return ( [[choke_action]]() );
54 if ( !isdefined( arg2 ) )
56 return ( [[choke_action]]( arg1 ) );
59 if ( !isdefined( arg3 ) )
61 return ( [[choke_action]]( arg1, arg2 ) );
64 return ( [[choke_action]]( arg1, arg2, arg3 ) );
69 if( !isdefined( entity ) )
79 if ( !isdefined( level.zombie_network_choke_ids_max ) || !isdefined( level.zombie_network_choke_ids_max[
id ] ) )
84 assert( max == level.zombie_network_choke_ids_max[
id ] );
90 return spawn( classname, origin );
104 PlayFxOnTag( fx, entity, tag );