2017-11-02 12:49:45 -04:00
|
|
|
#include maps\mp\_utility;
|
|
|
|
#include maps\mp\gametypes\_hud_util;
|
|
|
|
#include common_scripts\utility;
|
|
|
|
|
|
|
|
init()
|
|
|
|
{
|
|
|
|
SetDvarIfUninitialized("sv_customcallbacks", true);
|
|
|
|
level waittill("prematch_over");
|
|
|
|
level.callbackPlayerKilled = ::Callback_PlayerKilled;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Callback_PlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
|
|
|
|
{
|
|
|
|
victim = self;
|
2018-02-08 02:23:45 -05:00
|
|
|
_attacker = attacker;
|
2018-02-27 23:19:54 -05:00
|
|
|
if (!isPlayer(attacker) && isDefined(attacker.owner))
|
|
|
|
_attacker = attacker.owner;
|
|
|
|
else if(!isPlayer(attacker) && sMeansOfDeath == "MOD_FALLING")
|
2018-02-08 02:23:45 -05:00
|
|
|
_attacker = victim;
|
2017-11-02 12:49:45 -04:00
|
|
|
|
2018-03-13 17:30:22 -04:00
|
|
|
logPrint("ScriptKill;" + _attacker.guid + ";" + victim.guid + ";" + _attacker.origin + ";" + victim.origin + ";" + iDamage + ";" + sWeapon + ";" + sHitLoc + ";" + sMeansOfDeath + ";" + _attacker getPlayerAngles() + ";" + vDir + ";" + gettime() + "\n");
|
2017-11-02 12:49:45 -04:00
|
|
|
self maps\mp\gametypes\_damage::Callback_PlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration );
|
|
|
|
}
|