Title: Brutus Insurgency2 Logger/LogFixer
Changelog:
Code:
1.0.0 - Initial Release
1.0.1 - Fixed a bug that caused the weapon name to not be replaced in a kill event log (NOTE: For Psychostats users, please remove ps_heatmaps.smx from your plugins or it will cause a conflict!)
1.0.3 - Added missing M14 EBR entry from the weapon list as well as removed duplicate M249 entry. This should fix the problem whereby M14 kills are registered as M16A4's (Thanks GiZZoR)
1.0.4 - Fixed logging for suicide messages, should display the weapon used for suicide accurately. There might be an issue where another weapon is shown when the player walks over his own molotov fire after firing another gun. Happens rarely though, so I won't pay too much attention to it.
1.0.5 - Fixed a stupid typo on one of the weapons (M87 (wrong) -> M84 (correct)). Added team-checking for both Capture/Destroy Events. Added potential new weapons (Garand, K98).
1.1.0 - Moved from static weapon list to a configurable list by an external file (see install instructions) (Thanks jballou for the idea!). This allows the logging of new/custom weapons from custom theatres and stuff without having to constantly recompile. Fixed CP Destroy event not being fired. Added sanity check for ingame clients, fixed CP Capture/Destroy event errors. Include files updated.
Description: This is a modified version of the original
SuperLogs by psychonic that intercepts and re-writes HL log messages for Insurgency2 . It also logs down weapon statistics in a format compatible with Psychostats/HLStatsX web interfaces. There are no cvars/commands for this plugin, it is largely silent.
Features:
Fixing improper weapon naming in the game log
Logging for headshots/hitbox regions per weapon
Logging for Control Point capture/destroy events (NOTE: Currently logs all human players online when this happens)
Installation:
Place the plugin (brutus_ins_logger.smx) in your game/addons/sourcemod/plugins folder and make sure logging is enabled for your game server. Place the configuration file (brutus_ins_logger_weapons.cfg) in game/cfg/sourcemod folder.
Credits:
psychonic - For SuperLogs
FZFalzar
MR.David
Notes:
The attached Include Files in the ZIP are required to compile this Plugin. The forum compiler will not suffice.
The events for CP Capture/Destroy are registered as "ins_cp_captured" and "ins_cp_destroyed" respectively. You should set your log capture regexes to pick those up should you require registering number of times of successful capping.
For any support/queries, please add me in Steam and send me a message as I rarely read the forums.