Skip to content

Logging grenades

Rob Nelson requested to merge pull/13180/logging-grenades into Bleeding-Edge

Created by: Kammerjunk

Will log priming grenades with co-ordinates instead of without. This is what it looks like in the logs:

[15:15:23]ADMIN: ATTACK: Admin (kammerjunk) primed a grenade at (109,102,1).
[15:15:23]ADMINWARN: <span class="admin"><span class="prefix">ADMIN LOG:</span> <span class="message">ATTACK: Admin (kammerjunk) primed a grenade at <A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=109;Y=102;Z=1'>Bar - 109,102,1</a>.</span></span>

This is what it looks like in-game: image

By request from Probe, I've also logged the construction of grenades with what they contain. This is what it looks like in the logs:

[17:36:00]GAME: <span class='notice'>Admin (kammerjunk) has constructed a grenade containing (potassium and phosphorus) and (phosphorus and sugar).</span> (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=93;Y=100;Z=1'>JMP</a>)
[17:36:00]ADMINWARN: <span class="admin"><span class="prefix">ADMIN LOG:</span> <span class="message"><span class='notice'>Admin (kammerjunk) has constructed a grenade containing (potassium and phosphorus) and (phosphorus and sugar).</span> (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=93;Y=100;Z=1'>JMP</a>)</span></span>

This is what it looks like in-game: image

If anything else needs similar logging, I might as well do that in this PR, so give a shout.

Merge request reports