Event Hooking
Is it possible to hook events such as player_blind (flashed) and player_abort_defuse?
So far I've just been using register_logevent, but these obviously don't get logged, and it doesn't appear in the event listing here http://wiki.amxmodx.org/Half-Life_1_Game_Events Thanks - Twelve-60 |
Re: Event Hooking
For defuse/bomb scripting:
http://forums.alliedmods.net/showthread.php?t=40164 For flash blind: Code:
Code:
|
Re: Event Hooking
Great, awesome :D
I also forgot one, grenade_detonate (i.e. when a grenade detonates (flash/smoke/he), and detect who threw it? Thanks again! - Twelve-60 |
Re: Event Hooking
Code:
|
Re: Event Hooking
Hmm, what exactly is going on there? e.g. how many times is FwdGrenadeThink being called?
Trying to be faily efficient :D Thanks - Twelve-60 |
Re: Event Hooking
The grenade's think after it has been throw is like a player's PreThink.
Therefore, we have to filter out its explode time so we can get the explosion. |
Re: Event Hooking
Ah okay.
So how would I hook the throwing event itself? (i.e. before detonating), and how do I know what type of grenade it is? :D Thanks - Twelve-60 |
Re: Event Hooking
Code:
|
Re: Event Hooking
Awesome thanks :D
- Twelve-60 |
Re: Event Hooking
hmmm I seem to having trouble with the bomb planted event, I posted it in that thread:
http://forums.alliedmods.net/showpos...2&postcount=46 I don't see how I can find out who is planting :( Without maybe tracking it through bomb_drop/pickup/spawn events - Twelve-60 |
| All times are GMT -4. The time now is 15:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.