You then refer to these aliases wherever you'd like, including the playeralias section below. Remember: The left half of the first section is the actual named sound file as stored in the WAD/PK3 the right side is what you want to alias it to. The second half should also look like *pain100 PAIN100 *pain75 PAIN75 and so on. You're also getting the definitions backwards - for the first half, the actual filename is the first part and the logical alias is the second, so you're basically telling the engine "If I reference PAIN100, I mean to play DSPLPAIN." So you need to swap those, then make sure they conform to eight characters. The alias can be whatever you want it to be, but the actual soundfile that the alias references MUST be no more than eight characters. Try to make the sound lumps' names be written in equal or less than 8 symbols How do you get the extra space symbol? There's a much bigger gap between some words. $playeralias UniPlayer male * pain25 UniPain25 //After the "$playeralias" function, you have //"UniPlayer" is my playerclass, if you are using the default DoomGuy, it must be "Player" //"male" is the gender (the one you select in player settings) //the "*painXX" are the harcoded sounds to replace, in this case, the 4 player pain sounds //"UniPainXX" are the previouly defined sounds above that will replace the "*pain" sounds $playeralias UniPlayer male * pain50 UniPain50 $playeralias UniPlayer male * pain75 UniPain75 $playeralias UniPlayer male * pain100 UniPain100 PAIN25 UniPain25 //once you defined them, you have to give them an alias, here is how i did it: Oh almost forgot, this works on new and old GZDoom and even Zandronum too. I use it GZDoom 3.2.5 and works perfectly.įor more info check ZDoom SNDINFO page, I learned a lot from it XD This is a simplified code of my playerclass sounds, since I even used random sounds for every pain state. "UniPainXX" are the previouly defined sounds above that will replace the "*pain" sounds ![]() the "*painXX" are the harcoded sounds to replace, in this case, the 4 player pain sounds "male" is the gender (the one you select in player settings) "UniPlayer" is my playerclass, if you are using the default DoomGuy, it must be "Player" After the "$playeralias" function, you have $playeralias UniPlayer male *pain25 UniPain25 $playeralias UniPlayer male *pain50 UniPain50 $playeralias UniPlayer male *pain75 UniPain75 $playeralias UniPlayer male *pain100 UniPain100 once you defined them, you have to give them an alias, here is how i did it: first define the sounds, the capital ones on the left are the sound names inside the wad/pk3 and on the right, there is the sound's logical names. Here is a simplified example how I made it with my Uni custom class: ![]() It's easy once you learn how SNDINFO works.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |