1.1.4 mini-update:

- Stunner ammo does not recharge if you don't have the Stunner selected.
This commit is contained in:
Marisa the Magician 2021-04-01 00:04:39 +02:00
commit e518b79df8
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;