Using SDKHook_Touch with grenades?
I'm trying to use SDKHook_Touch to sense when a hegrenade_projectile touches a player but I can't get it to work. This is basically what my code looks like:
PHP Code:
|
Re: Using SDKHook_Touch with grenades?
Can you not hook start touch without having to use a timer?
|
Re: Using SDKHook_Touch with grenades?
Quote:
|
Re: Using SDKHook_Touch with grenades?
Um. Might be best to hook clients.
Check classname of other ;) |
Re: Using SDKHook_Touch with grenades?
Out of curiosity, have you tried hooking SDKHook_SpawnPost in OnEntityCreated?
|
Re: Using SDKHook_Touch with grenades?
Quote:
PHP Code:
|
Re: Using SDKHook_Touch with grenades?
You could also use the event "grenade_bounce" similar to how Sticky Nades works... depending on your specific need/purpose
Or check out how Sticky Nades Lite works with SDKHooks - This plugin uses SDKHook_StartTouch as opposed to SDKHook_Touch in the timer callback. |
Re: Using SDKHook_Touch with grenades?
Quote:
|
Re: Using SDKHook_Touch with grenades?
Quote:
|
Re: Using SDKHook_Touch with grenades?
Your code works fine for me. Does Sticky Nades Lite not work for you either?
|
All times are GMT -4. The time now is 19:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.