Fix the "weapon sounds stuck playing after death/drop" problem at the core UTWeapon class.

This commit is contained in:
Marisa the Magician 2019-09-28 21:24:37 +02:00
commit 4bbc308eaf
4 changed files with 10 additions and 9 deletions

View file

@ -219,7 +219,8 @@ Class UTChainsaw : UTWeapon
override void DetachFromOwner()
{
if ( Owner ) Owner.A_StopSound(CHAN_6);
A_PlaySound("chainsaw/lower",CHAN_6);
if ( !Ammo1 || (Ammo1.Amount > 0) )
A_PlaySound("chainsaw/lower",CHAN_6);
Super.DetachFromOwner();
}
action void A_Vibrate( bool bAlt = false )