Raised This Month: $ Target: $400
 0% 

Get Damage in TF2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
naris
AlliedModders Donor
Join Date: Dec 2006
Old 01-11-2008 , 19:41   Re: Get Damage in TF2
Reply With Quote #4

Quote:
Originally Posted by mtrxsol View Post
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?
naris is offline
 



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 21:48.


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