From 27cc8488cddb2c18fe14bb883f5f147352034650 Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Thu, 9 Jun 2022 10:51:16 +0200 Subject: [PATCH] Prevent manual switch to dual guns if only owning one. --- language.version | 4 ++-- zscript/weapons/swwm_splode.zsc | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/language.version b/language.version index 25376489a..b9c3def2f 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r107 \cu(Wed 8 Jun 22:06:24 CEST 2022)\c-"; -SWWM_SHORTVER="\cw1.3pre r107 \cu(2022-06-08 22:06:24)\c-"; +SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r108 \cu(Thu 9 Jun 10:51:16 CEST 2022)\c-"; +SWWM_SHORTVER="\cw1.3pre r108 \cu(2022-06-09 10:51:16)\c-"; diff --git a/zscript/weapons/swwm_splode.zsc b/zscript/weapons/swwm_splode.zsc index dda03eaea..f00cb9d15 100644 --- a/zscript/weapons/swwm_splode.zsc +++ b/zscript/weapons/swwm_splode.zsc @@ -760,6 +760,13 @@ Class DualExplodiumGun : SWWMWeapon { return (SisterWeapon&&(SisterWeapon.Amount > 1)); } + override bool Use( bool pickup ) + { + // need to override here because other mods will fuck things up + if ( !SisterWeapon || (SisterWeapon.Amount < 2) ) + return false; + return Super.Use(pickup); + } override bool ReportHUDAmmo() {