From 17c1ff26bfe7266c0e383dc74113795883efc1a9 Mon Sep 17 00:00:00 2001 From: JezuzLizard Date: Wed, 29 Apr 2020 08:56:45 -0700 Subject: [PATCH] accidently didn't check for simple syntax errors fixed now --- patch_zm/maps/mp/zombies/_zm_blockers.gsc | 3 ++- patch_zm/maps/mp/zombies/_zm_buildables.gsc | 7 ++++--- patch_zm/maps/mp/zombies/_zm_laststand.gsc | 5 +++-- patch_zm/maps/mp/zombies/_zm_traps.gsc | 7 ++++--- patch_zm/maps/mp/zombies/_zm_weap_cymbal_monkey.gsc | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/patch_zm/maps/mp/zombies/_zm_blockers.gsc b/patch_zm/maps/mp/zombies/_zm_blockers.gsc index c71202f..95238b5 100644 --- a/patch_zm/maps/mp/zombies/_zm_blockers.gsc +++ b/patch_zm/maps/mp/zombies/_zm_blockers.gsc @@ -133,6 +133,7 @@ door_classify( parent_trig ) //checked changed to match cerberus output { self.script_string = "move"; } + } if ( !isDefined( self.script_string ) ) { self.script_string = ""; @@ -325,7 +326,7 @@ door_activate( time, open, quick, use_blocker_clip_for_pathing ) //checked match if ( !open ) { self delay_thread( time, ::self_disconnectpaths ); - wait 0,1; + wait 0.1; self solid(); } return; diff --git a/patch_zm/maps/mp/zombies/_zm_buildables.gsc b/patch_zm/maps/mp/zombies/_zm_buildables.gsc index c3f2588..019e710 100644 --- a/patch_zm/maps/mp/zombies/_zm_buildables.gsc +++ b/patch_zm/maps/mp/zombies/_zm_buildables.gsc @@ -431,7 +431,7 @@ generate_piece_unitrigger( classname, origin, angles, flags, radius, script_heig } else { - unitrigger_stub.script_length = 13,5; + unitrigger_stub.script_length = 13.5; } if ( isDefined( script_width ) ) { @@ -439,7 +439,7 @@ generate_piece_unitrigger( classname, origin, angles, flags, radius, script_heig } else { - unitrigger_stub.script_width = 27,5; + unitrigger_stub.script_width = 27.5; } if ( isDefined( script_height ) ) { @@ -1000,7 +1000,7 @@ piece_allocate_spawn( piecespawn ) //checked changed to match cerberus output else if ( is_point_in_build_trigger( self.spawns[ i ].origin ) ) { any_okay = 1; - spawnweights[ i ] = 0,01; + spawnweights[ i ] = 0.01; break; } else @@ -3143,3 +3143,4 @@ get_buildable_stat_name( buildable ) //checked matches cerberus output } + diff --git a/patch_zm/maps/mp/zombies/_zm_laststand.gsc b/patch_zm/maps/mp/zombies/_zm_laststand.gsc index 4a24b87..70630f8 100644 --- a/patch_zm/maps/mp/zombies/_zm_laststand.gsc +++ b/patch_zm/maps/mp/zombies/_zm_laststand.gsc @@ -567,7 +567,7 @@ suicide_trigger_think() //checked changed to match cerberus output } while ( 1 ) { - wait 0,1; + wait 0.1; if ( !isDefined( self.suicideprompt ) ) { continue; @@ -1169,7 +1169,7 @@ revive_hud_think() //checked partially changed to match cerberus output //did no self endon( "disconnect" ); while ( 1 ) { - wait 0,1; + wait 0.1; if ( !player_any_player_in_laststand() ) { continue; @@ -1449,3 +1449,4 @@ cleanup_laststand_on_disconnect() //checked matches cerberus output } } + diff --git a/patch_zm/maps/mp/zombies/_zm_traps.gsc b/patch_zm/maps/mp/zombies/_zm_traps.gsc index 2fbe8cd..29ec973 100644 --- a/patch_zm/maps/mp/zombies/_zm_traps.gsc +++ b/patch_zm/maps/mp/zombies/_zm_traps.gsc @@ -351,7 +351,7 @@ trap_activate_fire() //checked changed to match cerberus output clientnotify( self.script_string + "1" ); clientnotify( self.script_parameters ); fx_points = getstructarray( self.target, "targetname" ); - while ( i = 0; i < fx_points.size; i++ ) + for ( i = 0; i < fx_points.size; i++ ) { wait_network_frame(); fx_points[ i ] thread trap_audio_fx( self ); @@ -387,7 +387,7 @@ trap_activate_rotating() //checked partially changed to match cerberus output wait step; t += step; } - for ( i = 0; i < self._trap_movers.size i++ ) + for ( i = 0; i < self._trap_movers.size; i++ ) { self._trap_movers[ i ] rotateyaw( 360, 5, 0, 4.5 ); } @@ -766,7 +766,7 @@ get_trap_array( trap_type ) //checked changed to match cerberus output { ents = getentarray( "zombie_trap", "targetname" ); traps = []; - for ( i = 0; i < ents.size i++ ) + for ( i = 0; i < ents.size; i++ ) { if ( ents[ i ].script_noteworthy == trap_type ) { @@ -863,3 +863,4 @@ is_trap_registered( a_registered_traps ) //checked matches cerberus output return isDefined( a_registered_traps[ self.script_noteworthy ] ); } + diff --git a/patch_zm/maps/mp/zombies/_zm_weap_cymbal_monkey.gsc b/patch_zm/maps/mp/zombies/_zm_weap_cymbal_monkey.gsc index 0e77f69..a7fb7fc 100644 --- a/patch_zm/maps/mp/zombies/_zm_weap_cymbal_monkey.gsc +++ b/patch_zm/maps/mp/zombies/_zm_weap_cymbal_monkey.gsc @@ -62,7 +62,7 @@ player_handle_cymbal_monkey() //checked matches cerberus output { grenade = get_thrown_monkey(); self player_throw_cymbal_monkey( grenade, num_attractors, max_attract_dist, attract_dist_diff ); - wait 0,05; + wait 0.05; } }