Detect C4 creation/spawn
Does someone know how to detect c4 creation (not weapon_c4, planted c4 that has classname "grenade") ?
I don't want to hook FM_SetModel and i don't want to retrieve c4 index when logevent/sound/textmsg is fired. Ham_Spawn ("grenade") doesn't detect it, FM_CreateNamedEntity is not fired. FM_CreateEntity is fired but well, entity is not valid yet. |
Re: Detect C4 creation/spawn
What do you mean by creation?
When it is first created when the map starts? When it is given to the player at round start? When it is planted on the ground? |
Re: Detect C4 creation/spawn
Quote:
|
Re: Detect C4 creation/spawn
Have you tried FM_Spawn?
|
Re: Detect C4 creation/spawn
Sure.
Also, Ham_Item_Kill ("weapon_c4") is fired even after the c4 model has been set. |
Re: Detect C4 creation/spawn
Did FM_Spawn work or not? I couldn't tell from "sure". :?
|
Re: Detect C4 creation/spawn
No.
|
Re: Detect C4 creation/spawn
After doing some testing, FM_SetModel was the best method that I used.
Why don't you want to use FM_SetModel? |
Re: Detect C4 creation/spawn
Quote:
|
Re: Detect C4 creation/spawn
Quote:
|
| All times are GMT -4. The time now is 09:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.