From 4d7a89ee3e76fee10bc5e35197302a6258d97acf Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 22 Apr 2023 01:46:19 -0700 Subject: [PATCH] Tranzit: zombies killed by the bus no longer respawn --- README.md | 1 + scripts/zm/replaced/zm_transit_bus.gsc | 15 +++++++++++++++ scripts/zm/zm_transit/zm_transit_reimagined.gsc | 1 + 3 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 33833d2d..4a7ba19e 100644 --- a/README.md +++ b/README.md @@ -518,6 +518,7 @@ * Lava destroys grenades instantly * Decreased brightness at Power Station * Power switch and Pack-a-Punch automatically crafted +* Zombies killed by the bus no longer respawn * Zombies no longer spawn in the Prototype zone when in the Cornfield zone * Zombies no longer spawn in the Cornfield zone when in the Prototype zone * Zombies spawn in the Warehouse zone when in the Outside Power Station zone before the Warehouse door is opened diff --git a/scripts/zm/replaced/zm_transit_bus.gsc b/scripts/zm/replaced/zm_transit_bus.gsc index c6367e6f..01e5d70c 100644 --- a/scripts/zm/replaced/zm_transit_bus.gsc +++ b/scripts/zm/replaced/zm_transit_bus.gsc @@ -731,4 +731,19 @@ busupdateplayers() wait 0.05; } +} + +busplowkillzombieuntildeath() +{ + self endon( "death" ); + + while ( isdefined( self ) && isalive( self ) ) + { + if ( isdefined( self.health ) ) + { + self dodamage( self.health + 666, self.origin, self, self, "none", "MOD_SUICIDE" ); + } + + wait 1; + } } \ No newline at end of file diff --git a/scripts/zm/zm_transit/zm_transit_reimagined.gsc b/scripts/zm/zm_transit/zm_transit_reimagined.gsc index fd8e326b..53496fc2 100644 --- a/scripts/zm/zm_transit/zm_transit_reimagined.gsc +++ b/scripts/zm/zm_transit/zm_transit_reimagined.gsc @@ -37,6 +37,7 @@ main() replaceFunc(maps\mp\zm_transit_ai_screecher::player_wait_land, scripts\zm\replaced\zm_transit_ai_screecher::player_wait_land); replaceFunc(maps\mp\zm_transit_bus::bussetup, scripts\zm\replaced\zm_transit_bus::bussetup); replaceFunc(maps\mp\zm_transit_bus::busscheduleadd, scripts\zm\replaced\zm_transit_bus::busscheduleadd); + replaceFunc(maps\mp\zm_transit_bus::busplowkillzombieuntildeath, scripts\zm\replaced\zm_transit_bus::busplowkillzombieuntildeath); replaceFunc(maps\mp\zm_transit_distance_tracking::delete_zombie_noone_looking, scripts\zm\replaced\zm_transit_distance_tracking::delete_zombie_noone_looking); replaceFunc(maps\mp\zombies\_zm_ai_avogadro::check_range_attack, scripts\zm\replaced\_zm_ai_avogadro::check_range_attack); replaceFunc(maps\mp\zombies\_zm_ai_avogadro::avogadro_exit, scripts\zm\replaced\_zm_ai_avogadro::avogadro_exit);