1) Is there a method to catch *all* events without having to register 60 events and writing 60 functions? I only want to know when an event occurs, and print out event id and name (possibly data, too).
2) Atm I'm using log events to catch attacking of TFC specific objects (e.g. sentry gun). However, this doesn't work for melee weapons. Any ideas?
EDIT:
The log events turn out to be pretty useless for this purpose.
Quote:
[20:18:15] <pizzahut2> it says something like "bot triggered sentry_destroyed"
[20:18 4] <pizzahut2> when i shoot with supershotgun, or if i use knife
[20:18:46] <pizzahut2> bot being the victim
[20:18:57] <pizzahut2> so yeah, only works with nails
|
EDIT 2:
There was an error in "tfcevents.sma" :
Replaced
register_event("SayText", "event70", "ab")
with
register_event("SayText", "event80", "ab")