Monthly Target: $400 Donations: $282
 70% 

Hooking Entity Outputs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
StaX36
Junior Member
Join Date: Aug 2011
Old 04-09-2012 , 11:47   Hooking Entity Outputs
Reply With Quote #1

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 is offline
StaX36
Junior Member
Join Date: Aug 2011
Old 04-09-2012 , 14:45   Re: Hooking Entity Outputs
Reply With Quote #2

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

Last edited by StaX36; 04-09-2012 at 14:55.
StaX36 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:42.


Powered by vBulletin®
Copyright ©2000 - 2015, vBulletin Solutions, Inc.
Theme made by Freecode