Update EvoStats.cs

This commit is contained in:
ChocoTaco1 2020-03-25 23:26:26 -04:00
parent e0b4d09bbe
commit ed4ca716a9

View file

@ -30,7 +30,7 @@ function Armor::damageObject(%data, %targetObject, %sourceObject, %position, %am
{ {
Parent::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC); Parent::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC);
// call the function // call the function
if(!$Host::TournamentMode) if(!$Host::TournamentMode && $Host::ClassicEvoStats)
handleDamageStat(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC); handleDamageStat(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC);
} }
@ -38,7 +38,7 @@ function DefaultGame::onClientKilled(%game, %clVictim, %clKiller, %damageType, %
{ {
Parent::onClientKilled(%game, %clVictim, %clKiller, %damageType, %implement, %damageLocation); Parent::onClientKilled(%game, %clVictim, %clKiller, %damageType, %implement, %damageLocation);
// call the function // call the function
if(!$Host::TournamentMode) if(!$Host::TournamentMode && $Host::ClassicEvoStats)
handleKillStat(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC); handleKillStat(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC);
} }
@ -47,7 +47,7 @@ function ProjectileData::onCollision(%data, %projectile, %targetObject, %modifie
if(isObject(%targetObject)) // Console spam fix. if(isObject(%targetObject)) // Console spam fix.
{ {
// call the function // call the function
if(!$Host::TournamentMode) if(!$Host::TournamentMode && $Host::ClassicEvoStats)
handleMAStat(%data, %projectile, %targetObject, %modifier, %position, %normal); handleMAStat(%data, %projectile, %targetObject, %modifier, %position, %normal);
} }
Parent::onCollision( %data, %projectile, %targetObject, %modifier, %position, %normal ); Parent::onCollision( %data, %projectile, %targetObject, %modifier, %position, %normal );