Obstacle reacting to hit without beiing killed

NED

Well-known member
Obstacle reacting to hit without beiing killed

I would like to see if there is a way to make an obstacle (or any non playable and still entity) 1-to react to all hits (like a pain anim)
2-but without being killed.

I know 2 is easily done with "nolife  1" and perhaps a big health like 999999999
but what about hit reaction?

The entity should not be grabbable at all and receive only attackboxes damages.

I think Ilu and JonSilva used something kind of similar in their mods for destructible obstacles (SF2 car bonus stage type damage) Any idea?

Thanks.

(Mostly, my problem is that obstacles entity don't handle pain anim at all AFAIK)
 
Damon Caskey said:
O Ilusionista said:
...OpeBOR let you use a custom flash/hitspark for each entity (which is amazing by the way), dunno if let you do it with sounds too...

I can't remember myself, but it doesn't matter - because there's a simple trick that makes life so much easier for sounds. Don't use beat sounds at all (silence the default beat.wav). Then simply play the beat sounds from your flash effects. You can use script to play different sounds depending on conditions, or just make different flash texts for each type of hit. Either way, this is far simpler than using the default hitsound system because you only have one control point to worry about (which hitflash to play) instead of two.

Same goes for landing. Move the falling, landing, jumping, sounds into your dust effect entities.

DC

in 2021 has there been any advancements in this regard?

Say I created a snow man (that is type obstacle ) and when I hit him I hear the regular punch SFX (which is , no bueno)
is there a way to change that? ( obviously only for the snowman obstacle) .
 
Back
Top Bottom