SuperLogs: TF2
Update:
Test the fully rewritten version with better performance and many new actions written!
http://forums.alliedmods.net/showpos...9&postcount=70
This is the first plugin in a series of plugins for many mods to enable more detailed logging, all in
HL Log Standard.
These plugins give the ability to track many things not natively logged by the game in log parsers such as
HLstatsX:CE,
Psychostats, and others.
For SuperLogs: TF2, the following features are available:
Actions- headshot
- backstab
- force_suicide
- crit_kill
- drowned
- first_blood
- steal_sandvich
- stun
- jarate
- shield_blocked
- teleport
- teleport_self
- sandvich (eating)
- healed (dumped number of points healed on death)
- mvp1, mvp2, and mvp3 (round end mvp winners)
- escort_score (got in-game points for pushing cart)
- buff_deployed (deployed soldier buff)
- defended_medic
- airshot_rocket
- airshot_headshot
Ex.
Code:
L 07/16/2009 - 21:28:21: "Xibalba<138><STEAM_0:0:23333692><Red>" triggered "crit_kill"
L 07/16/2009 - 21:28:30: "neG:. peEtr<118><STEAM_0:0:5191121><Blue>" triggered "backstab" against "Agent Cthulhoo<146><STEAM_0:1:16842486><Red>"
L 07/16/2009 - 21:28:30: "armistice<144><STEAM_0:0:18260028><Red>" triggered "healed" (heal "510")
L 07/16/2009 - 21:35:46: "Narcoleptic Squirrel<149><STEAM_0:1:13876794><Red>" triggered "teleport"
Weapon logging for accuracy and damage* statistics for all non-melee, non-flamethrower weapons**
Ex.
Code:
L 07/23/2009 - 20:11:36: "nNnl Gun's'n'Butter<55><STEAM_0:1:15976406><Blue>" triggered "weaponstats" (weapon "scattergun") (shots "9") (hits "6") (kills "2") (headshots "0") (tks "0") (damage "375") (deaths "0")
L 07/23/2009 - 20:24:36: "breadpudding<66><STEAM_0:1:24867371><Red>" triggered "weaponstats" (weapon "sniperrifle") (shots "2") (hits "1") (kills "1") (headshots "1") (tks "0") (damage "188") (deaths "1")
Logging "Fixes"- Fire Arrow kills are logged as weapon tf_projectile_arrow_fire instead of tf_projectile_arrow)
- Class changes are no longer logged until player spawns as new class
- Object destruction (sentrys, etc.) is logged when switching teams/classes
- Logs a "Started Map:..." line for the first map of the server (would normally happen too early to be logged)
There are many cvars available to control what does and does not get logged by the plugin as some plugins may overlap functionality (ex. HLstatsX:CE Ingame Plugin <=1.5.6 logs headshot, backstab, and some others) or if you do not agree with some of the "fixes'.
Cvars (1 = Enable; 0 = Disable)
superlogs_actions - Enable logging of most player actions, such as "stun" (default on)
superlogs_teleports - Enable logging of teleports (default on)
superlogs_headshots - Enable logging of headshot player action (default off)
superlogs_backstabs - Enable logging of backstab player action (default on)
superlogs_sandvich - Enable logging of sandvich eating (default off)
superlogs_fire - Enable logging of fiery arrows as a separate weapon from regular arrows (default on)
superlogs_wstats - Enable logging of weapon stats (default on, only works when tf_weapon_criticals is 1)
superlogs_heals - Enable logging of healpoints upon death (default on)
superlogs_rolelogfix - Enable delay of logging class change until first spwan as new class (default on)
superlogs_objlogfix - Enable logging of owner object destruction on team/class change (default on)
superlogs_ktraj - Enable psychostats-style "KTRAJ" location logging (default off)
Thanks
Thanks to Tsunami for the building-checking code in TF2 Build Restrictions plugin. Also thanks Packhead, KingJ, HLDS.pl, and WMD Gaming for help testing and reporting feedback.
Also see
SuperLogs: L4D
SuperLogs: Insurgency
SuperLogs: NeoTokyo
SuperLogs: Age of Chivalry
SuperLogs: Fistful Of Frags
SuperLogs: GoldenEye: Source
SuperLogs: CSS
SuperLogs: DODS
SuperLogs: Generic
SuperLogs: ZPS
Compiling Notes
SuperLogs: TF2 requires
loghelper and wstatshelper.inc to be in the scripting/include directory when compiling, and therefore, will not compile on the web compiler. If you are not using Sourcemod
1.2.4 or later, you may get some erroneous statistics logged for the huntsman (hits with 0 shots).
* SDK Hooks
here is required for damage to log in weapon stats.
** SDK Hooks is also required for non-instant-hit weapons to be tracked at all, such as the needle gun or bow.