From aa07ca0f768fe5786ca0ee2914c3f49afde3da05 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Mon, 20 Dec 2021 22:05:19 -0800 Subject: [PATCH] Tranzit: lava destroys grenades instantly --- README.md | 3 ++- scripts/zm/main/_zm_reimagined.gsc | 2 ++ scripts/zm/replaced/_zm_weapons.gsc | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 scripts/zm/replaced/_zm_weapons.gsc diff --git a/README.md b/README.md index 7fff83f4..0d14f7ff 100644 --- a/README.md +++ b/README.md @@ -189,8 +189,9 @@ ## Maps ### Tranzit -* Lava in starting area activates after the power is on * Any door that requires a Turbine to open is automatically open whenever the power is on +* Lava in starting area activates after the power is on +* Lava destroys grenades instantly * Power switch automatically crafted * Pack-a-Punch automatically crafted * Navcard table automatically crafted diff --git a/scripts/zm/main/_zm_reimagined.gsc b/scripts/zm/main/_zm_reimagined.gsc index c55f94b7..4f9f11e7 100644 --- a/scripts/zm/main/_zm_reimagined.gsc +++ b/scripts/zm/main/_zm_reimagined.gsc @@ -6,6 +6,7 @@ #include scripts/zm/replaced/_zm; #include scripts/zm/replaced/_zm_playerhealth; #include scripts/zm/replaced/_zm_utility; +#include scripts/zm/replaced/_zm_weapons; #include scripts/zm/replaced/_zm_powerups; #include scripts/zm/replaced/_zm_equipment; #include scripts/zm/replaced/_zm_ai_basic; @@ -18,6 +19,7 @@ main() replaceFunc(maps/mp/zombies/_zm_playerhealth::playerhealthregen, scripts/zm/replaced/_zm_playerhealth::playerhealthregen); replaceFunc(maps/mp/zombies/_zm_utility::track_players_intersection_tracker, scripts/zm/replaced/_zm_utility::track_players_intersection_tracker); replaceFunc(maps/mp/zombies/_zm_utility::is_headshot, scripts/zm/replaced/_zm_utility::is_headshot); + replaceFunc(maps/mp/zombies/_zm_weapons::makegrenadedudanddestroy, scripts/zm/replaced/_zm_weapons::makegrenadedudanddestroy); replaceFunc(maps/mp/zombies/_zm_powerups::nuke_powerup, scripts/zm/replaced/_zm_powerups::nuke_powerup); replaceFunc(maps/mp/zombies/_zm_equipment::placed_equipment_think, scripts/zm/replaced/_zm_equipment::placed_equipment_think); replaceFunc(maps/mp/zombies/_zm_ai_basic::inert_wakeup, scripts/zm/replaced/_zm_ai_basic::inert_wakeup); diff --git a/scripts/zm/replaced/_zm_weapons.gsc b/scripts/zm/replaced/_zm_weapons.gsc new file mode 100644 index 00000000..52a28a9f --- /dev/null +++ b/scripts/zm/replaced/_zm_weapons.gsc @@ -0,0 +1,16 @@ +#include maps\mp\_utility; +#include common_scripts\utility; +#include maps\mp\zombies\_zm_utility; + +makegrenadedudanddestroy() +{ + self endon( "death" ); + + self notify( "grenade_dud" ); + self makegrenadedud(); + + if ( isDefined( self ) ) + { + self delete(); + } +} \ No newline at end of file