From 7477a11c2f155176ebb930aad759942665db3b97 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Fri, 27 Mar 2020 01:14:02 -0400 Subject: [PATCH] Oops Wrong vars --- Classic/scripts/autoexec/EvoStats.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classic/scripts/autoexec/EvoStats.cs b/Classic/scripts/autoexec/EvoStats.cs index 367a727..6f89c32 100644 --- a/Classic/scripts/autoexec/EvoStats.cs +++ b/Classic/scripts/autoexec/EvoStats.cs @@ -39,7 +39,7 @@ function DefaultGame::onClientKilled(%game, %clVictim, %clKiller, %damageType, % Parent::onClientKilled(%game, %clVictim, %clKiller, %damageType, %implement, %damageLocation); // call the function if(!$Host::TournamentMode && $Host::ClassicEvoStats) - handleKillStat(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC); + handleKillStat(%game, %clVictim, %clKiller, %damageType, %implement, %damageLocation); } function ProjectileData::onCollision(%data, %projectile, %targetObject, %modifier, %position, %normal) @@ -189,7 +189,7 @@ function handleDamageStat(%data, %targetObject, %sourceObject, %position, %amoun // handleKillStat(%clVictim, %clKiller, %damageType, %implement) // Info: Calcs: Kills, TeamKills, FC kills function handleKillStat(%game, %clVictim, %clKiller, %damageType, %implement, %damageLocation) -{ +{ if(%damageType == 13) // is a roadkill %clKiller = %implement.getControllingClient(); @@ -208,7 +208,7 @@ function handleKillStat(%game, %clVictim, %clKiller, %damageType, %implement, %d if($stats::tk[%clKiller] > $stats::tk_counter) { - $stats::tk_counter = $stats::tk[%clKiller]; + $stats::tk_counter = $stats::tk[%clKiller]; $stats::tk_client = getTaggedString(%clKiller.name); } }