Quote:
Originally Posted by mtrxsol
The events player_hurt & player_spawn are not visible in the modevents.res file in the resource folder.
I am building a stats module where I need to get such events. Can you tell me where can I get a listing of all the events in TF2 that I can hook.
|
TF2 does indeed call the player_hurt & player_spawn events and you can hook them in the normal way. The event data is the same as for the HL2 event.
You will need to the use the TF2 specific events listed in modevents.res for the round stuff. TF2 has several different "rounf" types, each with it's own events.
use "teamplay_round_start" instead of "round_start"
use "teamplay_round_stalemate" and "teamplay_round_win" instead of "round_end" (a round is either won or it's a stalemate).
Try "teamplay_game_over" or "tf_game_over" instead of "game_end"
I don't have any suggestions for "game_init" and "game_start"...
What other events are you looking to hook?