AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Hooking Entity Outputs (https://forums.alliedmods.net/showthread.php?t=182416)

StaX36 04-09-2012 11:47

Hooking Entity Outputs
 
Hi, I want to hook entity outputs e.g. form an env_fire the OnExtinguished output.
How I think it could work is to check the entitylist for env_fire's, then the dataDesc for the output (this is what I have done so far and it works great but...) what I had to do now is to detour the output.
The problem is I had to do it with every env_fire in the map, so I am asking is there and easier way to hook entity outputs for one entity class?

StaX36 04-09-2012 14:45

Re: Hooking Entity Outputs
 
Ok after actually looking into an entity I realized that the output in the datamap has nothing to do with function. But is there any way to hook an output? Since sourcemod has this ability it must be possible...

EDIT: To clear this up. What I want to know is when an output is called, to make a counter how often one or all entities fire e.g. the output OnUser1


All times are GMT -4. The time now is 06:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.