Ham_TraceAttack for Grenades?
Hello :)
Is it possible to trace grenade attacks on a brush entity? Ham_TraceAttack seems to only work for bullets. Code:
/**Perhaps there's a way to detect grenade blasts within a radius around the brush entity? Any help is greatly appreciated! |
Re: Ham_TraceAttack for Grenades?
Quote:
2. On explode search ent in radius? |
Re: Ham_TraceAttack for Grenades?
Hook grenade think then get dmgtime, when 1.0s before explode, do check brush entity
PHP Code:
|
Re: Ham_TraceAttack for Grenades?
Thanks, that works perfect!
Any idea how to keep it from triggering multiple times for each grenade? |
Re: Ham_TraceAttack for Grenades?
Quote:
|
Re: Ham_TraceAttack for Grenades?
Quote:
|
Re: Ham_TraceAttack for Grenades?
|
Re: Ham_TraceAttack for Grenades?
Quote:
|
Re: Ham_TraceAttack for Grenades?
Quote:
Other way is the give a boolean but you need to make the g_Checked back to false somewhere to make the grenade check brush entity again PHP Code:
|
Re: Ham_TraceAttack for Grenades?
Thanks guys, the bool global works perfectly. I set it back to false with a set_task.
|
| All times are GMT -4. The time now is 23:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.