View Single Post
Author Message
Mosalar
Senior Member
Join Date: Jul 2004
Location: Tampa Fl
Old 05-25-2009 , 11:22   [DoDS] Extra weapon Logging.
Reply With Quote #1

This adds events in the log to track kills of weapons with alternate positions. Such as the ironsights for the rifle class, noscope kills for the snipers, single shot kills for the support, and obviously RAMBO kills from the mg class.
Both HLStatsX:CE and Psychostats will be able to track these events in their awards/bonuses.
I started this just to alert my admins to certain noscope exploits, but then decided to add support for the other weapons.

Plugin will create a config file in mod/cfg/sourcemod/

The cvars turn on/off the ingame chat messages. The logging continues as long as the plugin runs.

CVARS:

sm_dod_xlog_ns
1|0
Turns on/off the NoScope messages.

sm_dod_xlog_hs
1|0
Turns on/off the NoScope Headshot messages.

sm_dod_xlog_mg
1|0
Turns on/off the MG messages.

sm_dod_xlog_support
1|0
Turns on/off the Support messages.

sm_dod_xlog_rifle
1|0
Turns on/off the Ironsight messages.

Sample log lines:
Code:
L 05/19/2009 - 20:57:46: "Extra<212><STEAM_0:1234567><Axis>" triggered "noscope" with "weapon_k98_scoped"
L 05/19/2009 - 20:58:30: "Rttf. Ackermann |9.SS|<213><STEAM_0:123456><Allies>" triggered "rambo" with "weapon_30cal"
Kudos:

Tsunami: pm secks
Psychonic: "proper valve logging format"

This will eventually become unneeded when psychonic adds these features to the basecode of hlstatsx:ce. But until then....
Attached Files
File Type: sp Get Plugin or Get Source (dod_xlog.sp - 2448 views - 4.2 KB)

Last edited by Mosalar; 06-03-2009 at 15:06.
Mosalar is offline