From 5a41b3b0a95b1c6e2b704453812cc8ac9ec55a4c Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Wed, 22 Mar 2023 20:37:21 -0700 Subject: [PATCH] Acid Gat: stuck zombie counts as a kill --- README.md | 1 + scripts/zm/replaced/_zm_weap_blundersplat.gsc | 20 +++++++++++++++++++ scripts/zm/zm_prison/zm_prison_reimagined.gsc | 2 ++ 3 files changed, 23 insertions(+) create mode 100644 scripts/zm/replaced/_zm_weap_blundersplat.gsc diff --git a/README.md b/README.md index e04e981f..add7072d 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,7 @@ ### Acid Gat * Kills on any round +* Stuck zombie counts as a kill ### Staffs * Upgrade only requires collecting souls in The Crazy Place diff --git a/scripts/zm/replaced/_zm_weap_blundersplat.gsc b/scripts/zm/replaced/_zm_weap_blundersplat.gsc new file mode 100644 index 00000000..7cd18d4d --- /dev/null +++ b/scripts/zm/replaced/_zm_weap_blundersplat.gsc @@ -0,0 +1,20 @@ +#include common_scripts\utility; +#include maps\mp\_utility; +#include maps\mp\zombies\_zm_utility; +#include maps\mp\zombies\_zm_net; +#include maps\mp\zombies\_zm_weapons; +#include maps\mp\zombies\_zm_spawner; +#include maps\mp\animscripts\zm_shared; +#include maps\mp\zombies\_zm_weap_blundersplat; + +_titus_target_animate_and_die( n_fuse_timer, inflictor ) +{ + self endon( "death" ); + self endon( "titus_target_timeout" ); + self thread _titus_target_timeout( n_fuse_timer ); + self thread _titus_check_for_target_death( inflictor ); + self thread _blundersplat_target_acid_stun_anim(); + wait( n_fuse_timer ); + self notify( "killed_by_a_blundersplat", inflictor ); + self dodamage( self.health + 1000, self.origin, inflictor ); +} \ No newline at end of file diff --git a/scripts/zm/zm_prison/zm_prison_reimagined.gsc b/scripts/zm/zm_prison/zm_prison_reimagined.gsc index 92dbce6a..33dd99c5 100644 --- a/scripts/zm/zm_prison/zm_prison_reimagined.gsc +++ b/scripts/zm/zm_prison/zm_prison_reimagined.gsc @@ -14,6 +14,7 @@ #include scripts\zm\replaced\_zm_craftables; #include scripts\zm\replaced\_zm_riotshield_prison; #include scripts\zm\replaced\_zm_weap_riotshield_prison; +#include scripts\zm\replaced\_zm_weap_blundersplat; main() { @@ -32,6 +33,7 @@ main() replaceFunc(maps\mp\zombies\_zm_riotshield_prison::trackriotshield, scripts\zm\replaced\_zm_riotshield_prison::trackriotshield); replaceFunc(maps\mp\zombies\_zm_weap_riotshield_prison::init, scripts\zm\replaced\_zm_weap_riotshield_prison::init); replaceFunc(maps\mp\zombies\_zm_weap_riotshield_prison::player_damage_shield, scripts\zm\replaced\_zm_weap_riotshield_prison::player_damage_shield); + replaceFunc(maps\mp\zombies\_zm_weap_blundersplat::_titus_target_animate_and_die, scripts\zm\replaced\_zm_weap_blundersplat::_titus_target_animate_and_die); replaceFunc(maps\mp\zombies\_zm_zonemgr::manage_zones, ::manage_zones); }