monkeymaster69 Posted February 16, 2024 still me soo ive been trying adding a custom sound for the rifle that replaces the ssg but idk how it works i tried checking the doom wiki but still doesnt do the sound of the bang how do i fix it? 0 Quote Share this post Link to post
0 Gianluco Posted February 18, 2024 (edited) So, it's like this, right? A_PlaySound ("Weapons/RifleShot", CHAN_WEAPON, 0.7, False, True, 10) This is how it looks like on the Wiki A_PlaySound [(sound whattoplay [, int slot [, double volume [, bool looping [, double attenuation [, bool local [, double pitch]]]]]])] I think it's because you put "True" as the value for Attenuation, which is a double variable (purely numerical). Also, instead of numbers, you can put Constants, which are on the wiki. I don't use that value a lot, so I set it to the default constant (ATTN_NORM). Kinda the same for local, which is a bool variable (True/False), but you put 10 (which idrk if it works, because I remember bools working with 0 and 1). Maybe you switched attenuation and local up? Try either swapping the values or removing them altogether, so the engine uses the default ones. Btw, is there a specific reason you're sticking to A_PlaySound and not A_StartSound? PlaySound is deprecated and only useful for compatibility reasons. Edited February 18, 2024 by Gianluco 1 Quote Share this post Link to post
0 prfunky Posted February 20, 2024 On 2/16/2024 at 11:59 AM, monkeymaster69 said: still me soo ive been trying adding a custom sound for the rifle that replaces the ssg but idk how it works i tried checking the doom wiki but still doesnt do the sound of the bang how do i fix it? You show in your screenshot the sound as "weapon/Rifleshot" in your DECORATE lump. Do also have "weapon/Rifleshot" defined in your SNDINFO lump? An excerpt from my SNDINFO: //Enforcer fire sound enforcer/fire enfofire //Fyredemon's fire breath fdmon/breath fyrbreth So, you should have an entry in your SNDINFO which would look something like this: //Rifle firing sound weapon/rifleshot browning where "browning" is the name of the WAV sound you imported into your wad file. lines that begin with // are comments btw. 0 Quote Share this post Link to post
Question
monkeymaster69
still me soo ive been trying adding a custom sound for the rifle that replaces the ssg but idk how it works i tried checking the doom wiki but still doesnt do the sound of the bang how do i fix it?
Share this post
Link to post
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.