[REQ][H] H as in help!

Do you have a question about making weapon mods, or do you just need some tutorials and resources? Ask about all of that here.

Moderator: wildweasel

Locked
User avatar
Chronoteeth
Posts: 824
Joined: Wed Jul 06, 2005 10:01

[REQ][H] H as in help!

Post by Chronoteeth »

Is there a way to kill the sound of something in DDFWEAPs or some way or another? Because the idling sounds in my mod still last until they're finished playing, even on another weapon.
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post by wildweasel »

One idea that comes to mind is using another PLAYSOUND(sound) command to play a null sound effect. If I recall, there is only one PLAYSOUND channel for player weapons, so you could use something like PLAYSOUND(NULL) to mute the sound on the weapon's LOWER states.
User avatar
Chronoteeth
Posts: 824
Joined: Wed Jul 06, 2005 10:01

Post by Chronoteeth »

Hmm, that may work, though priority=100 and volume=100 too, just in case.

Speaking of which, what does singular do again?
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post by wildweasel »

Singular is a command that tells Doom to only play the sound once at a time. If the same sound is played twice, other instances of the sound are silenced. In particular, this is used on the Chainsaw sounds - theoretically you should be able to use the same singular number on several sounds:

Code: Select all

[snipa]
lump_name="dssnipa";
singular=1337;

[snipa2]
lump_name="dssnipa2";
singular=1337;
Locked

Return to “Weapon Modding Help & Resources”