FireSeraphim Posted August 30, 2009 I confess to not being skilled when it comes to editing SNDINFO. Right now I am trying to make it when the player suffers pain of any sort, it will play a random sound effect(somewhat like the Quake 2 Marine). but somehow I am doing something wrong. here is my SNDINFO data so far. can anyone enlighten me on my problem? ---------------- // player male $random pl_pain { player/pain1 player/pain2 player/pain3 player/pain4} player/pain1 pain1 player/pain2 pain2 player/pain3 pain3 player/pain4 pain4 ---------------- 0 Share this post Link to post
exl Posted August 30, 2009 It helps relaying any error message or what does or doesn't happen. But, // player male player/pain1 pain1 player/pain2 pain2 player/pain3 pain3 player/pain4 pain4 $random pl_pain { player/pain1 player/pain2 player/pain3 player/pain4} this perhaps? 0 Share this post Link to post
FireSeraphim Posted August 30, 2009 It does not do what I want it to do. any help would be appreciated. 0 Share this post Link to post
Xenaero Posted August 30, 2009 Here you go. You need to redefine the player's sound pointer in SNDINFO. This will probably work for you. player/pain1 pain1 player/pain2 pain2 player/pain3 pain3 player/pain4 pain4 $random pl_pain { player/pain1 player/pain2 player/pain3 player/pain4} $playersound player male *pain100 pl_pain $playersounddup player male *pain75 *pain100 $playersounddup player male *pain50 *pain100 $playersounddup player male *pain25 *pain100 0 Share this post Link to post
FireSeraphim Posted August 30, 2009 In that case, How do I redefine the player's sound pointer? 0 Share this post Link to post
FireSeraphim Posted August 30, 2009 I reallly don't want to have to repeat myself, but you forced me to. I SAID: How do I redefine the player's sound pointer? 0 Share this post Link to post
40oz Posted August 31, 2009 Your posts don't dissapear so you don't need to repeat yourself. (However, I wish they would.) 0 Share this post Link to post
FireSeraphim Posted August 31, 2009 @JohnnyRancid:I apologize for my rudeness. I do confess to having a somewhat short patience. I still hope that someone may yet enlighten me. 0 Share this post Link to post
GreyGhost Posted August 31, 2009 I'm still a bit of a scripting newbie myself but found this worked nicely in GZDoom...$random pl_pain { player/pain1 player/pain2 player/pain3 player/pain4 } player/pain1 dsplpain player/pain2 pain2 player/pain3 pain3 player/pain4 pain4 $playeralias player male *pain100 pl_pain AFAIK the three lines refering to pain2/pain3/pain4 are the redefined pointers (Gex will correct me if I'm wrong ;-)) which in my case are lumps borrowed from a 3 Stooges sound wad and renamed. Hope this helps. 0 Share this post Link to post
Xenaero Posted August 31, 2009 From the ZDoom Wiki: * This is the SNDINFO for zdoom.wad. Unlike Hexen, SNDINFO lumps in pwads * are additive, so your SNDINFO only needs to contain the sounds listed * here that you want to change or new sounds you are defining. You do not * need to edit a copy of this file. Therefore, what I and GreyGhost had posted works just fine for you, since it effectively overwrites the standard definition of the player pain sounds with your random pain sounds. ZDoom Wiki is great for editing info. 0 Share this post Link to post