UE1 - UT Fix for minigun/pulsegun looping sound

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Helen

Member
Jan 23, 2010
48
0
6
You know that bug where if you are firing the minigun or pulsegun, and you die, and the firing sound keeps going? How would one fix that? Something like this maybe?

Code:
class MyMinigun expands Minigun2;

function Destroyed()
{
    Super.Destroyed();
    AmbientSound = None;
}
 

EvilT-ModZ

Un-Gravitify
Aug 3, 2011
42
0
6
30
Russia
www.set-games.ru
If you are still looking for solution: yes, you should set ambient to none in Destroyed(), but if it's still playing, you might apply it in the Tick(), if( !IsInFiringState() || bPendingDelete ) { ... }