mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 14:27:42 +00:00
All animation nodes implemented
This commit is contained in:
@@ -228,7 +228,7 @@ void CGunWeapon::Fire(bool underwater, float dt, EChargeState chargeState, const
|
||||
{
|
||||
CDamageInfo dInfo = GetDamageInfo(mgr, chargeState, chargeFactor1);
|
||||
zeus::CVector3f scale(chargeState == EChargeState::Normal ? 1.f : chargeFactor2);
|
||||
bool partialCharge = chargeState == EChargeState::Normal ? false : std::fabs(chargeFactor1 - 1.f) >= 0.00001f;
|
||||
bool partialCharge = chargeState == EChargeState::Normal ? false : !zeus::close_enough(chargeFactor1, 1.f);
|
||||
CWeapon::EProjectileAttrib attribs = CWeapon::EProjectileAttrib::ArmCannon;
|
||||
if (partialCharge)
|
||||
attribs |= CWeapon::EProjectileAttrib::PartialCharge;
|
||||
|
||||
Reference in New Issue
Block a user