Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
FireSeraphim

A difficult question concerning SNDINFO (still unresolved)

Recommended Posts

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
----------------

Share this post


Link to post

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?

Share this post


Link to post

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

Share this post


Link to post

Your posts don't dissapear so you don't need to repeat yourself. (However, I wish they would.)

Share this post


Link to post

@JohnnyRancid:I apologize for my rudeness. I do confess to having a somewhat short patience. I still hope that someone may yet enlighten me.

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×