Raised This Month: $51 Target: $400
 12% 

FYI: Stats: attacker, victims, hits and damage...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XAD
Senior Member
Join Date: Mar 2004
Location: Sweden
Old 01-04-2005 , 19:46   FYI: Stats: attacker, victims, hits and damage...
Reply With Quote #1

FYI... I was "trapping" the engines UserMessages and found out that the stats in the client consols are sent from the server as SayText (type 2)...
So if you want to reroute them to the HUD you don't need to collect and save it yourself but only trapping the data sent to the client and then either just change it to SayText type 3 (ie the chat) or parse it and display it wherever you want.
If you parse it and call LogPrint, you can run PsychoStats on it... all without any stats module...

NOTE! It does not include part-of-body hits statisics or weapon used (but kill weapon and headshots are already easely processed)...

/X

BTW! The "base" text is in the first string, victim/killer is in the second, and the damage and hits in the third, so it shouldn't be to hard to parse either as almost all (?) the language dependent text is in the base string...
XAD is offline
manorastroman
Senior Member
Join Date: Oct 2004
Old 01-04-2005 , 20:28  
Reply With Quote #2

interesting, ill see if i can do anything, haha
__________________
manorastroman is offline
Send a message via AIM to manorastroman Send a message via MSN to manorastroman Send a message via Skype™ to manorastroman
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-04-2005 , 21:03  
Reply With Quote #3

how are you trapping engine messages may I ask?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 01-05-2005 , 00:32  
Reply With Quote #4

read my gdamn thread :s it's the included example on windows and ridiculously easier on linux, but code for both is in there
__________________
Avoid like the plague.
vancelorgin is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 01-05-2005 , 07:55  
Reply With Quote #5

LOL thats what I figured, then I thought perhaps there was another way
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Reply



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 11:00.


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