[DEV] Event Info v1.0.2
3 Attachment(s)
[DEV] Event Info Version: 1.0.1 Hello again everyone. Today I bring all of you a handy dandy plugin which dynamically hooks all possible game events. This plugin is very large once compiled, due to the very large arrays that it creates. To reduce size of the plugin, change MAX_EVENTS to something smaller, I know that L4D2 in total has about 300 events, but most games don't have that many. You can reduce this to about 200 or less for most games. These commands are used to begin printing event info to chat: These commands need the generic admin flag to be used! "sm_listen <event>" "Start or stop listening to an event" Ex: sm_listen player_hurt The above example starts listening to player_hurt ^This command works as a toggle. "sm_keylisten <event> [keyname]" "Start or stop listening to an event" Ex: sm_keylisten player_hurt The above example starts listening to player_hurt and all of its keys Ex2: sm_keylisten player_hurt userid The above example starts listening to player_hurt and only its userid key. ^This command works as a toggle on an individual key level and at an event level. "sm_listentoall" "Start listening to all events" ^This is not a toggle, use sm_stoplisten to stop listening to all events. "sm_keylistentoall" "Start listening to all events and their keys" ^This is not a toggle, use sm_stoplisten to stop listening to all events and keys. "sm_stoplisten" "Stop listening to all events and keys" "sm_listevents" "List all hooked events" "sm_listkeys <event>" "List all keys for an event" Ex: sm_listkeys player_hurt "sm_searchevents <searchstring>" "Search for events" Ex: sm_searchevents player ^This example will find all events that contain "player" and print them to you. History: 1.0.0 - Initial Release 1.0.1 - Fixed console not properly being supported 1.0.2 - modevents.res is last to be parsed, events already hooked matching events in modevents.res will be unhooked and rehooked with keys in modevents.res |
Re: [DEV] Event Info
Nice dev tool, i like it.
Two things i noticed when using it: it does not support the server console itself, but does funky stuff or errors out: Code:
sm_listevents Code:
sm_listentoall |
Re: [DEV] Event Info
very nice - thank you for putting this out for all to use and benefit from
|
Re: [DEV] Event Info
A nice alternative to net_showevents; good job.
|
Re: [DEV] Event Info
Version 1.0.1 released, fixed console trying to listen to events giving errors.
|
Re: [DEV] Event Info
Uhm, can't compile
|
Re: [DEV] Event Info
we need your highly guarded mcflurry include file :)
|
Re: [DEV] Event Info
Quote:
It's secret! |
Re: [DEV] Event Info
Fixed that, I don't know why I had it included as there was nothing I was using from it.
|
Re: [DEV] Event Info v1.0.1
That looks neat! Often mods override default game events like player_death in their modevents.res. You should parse that file as the last one and replace events with the same name instead of adding the event twice. Remember to not hook the event again, if you found it already present in your list! I did forget to do that here ;)
|
All times are GMT -4. The time now is 23:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.