Gamer-Dad / warlordsredux.altis

WSM WarlordsRedux
13 stars 28 forks source link

Added PvP kill log to RPT #242

Closed korbelz closed 4 months ago

korbelz commented 4 months ago

Dwarden asked for this in the logs.

WeasleyWalls commented 4 months ago

Could you add the following to the message: %3: If killer is infantry show currentWeapon, if in a vehicle show display name, if controlling a drone show drone display name %4: Distance between the two players %5: If friendly fire then true

diag_log format["PvP kill: %1 killed by %2 using %3 from %4 m, Friendly Fire: %5", name _unit, name _killer];

Edit: Event handler has to be moved to server side for it to post it in the server log.