Detecting if hit by a grenade


(Chruker) #1

Hi

I need to detect if a grenade has hit a brush. For now I have a func_explosive which when hit by a grenade triggers its pain routine. However that only happens when the health key is set between 1-19, which results in the func_explosive being destroyed.

Unfortunately I need to be able to continously detect if a grenade has hit, and I can’t seem to resurrect the func_explosive.

Any pointers on how to resurrect a func_explosive?

Any ideas on how to generally detect if a grenade has been thrown at something?


(MadMaximus) #2

you could use script_movers to detect instead of a func_exposive, make some clips for a trigger around the bush or in it, turn those clips into a script_mover, you could make them so they are not easily shot at, that way the grenade only effects them, give them a health key so they can be destroyed, set the flag on them as ‘resurectable’ and after they are all exploded, just alertentity them to bring them back. the death routine will be your detection routine. of course… dynamite near the bush would effect it also… when i need a trigger that is shootable or can trigger a routine and has to come back again to be able to trigger it again over and over again, i use this method. works really good.


(Chruker) #3

Yeah, that one could work. However I wanted the grenade to be detected before it exploded - as it impacted the surface.