1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

Paralyzer: fix zombie spawn delay

This commit is contained in:
Jbleezy 2024-02-19 23:29:37 -08:00
parent 651f861687
commit aed6e4d476
2 changed files with 28 additions and 3 deletions

View File

@ -498,8 +498,9 @@
#### Paralyzer #### Paralyzer
* Kills on any round * Kills on any round
* Decreased player fly height * Players fall to the ground faster after reaching max fly height
* Added heat percentage on HUD * Added heat percentage on HUD
* Fixed zombie spawn delay after zombie being killed
#### Blundergat #### Blundergat
* Kills on any round in 1-2 shots * Kills on any round in 1-2 shots

View File

@ -119,13 +119,37 @@ player_slow_for_time(time)
watch_reset_anim_rate() watch_reset_anim_rate()
{ {
self set_anim_rate(1); self set_anim_rate(1.0);
self setclientfieldtoplayer("slowgun_fx", 0); self setclientfieldtoplayer("slowgun_fx", 0);
while (1) while (1)
{ {
self waittill_any("spawned_player", "entering_last_stand", "player_revived", "player_suicide"); self waittill_any("spawned_player", "entering_last_stand", "player_revived", "player_suicide");
self setclientfieldtoplayer("slowgun_fx", 0); self setclientfieldtoplayer("slowgun_fx", 0);
self set_anim_rate(1); self set_anim_rate(1.0);
} }
}
slowgun_zombie_death_response()
{
if (!self is_slowgun_damage(self.damagemod, self.damageweapon))
{
return false;
}
level maps\mp\zombies\_zm_spawner::zombie_death_points(self.origin, self.damagemod, self.damagelocation, self.attacker, self);
self thread explode_into_dust(self.attacker, self.damageweapon == "slowgun_upgraded_zm");
self slowgun_zombie_death_wait();
return true;
}
// fixes spawn delay for next zombies
slowgun_zombie_death_wait()
{
self set_anim_rate(1.0);
self.ignore_slowgun_anim_rates = 1;
wait 0.1;
} }