- May 18, 2012
- 7
- 0
Hi there =) I'm new to this hammer thing, I've read quite a bit about it, I would like to contribute this cool sniper training map I am making, but I'd like to add some counters so you could be able to track your progress, I might add that awesome Engineer's Counter from washipato but I can't find the right way to do this, my help request if you could help me please would be the following:
Count headshots
Count shots fired
Count damage
If this is not possible, does anybody have some source I could read so I could get the game output? like... some kind of programming geek stuff to interact from let's say a logical entity which I could program to count headshots and pretty much anythig I'd want since I would be able to read the tf2 outputs and stuff.
I would like to be able to do something like the following:
Somehow read from the game that: a headshot was performed or a shot was fired > pass this info to a logical entity > Show this info in-game > Keep track of your stats per session / per day etc. so you can compare and examine your progress
ANY help will be highly appreciated
HINT: I know this info is written to: C:\Program Files (x86)\Steam\steamapps\<account name>\team fortress 2\tf\tf2_playerstats.dmx
Therefore there must be someway to "hijack" the source that feeds the info to this file.
HINT 2: anybody knows how those sniper maps where only headshots are allowed work?
THANKS!!!!!
Edit: Lazy way around I just thought of for counting headshots:
*Turn crits off
*Add a damage filter for crits
*Count Crits as headshots
Count headshots
Count shots fired
Count damage
If this is not possible, does anybody have some source I could read so I could get the game output? like... some kind of programming geek stuff to interact from let's say a logical entity which I could program to count headshots and pretty much anythig I'd want since I would be able to read the tf2 outputs and stuff.
I would like to be able to do something like the following:
Somehow read from the game that: a headshot was performed or a shot was fired > pass this info to a logical entity > Show this info in-game > Keep track of your stats per session / per day etc. so you can compare and examine your progress
ANY help will be highly appreciated
HINT: I know this info is written to: C:\Program Files (x86)\Steam\steamapps\<account name>\team fortress 2\tf\tf2_playerstats.dmx
Therefore there must be someway to "hijack" the source that feeds the info to this file.
HINT 2: anybody knows how those sniper maps where only headshots are allowed work?
THANKS!!!!!
Edit: Lazy way around I just thought of for counting headshots:
*Turn crits off
*Add a damage filter for crits
*Count Crits as headshots
Last edited: