From e518b79df8389aa7623f251a67c01541919c4bdd Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Thu, 1 Apr 2021 00:04:39 +0200 Subject: [PATCH] 1.1.4 mini-update: - Stunner ammo does not recharge if you don't have the Stunner selected. --- Readme.md | 2 +- zscript/stunner.zsc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index f7fc4dd..0942e97 100644 --- a/Readme.md +++ b/Readme.md @@ -72,7 +72,7 @@ This mod requires GZDoom 4.3 or later, and runs on top of Doom Tournament. ## In progress - - N/A, this is the 1.1.3 release. + - N/A, this is the 1.1.4 release. ## Planned diff --git a/zscript/stunner.zsc b/zscript/stunner.zsc index 60c8261..5d99344 100644 --- a/zscript/stunner.zsc +++ b/zscript/stunner.zsc @@ -13,6 +13,7 @@ Class StunnerAmmo : Ammo override void DoEffect() { Super.DoEffect(); + if ( !Owner.player || !(Owner.player.ReadyWeapon is 'Stunner') ) return; // don't recharge if we don't have a stunner out if ( rechargespeed <= 0. ) rechargespeed = 2.; rechargephase += 1./rechargespeed; if ( rechargephase < 7 ) return;