Work on CPlayerGun::InitMuzzleData

Former-commit-id: a73a47654d
This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-06 19:19:40 +03:00
parent 4ac2a5ad52
commit 8fb4e17199
1 changed files with 9 additions and 1 deletions

View File

@ -552,7 +552,15 @@ void CPlayerGun::InitBombData() {
x784_bombEffects[1].push_back(obj3); x784_bombEffects[1].push_back(obj3);
} }
void CPlayerGun::InitMuzzleData() {} void CPlayerGun::InitMuzzleData() {
for (int i = 0; i < 5; ++i) {
SObjectTag tag('PART', (i < 0 || 4 < i) ? kInvalidAssetId : gpTweakGunRes->xa4_auxMuzzle[i]);
x7c0_auxMuzzleEffects.push_back(gpSimplePool->GetObj(tag));
// TODO: not likely correct, maybe need improvements to auto_ptr
x800_auxMuzzleGenerators.push_back(new CElementGen(x7c0_auxMuzzleEffects.back()));
x800_auxMuzzleGenerators.back()->SetParticleEmission(false);
}
}
void CPlayerGun::InitCTData() {} void CPlayerGun::InitCTData() {}