Regenerating monsters? Created 18 years ago2005-07-14 06:55:05 UTC by Warrior Warrior

Created 18 years ago2005-07-14 06:55:05 UTC by Warrior Warrior

Posted 18 years ago2005-07-14 06:55:05 UTC Post #120748
How to make monsters that gain their health back when shot?
Posted 18 years ago2005-07-14 07:08:48 UTC Post #120750
I think that'd have to be coded.
AJ AJGlorious Overlord
Posted 18 years ago2005-07-14 07:09:22 UTC Post #120751
Make a block the size of the area the monsters will cover, and make it a trigger_hurt. Enter a negative damage value and on flags, check 'No clients' so it doesn't affect the player. Voila! A more elegant method would require coding, but that'll do the job.
Posted 18 years ago2005-07-14 07:16:45 UTC Post #120752
Yeah, but that just restores the health regardless of whether the monster is being shot or not. Secondly, if the monster is going to move around, that's a lot of area the trigger_hurt has to cover.
AJ AJGlorious Overlord
Posted 18 years ago2005-07-14 10:22:10 UTC Post #120776
Why would the first thing be a problem, Ant?
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 18 years ago2005-07-14 10:27:01 UTC Post #120781
well, because the player will gain health as well meaning you'd be in some kind of chamber.

What he needs is for the monster, when shot at, gain health, instead of the opposite..

What if you where to use negative numbers in the Half-Life code?

I never tried it, I only made headshots to be a one hit kill for Barney, scientists, and hgrunts/assassins. so I made the number of damage lower... try using a negative number.. may work.

Do you code!?
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 18 years ago2005-07-14 10:28:55 UTC Post #120783
He said "no clients"; that'd make it not affect the player.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 18 years ago2005-07-14 10:30:40 UTC Post #120785
...oh right, forgot about that flag.. although, coding would be much more better..
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 18 years ago2005-07-14 11:18:26 UTC Post #120796
i think they mean that when the enemies get damaged they restore health slowly after, not that bullets increase the health,

say you shoot a monster with 100 hp for 36 hp.......64hp left...then the trigger_hurt would restore it by say 3 per second......67.......70.......73 you see?
Posted 18 years ago2005-07-14 11:22:41 UTC Post #120798
Yes thats exactly what LlamaRama3 ment! This is done with trigger-hurt with negative demage! :)
Posted 18 years ago2005-07-14 11:22:52 UTC Post #120799
ah, I see, my way would'nt work that great anyways, come too think of it... lol, how about, Headshots, increase health, and shots anywhere else on the body decrease health.... just a thought :P
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 18 years ago2005-07-14 12:13:19 UTC Post #120809
your way should work....
You must be logged in to post a response.