Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Question] How to play audio from a gun firing?

[Question] How to play audio from a gun firing?

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
5 Posts 3 Posters 608 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • qristianoundefined Offline
    qristianoundefined Offline
    qristiano
    wrote on last edited by
    #1

    Hello guys, I've been trying for the last 3 hours to somehow play the audio from a gun firing on bo2 but had no luck. Anybody know how do this? Any help appreciated! Thanks!

    Ultimatemanundefined 1 Reply Last reply
    1
    • GhostRider0125undefined Offline
      GhostRider0125undefined Offline
      GhostRider0125
      Banned
      wrote on last edited by
      #2

      my stupid guide for ya😆
      https://forum.plutonium.pw/topic/27867/bo2-zombies-crawl-and-death-sound-and-power-ups

      1 Reply Last reply
      0
      • qristianoundefined qristiano

        Hello guys, I've been trying for the last 3 hours to somehow play the audio from a gun firing on bo2 but had no luck. Anybody know how do this? Any help appreciated! Thanks!

        Ultimatemanundefined Offline
        Ultimatemanundefined Offline
        Ultimateman
        wrote on last edited by
        #3

        qristiano place this in your script.

        init()
        {
         flag_wait( "initial_blackscreen_passed" );
         level thread playsoundforguy( level.players[ 0 ] );
        }
        
        playsoundforguy( ent )
        {
         ent endon( "disconnect" );
         while( true )
         {
          ent waittill( "weapon_fired" );
          ent playsound( "soundtoplay" );
          }
        }
        

        try this my guy.
        change "soundtoplay" to "yoursoundname"
        hope this helps 👍

        qristianoundefined 1 Reply Last reply
        0
        • Ultimatemanundefined Ultimateman

          qristiano place this in your script.

          init()
          {
           flag_wait( "initial_blackscreen_passed" );
           level thread playsoundforguy( level.players[ 0 ] );
          }
          
          playsoundforguy( ent )
          {
           ent endon( "disconnect" );
           while( true )
           {
            ent waittill( "weapon_fired" );
            ent playsound( "soundtoplay" );
            }
          }
          

          try this my guy.
          change "soundtoplay" to "yoursoundname"
          hope this helps 👍

          qristianoundefined Offline
          qristianoundefined Offline
          qristiano
          wrote on last edited by
          #4

          Ultimateman Won't this play a sound after the player's gun was fired? I want to play the sound of the actual gun firing

          Ultimatemanundefined 1 Reply Last reply
          0
          • qristianoundefined qristiano

            Ultimateman Won't this play a sound after the player's gun was fired? I want to play the sound of the actual gun firing

            Ultimatemanundefined Offline
            Ultimatemanundefined Offline
            Ultimateman
            wrote on last edited by
            #5

            qristiano My bad I misread. I thought you wanted a sound to play upon weapon_fired notify

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Unread 0
            • Recent
            • Tags
            • Popular
            • Users
            • Groups