Skip to content

Commit

Permalink
Prevent AmbientSounds Of Pulse/Mini Playing After Pickup
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Dec 30, 2023
1 parent c5d3cd7 commit eeaea60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Classes/ST_PulseGun.uc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ simulated function PlaySelect() {
bCanClientFire = false;
if ( !IsAnimating() || (AnimSequence != 'Select') )
PlayAnim('Select',GetWeaponSettings().PulseSelectAnimSpeed(),0.0);
Owner.PlaySound(SelectSound, SLOT_Misc, Pawn(Owner).SoundDampening);
Owner.PlaySound(SelectSound, SLOT_Misc, Pawn(Owner).SoundDampening);

AmbientSound = none;
}

simulated function TweenDown() {
Expand Down
4 changes: 3 additions & 1 deletion Classes/ST_minigun2.uc
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ simulated function PlaySelect() {
bCanClientFire = false;
if ( !IsAnimating() || (AnimSequence != 'Select') )
PlayAnim('Select',GetWeaponSettings().MinigunSelectAnimSpeed(),0.0);
Owner.PlaySound(SelectSound, SLOT_Misc, Pawn(Owner).SoundDampening);
Owner.PlaySound(SelectSound, SLOT_Misc, Pawn(Owner).SoundDampening);

AmbientSound = none;
}

simulated function TweenDown() {
Expand Down

0 comments on commit eeaea60

Please sign in to comment.