2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 02:27:43 +00:00

Fix ShotSmoke effect

This commit is contained in:
Jack Andersen
2018-02-12 12:27:40 -10:00
parent 46a4a37cc6
commit e263345b0a
6 changed files with 18 additions and 14 deletions

View File

@@ -59,7 +59,8 @@ void CPowerBeam::UpdateGunFx(bool shotSmoke, float dt, const CStateManager& mgr,
case ESmokeState::Done:
if (x234_shotSmokeGen)
{
x234_shotSmokeGen->SetGlobalTranslation(x10_solidModelData->GetScaledLocatorTransform("LBEAM").origin);
zeus::CTransform locator = x10_solidModelData->GetScaledLocatorTransform("LBEAM");
x234_shotSmokeGen->SetGlobalTranslation(locator.origin);
x234_shotSmokeGen->Update(dt);
if (x240_smokeState == ESmokeState::Done && x234_shotSmokeGen->GetSystemCount() == 0)
x240_smokeState = ESmokeState::Inactive;