1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. 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.

UE1 - UT Fix for minigun/pulsegun looping sound

Discussion in 'Programming' started by Helen, Apr 14, 2018.

  1. Helen

    Helen Member

    Joined:
    Jan 23, 2010
    Messages:
    48
    Likes Received:
    0
    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;
    }
    
     
  2. EvilT-ModZ

    EvilT-ModZ Un-Gravitify

    Joined:
    Aug 3, 2011
    Messages:
    42
    Likes Received:
    0
    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 ) { ... }
     

Share This Page