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

Working space warp effect for charge beam

This commit is contained in:
Jack Andersen
2018-02-12 20:46:59 -10:00
parent e263345b0a
commit 74ce62726d
12 changed files with 74 additions and 36 deletions

View File

@@ -13,7 +13,7 @@ namespace urde
CParticleDatabase::CParticleDatabase()
{
xb4_24_active = true;
xb4_25_drawingEnds = false;
xb4_25_anySystemsDrawnWithModel = false;
}
void CParticleDatabase::CacheParticleDesc(const SObjectTag &tag)
@@ -237,7 +237,7 @@ void CParticleDatabase::Update(float dt, const CPoseAsTransforms& pose, const CC
UpdateParticleGenDB(dt, pose, charInfo, xf, scale, stateMgr, x8c_firstDraw, false);
UpdateParticleGenDB(dt, pose, charInfo, xf, scale, stateMgr, xa0_lastDraw, false);
xb4_25_drawingEnds = (x50_firstDrawLoop.size() || x64_lastDrawLoop.size() || x8c_firstDraw.size() || xa0_lastDraw.size());
xb4_25_anySystemsDrawnWithModel = (x50_firstDrawLoop.size() || x64_lastDrawLoop.size() || x8c_firstDraw.size() || xa0_lastDraw.size());
}
void CParticleDatabase::RenderParticleGenMap(const std::map<std::string, std::unique_ptr<CParticleGenInfo>>& map)
@@ -513,7 +513,7 @@ void CParticleDatabase::InsertParticleGen(bool oneShot, int flags, std::string_v
useMap->insert(std::make_pair(std::string(name), std::move(gen)));
if (flags & 0x60)
xb4_25_drawingEnds = true;
xb4_25_anySystemsDrawnWithModel = true;
}
}