I have been hacking and updating Brutus' code since July, he appears to be off the grid so I have forked this myself. I have expanded it quite a bit, including just about every event that I think is worth logging, and has just been neatened up as much as I can. I'd really appreciate some more seasoned SM coders to comb through it and check my work before approval, I'm still pretty new at this and I'm looking to see what else we can tighten up here.
Other than the basic "it logs Insurgency" stuff from the original, new features/improvements are:
- Removal of the static config file for weapon names, the plugin now adds any existent weapons at load, and if it finds a weapon not in the list it adds it to the trie and adjusts counters. I haven't seen any issues from this, and it just makes way more sense to me rather than having to keep the config up to date (and then being on the hook for translation)
- Added the following events:
- ControlPointCaptured (Fixed code to only give credit to the players who capture it)
- ControlPointEndTouch, ControlPointNeutralized, ControlPointStartTouch,
- GameEnd, GameNewMap, GameStart,
- GrenadeDetonate, GrenadeThrown, MissileDetonate, MissileLaunched,
- ObjectDestroyed (gives credit to destroyer and assister)
- PlayerAvengedTeammate
- PlayerHurt (Major refactor of weapon tracking, the original would give credit for whatever weapon the attacker last fired. So if you throw a grenade and fire the knife, you can get credited for a knife kill. The new system records the last weapon which caused damage and credits properly)
- PlayerPickSquad (Role and team logging support)
- PlayerSuppressed (new PlayerPlayer action)
- RoundBegin, RoundEnd, RoundLevelAdvanced (Survival levels)RoundStart
CVAR/Command list
Just sm_inslogger_enabled that turns it on or off and sm_inslogger_version for tracking
Changelog
Coming soon
Dependencies
Loghelper and Wstats include files to compile
Plans
Finish all events, bugfixes. Integrate further with my
Insurgency HLStatsX fork to add as much logging ability as possible.