1.1.4 mini-update:
- Stunner ammo does not recharge if you don't have the Stunner selected.
This commit is contained in:
parent
ff8d145a2b
commit
e518b79df8
2 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ This mod requires GZDoom 4.3 or later, and runs on top of Doom Tournament.
|
||||||
|
|
||||||
## In progress
|
## In progress
|
||||||
|
|
||||||
- N/A, this is the 1.1.3 release.
|
- N/A, this is the 1.1.4 release.
|
||||||
|
|
||||||
## Planned
|
## Planned
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ Class StunnerAmmo : Ammo
|
||||||
override void DoEffect()
|
override void DoEffect()
|
||||||
{
|
{
|
||||||
Super.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.;
|
if ( rechargespeed <= 0. ) rechargespeed = 2.;
|
||||||
rechargephase += 1./rechargespeed;
|
rechargephase += 1./rechargespeed;
|
||||||
if ( rechargephase < 7 ) return;
|
if ( rechargephase < 7 ) return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue