Damagesound actor property

Moderator: GZDoom Developers

Post Reply
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Damagesound actor property

Post by XutaWoo »

Basically, if defined, the actor will make this sound when damaged.

And that's pretty much it.

Say you have a monsters, boss or otherwise, that can't go it's pain state, either because of an uninterruptable attack or just for challenge. But now, you can't get any audio cue that you're hitting it; sure, you could listen for the projectile's death sound, but it'll still play that if it hits a wall, and that won't work for ripping projectiles.

It'd probally be a good idea to be able to define the chance of the actor to make the sound, though given the nature of this request, I can't really think up much of a use for that aside for audio aesthetics.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Damagesound actor property

Post by Gez »

Would it be too hacky to have the monster's blood type emit a sound?
User avatar
Cutmanmike
Posts: 11354
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Re: Damagesound actor property

Post by Cutmanmike »

The problem with that is, if it's hit with a SSG or whatever the loudness would be * the amount of bullets that hit.

I can relate to this issue as I have a special playerclass that can't enter a pain state.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Damagesound actor property

Post by Gez »

How about giving it a limit in [wiki]SNDINFO[/wiki], then?
Last edited by Gez on Thu Jul 29, 2010 3:36 am, edited 1 time in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Damagesound actor property

Post by Graf Zahl »

This won't work well for several technical reasons.
User avatar
Enjay
 
 
Posts: 27359
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Damagesound actor property

Post by Enjay »

I suppose, on a case by case basis (reasonable for boss fights, I guess) you could use ACS to check the monster's health and compare the health in two consecutive tics repeatedly. If it reduces, play a sound.
User avatar
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Re: Damagesound actor property

Post by XutaWoo »

Graf Zahl wrote:This won't work well for several technical reasons.
May I ask for a few, or atleast, one of them?

It's always fun to see the limitations of the engine when it's something that seems simple. :)
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Damagesound actor property

Post by Ceeb »

What about a custom pain state where the monster/player/actor plays the desired sound? I do stuff like that all the time. :shrug:
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: Damagesound actor property

Post by Zippy »

In Xuta's specific considerations, because of this:
XutaWoo wrote:Say you have a monsters, boss or otherwise, that can't go it's pain state, either because of an uninterruptable attack or just for challenge.
User avatar
Trance
Posts: 1089
Joined: Mon Jan 17, 2005 6:28 am
Location: 1, Rotation: 0

Re: Damagesound actor property

Post by Trance »

This is a completely random and unrelated point, but Zippy's avatar creature thingies with guitars are rocking out at 150 beats per minute.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Damagesound actor property

Post by Project Shadowcat »

Trance wrote:This is a completely random and unrelated point, but Zippy's avatar creature thingies with guitars are rocking out at 150 beats per minute.
Those aren't guitars, Trance. ;)
User avatar
Trance
Posts: 1089
Joined: Mon Jan 17, 2005 6:28 am
Location: 1, Rotation: 0

Re: Damagesound actor property

Post by Trance »

Well they should be. That'd be a lot cooler.

Anyway, I'll be going now. Sorry to pull the discussion off track.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”