From 184b510264fecc2dab0df9e40041457148fef083 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Sat, 13 Jan 2024 18:13:28 -0800 Subject: [PATCH] Jet Gun: disable spin up while meleeing --- README.md | 1 + .../zm/zm_transit/zm_transit_reimagined.gsc | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/README.md b/README.md index e105e5c3..e35a0aed 100644 --- a/README.md +++ b/README.md @@ -319,6 +319,7 @@ * Heats up half as fast * Cools down twice as fast * Cools down while not holding weapon +* No longer spins up while meleeing * No longer kills when not firing * No longer automatically switched to weapon when picked up * No longer disassembles when overheated diff --git a/scripts/zm/zm_transit/zm_transit_reimagined.gsc b/scripts/zm/zm_transit/zm_transit_reimagined.gsc index 52bba019..f6fe9620 100644 --- a/scripts/zm/zm_transit/zm_transit_reimagined.gsc +++ b/scripts/zm/zm_transit/zm_transit_reimagined.gsc @@ -79,6 +79,7 @@ init() level thread power_local_electric_doors_globally(); level thread power_station_vision_change(); level thread attach_powerups_to_bus(); + level thread jetgun_disable_melee_spin_lerp(); } grief_include_weapons() @@ -719,6 +720,26 @@ attachpoweruptobus(powerup) powerup linkto(level.the_bus); } +jetgun_disable_melee_spin_lerp() +{ + flag_wait("start_zombie_round_logic"); + + while (1) + { + players = get_players(); + + foreach (player in players) + { + if (player getcurrentweapon() == "jetgun_zm" && player ismeleeing()) + { + player maps\mp\zombies\_zm_weap_jetgun::set_jetgun_engine_direction(0); + } + } + + wait 0.05; + } +} + manage_zones(initial_zone) { level.zone_manager_init_func = ::transit_zone_init;