Aimbot.cpp: fix Hitman's Heatmaker damage calculation

This commit is contained in:
TotallyNotElite 2019-10-24 10:32:29 +02:00
parent e1814431d5
commit 02b7a2c4b0

View File

@ -1097,7 +1097,12 @@ int BestHitbox(CachedEntity *target)
{
float cdmg = CE_FLOAT(LOCAL_W, netvar.flChargedDamage);
float bdmg = CarryingHeatmaker() ? 40 : 50;
float bdmg = 50;
if (CarryingHeatmaker())
{
bdmg = (bdmg * .80) - 1;
cdmg = (cdmg * .80) - 1;
}
// Darwins damage correction, protects against 15% of damage
// if (HasDarwins(target))
// {