2016-05-20 09:17:51 +00:00
|
|
|
#include "CDamageInfo.hpp"
|
|
|
|
#include "CDamageVulnerability.hpp"
|
2017-01-27 02:58:21 +00:00
|
|
|
#include "DataSpec/DNACommon/Tweaks/ITweakPlayerGun.hpp"
|
2016-05-20 09:17:51 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2017-01-27 02:58:21 +00:00
|
|
|
float CDamageInfo::GetRadiusDamage(const CDamageVulnerability& dVuln) { return 0.f; }
|
|
|
|
|
|
|
|
CDamageInfo::CDamageInfo(const DataSpec::SShotParam& other)
|
|
|
|
: x0_weaponMode(CWeaponMode(EWeaponType(other.weaponType), other.Charged(), other.Comboed(), other.InstaKill()))
|
|
|
|
, x8_damage(other.damage)
|
|
|
|
, xc_radiusDamage(other.radiusDamage)
|
|
|
|
, x10_radius(other.radius)
|
|
|
|
, x14_knockback(other.knockback)
|
2016-05-20 09:17:51 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-01-27 02:58:21 +00:00
|
|
|
CDamageInfo& CDamageInfo::operator=(const DataSpec::SShotParam& other)
|
|
|
|
{
|
|
|
|
x0_weaponMode = CWeaponMode(EWeaponType(other.weaponType), other.Charged(), other.Comboed(), other.InstaKill());
|
|
|
|
x8_damage = other.damage;
|
|
|
|
xc_radiusDamage = x8_damage;
|
|
|
|
x10_radius = other.radius;
|
|
|
|
x14_knockback = other.knockback;
|
|
|
|
x18_ = false;
|
|
|
|
return *this;
|
|
|
|
}
|
2016-05-20 09:17:51 +00:00
|
|
|
}
|