It is currently 24 May 2013, 09:30

Post new topic Reply to topic  Page 1 of 1
 [ 7 posts ] 

Help with damage noises


Author Message
 Post subject: Help with damage noises
PostPosted: 17 Oct 2011, 23:12 
Offline
Zombie  Zombie
User avatar
Joined: 13 Apr 2011, 04:50
Posts: 15
Location: Cleveland, Ohio
Hello there people of realm 667! I've been visiting the website for a while and love the resources people have submitted. Feels good to know that classic doom is still going strong. Anyway back to the main point.

Damage noises...

I know how to write it out and such through scripting but i would like to know how i would have more than one damage noise for a certain amount of health.

I know that there is different noises for damage under 100, 75, 50 and 25 but it's just one sound for each.

Could i possibly make different noises for each hp state? Say around 2 for each and such?

More questions coming up!

By the way thanks in advance for taking your time to read this and trying to help. All is appreciated.


Top
 Profile  
 
 Post subject: Re: Help with damage noises
PostPosted: 18 Oct 2011, 00:47 
Offline
Commander Keen  A rather ghastly dragon
User avatar
Joined: 11 Dec 2009, 20:01
Posts: 2661
Modding questions are better asked over at ZDoom, which is more of a general modding site. It has more numerous and more experienced modders.

To answer this question, though, SndInfo is what you're looking for: http://zdoom.org/wiki/SNDINFO. Look for $Playersound, specifically the big note about different pain sounds that you can't miss. :P

As for randomizing, I'm not sure.
Currently reading: Blood Ravens, The Dawn of War Omnibus
_________________
Total approved submissions: 78
Total approved updates: 21
Total rejected: 2


Top
 Profile  
 
 Post subject: Re: Help with damage noises
PostPosted: 18 Oct 2011, 06:44 
Offline
Arachnotron  Really?
User avatar
Joined: 04 Mar 2010, 21:30
Posts: 373
Location: Florida
Ghastly wrote:
As for randomizing, I'm not sure.


With $random? Here's examples from my project. Of course, if you mean pain sounds for monsters based on their health, I have no idea without immense hackery involving A_JumpIf and the health expression.

Code:
...

CanyonPlayer/Pain1 PL_PN_1
CanyonPlayer/Pain2 PL_PN_2
CanyonPlayer/Pain3 PL_PN_3
CanyonPlayer/Pain4 PL_PN_4
CanyonPlayer/Pain5 PL_PN_5
$random CanyonPlayer/Pain/Low { CanyonPlayer/Pain1 CanyonPlayer/Pain2 }
$random CanyonPlayer/Pain/Medium { CanyonPlayer/Pain2 CanyonPlayer/Pain3 }
$random CanyonPlayer/Pain/Severe { CanyonPlayer/Pain3 CanyonPlayer/Pain4 CanyonPlayer/Pain5 }

...

$playeralias CanyonPlayer male *pain100 CanyonPlayer/Pain/Low
$playeralias CanyonPlayer male *pain75 CanyonPlayer/Pain/Medium
$playeralias CanyonPlayer male *pain50 CanyonPlayer/Pain/Medium
$playeralias CanyonPlayer male *pain25 CanyonPlayer/Pain/Severe

...


Top
 Profile  
 
 Post subject: Re: Help with damage noises
PostPosted: 21 Oct 2011, 04:51 
Offline
Zombie  Zombie
User avatar
Joined: 13 Apr 2011, 04:50
Posts: 15
Location: Cleveland, Ohio
Oh man sorry about this but i forgot to mention that it's for the main player, or other player classes and such i'm making.


Top
 Profile  
 
 Post subject: Re: Help with damage noises
PostPosted: 21 Oct 2011, 18:56 
Offline
Arachnotron  Really?
User avatar
Joined: 04 Mar 2010, 21:30
Posts: 373
Location: Florida
...And in that case, the code I just provided is exactly what you needed.


Top
 Profile  
 
 Post subject: Re: Help with damage noises
PostPosted: 22 Oct 2011, 06:53 
Offline
Zombie  Zombie
User avatar
Joined: 13 Apr 2011, 04:50
Posts: 15
Location: Cleveland, Ohio
Ceeb wrote:
...And in that case, the code I just provided is exactly what you needed.


Holy cacodemon! lol, it works pretty well, thanks for the help. Really helps make my wad feel unique in some way now. Once again thanks!


Top
 Profile  
 
 Post subject: Re: Help with damage noises
PostPosted: 23 Oct 2011, 03:26 
Offline
Arachnotron  Really?
User avatar
Joined: 04 Mar 2010, 21:30
Posts: 373
Location: Florida
Of course it works. I don't give bogus advice.

Also, you should... You know... Change the names of the sounds and aliases to reflect what your project is about. Just for my sake really, since that code is ripped directly from my current project. >_>


Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic  Page 1 of 1
 [ 7 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: