2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:07:41 +00:00

CDamageInfo fixes, initial CPuffer

This commit is contained in:
2018-11-13 20:16:11 -08:00
parent 660e7cd239
commit a7e81073ae
9 changed files with 354 additions and 7 deletions

View File

@@ -47,4 +47,14 @@ float CDamageInfo::GetRadiusDamage(const CDamageVulnerability& dVuln) const
return xc_radiusDamage;
}
CDamageInfo::CDamageInfo(const CDamageInfo& other, float dt)
{
x0_weaponMode = other.x0_weaponMode;
x8_damage = other.x8_damage * (60.f * dt);
xc_radiusDamage = x8_damage;
x10_radius = other.x10_radius;
x14_knockback = other.x14_knockback;
x18_noImmunity = true;
}
}