MP/ZM sounds file name and playSound function
-
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?
-
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?
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 -
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
-
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
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.
-
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). -
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).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.