Prevent manual switch to dual guns if only owning one.
This commit is contained in:
parent
189d65d035
commit
eaeed01ec4
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.2.23 \cu(Tue 7 Jun 23:11:25 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.2.23 \cu(2022-06-07 23:11:25)\c-";
|
||||
SWWM_MODVER="\cyDEMOLITIONIST \cw1.2.23 \cu(Thu 9 Jun 10:53:58 CEST 2022)\c-";
|
||||
SWWM_SHORTVER="\cw1.2.23 \cu(2022-06-09 10:53:58)\c-";
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue