Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. MP/ZM sounds file name and playSound function

MP/ZM sounds file name and playSound function

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
6 Posts 2 Posters 87 Views 2 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.
  • javierosky1undefined Offline
    javierosky1undefined Offline
    javierosky1
    wrote last edited by
    #1

    I've been investigating about this things for the past few days and I haven't found anything yet.

    I'm looking for the file names (or the names that you pass to the PlaySound function) of the mp and zm modes, especially the names of the songs, like the mp main menu music or the music easter eggs from zm.

    Also I'm not sure how the PlaySound function works. Do I have to put it after an entity like self, player or level? What parameters does the function accepts?

    Hadi77KSAundefined 1 Reply Last reply
    1
    • javierosky1undefined javierosky1

      I've been investigating about this things for the past few days and I haven't found anything yet.

      I'm looking for the file names (or the names that you pass to the PlaySound function) of the mp and zm modes, especially the names of the songs, like the mp main menu music or the music easter eggs from zm.

      Also I'm not sure how the PlaySound function works. Do I have to put it after an entity like self, player or level? What parameters does the function accepts?

      Hadi77KSAundefined Offline
      Hadi77KSAundefined Offline
      Hadi77KSA
      Contributor
      wrote last edited by
      #2

      For how to use the function, refer to this: https://scripts.zeroy.com/#PlaySound
      You can check the GSC dump and search for examples: https://github.com/plutoniummod/t6-scripts

      1 Reply Last reply
      0
      • javierosky1undefined Offline
        javierosky1undefined Offline
        javierosky1
        wrote last edited by
        #3

        I tried with the following examples in tdm and it does play nothing:

        level PlaySound("mus_defeat");
        
        player PlaySound("mus_defeat");
        

        The name is from https://github.com/plutoniummod/t6-scripts/blob/main/MP/Core/maps/mp/gametypes/_globallogic_audio.gsc

        Hadi77KSAundefined 1 Reply Last reply
        0
        • javierosky1undefined javierosky1

          I tried with the following examples in tdm and it does play nothing:

          level PlaySound("mus_defeat");
          
          player PlaySound("mus_defeat");
          

          The name is from https://github.com/plutoniummod/t6-scripts/blob/main/MP/Core/maps/mp/gametypes/_globallogic_audio.gsc

          Hadi77KSAundefined Offline
          Hadi77KSAundefined Offline
          Hadi77KSA
          Contributor
          wrote last edited by
          #4

          The one on the player should’ve worked if that sound alias exists and if you’ve obtained the player entity properly, but there are no examples where the function is called on the level entity.

          1 Reply Last reply
          0
          • javierosky1undefined Offline
            javierosky1undefined Offline
            javierosky1
            wrote last edited by
            #5

            The game doesn't find the sound. If I do PrintLn(SoundExists("mus_defeat")) it show a 0 (false). I don't know why. I tried with other sounds and it shows me 0 again. I don't know if there is something wrong with my game (it's from plutonium).

            Hadi77KSAundefined 1 Reply Last reply
            0
            • javierosky1undefined javierosky1

              The game doesn't find the sound. If I do PrintLn(SoundExists("mus_defeat")) it show a 0 (false). I don't know why. I tried with other sounds and it shows me 0 again. I don't know if there is something wrong with my game (it's from plutonium).

              Hadi77KSAundefined Offline
              Hadi77KSAundefined Offline
              Hadi77KSA
              Contributor
              wrote last edited by
              #6

              javierosky1 that simply means there’s no sound under that alias. The one you tried using was probably a script leftover. You can dump the sound aliases bundled within a fastfile using OpenAssetTools.

              1 Reply Last reply
              0
              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
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Donate