Puffer fixes

This commit is contained in:
Phillip Stephens 2020-03-04 05:33:33 -08:00
parent fe4d9f8b1a
commit 8ade2bc27c
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
2 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ namespace urde::MP1 {
CPuffer::CPuffer(TUniqueId uid, std::string_view name, const CEntityInfo& info, const zeus::CTransform& xf,
CModelData&& modelData, const CActorParameters& actorParameters, const CPatternedInfo& patternedInfo,
float hoverSpeed, CAssetId cloudEffect, const CDamageInfo& cloudDamage, CAssetId cloudSteam, float f2,
bool b1, bool b2, bool b3, const CDamageInfo& explosionDamage, s16 sfxId)
bool b1, bool b2, bool b3, const CDamageInfo& explosionDamage, s16 sound_Turn)
: CPatterned(ECharacter::Puffer, uid, name, EFlavorType::Zero, info, xf, std::move(modelData), patternedInfo,
EMovementType::Flyer, EColliderType::One, EBodyType::RestrictedFlyer, actorParameters,
EKnockBackVariant::Small)
@ -24,7 +24,7 @@ CPuffer::CPuffer(TUniqueId uid, std::string_view name, const CEntityInfo& info,
, x598_24_(b1)
, x598_25_(b3)
, x598_26_(b2)
, x59a_(CSfxManager::TranslateSFXID(sfxId))
, x59a_Sound_Turn(CSfxManager::TranslateSFXID(sound_Turn))
, x59c_explosionDamage(explosionDamage)
, x5b8_(f2)
, x5bc_cloudSteam(cloudSteam) {
@ -59,9 +59,9 @@ void CPuffer::Think(float dt, CStateManager& mgr) {
sub8025bfa4(mgr);
zeus::CVector3f moveVector = x450_bodyController->GetCommandMgr().GetMoveVector();
if (x5cc_ != x2dc_destObj) {
x5cc_ = x2dc_destObj;
CSfxManager::AddEmitter(x59a_, GetTranslation(), {}, true, false, 127, -1);
if (x5cc_lastDestObj != x2dc_destObj) {
x5cc_lastDestObj = x2dc_destObj;
CSfxManager::AddEmitter(x59a_Sound_Turn, GetTranslation(), {}, true, false, 127, -1);
}
x450_bodyController->GetCommandMgr().ClearLocomotionCmds();

View File

@ -15,12 +15,12 @@ class CPuffer : public CPatterned {
bool x598_24_ : 1;
bool x598_25_ : 1;
bool x598_26_ : 1;
s16 x59a_;
s16 x59a_Sound_Turn;
CDamageInfo x59c_explosionDamage;
float x5b8_;
CAssetId x5bc_cloudSteam;
zeus::CVector3f x5c0_move;
TUniqueId x5cc_ = kInvalidUniqueId;
TUniqueId x5cc_lastDestObj = kInvalidUniqueId;
s32 x5d0_enabledParticles = 0;
rstl::reserved_vector<zeus::CVector3f, 14> x5d4_gasLocators;