Mostly match CPlayerGun::InitBombData

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-06 18:49:56 +03:00
parent 166a545542
commit a3cd818248
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 14 additions and 1 deletions

View File

@ -23,6 +23,7 @@
#include "Kyoto/Graphics/CModelFlags.hpp" #include "Kyoto/Graphics/CModelFlags.hpp"
#include "Kyoto/Math/CMath.hpp" #include "Kyoto/Math/CMath.hpp"
#include "Kyoto/Particles/CElementGen.hpp" #include "Kyoto/Particles/CElementGen.hpp"
#include "Kyoto/SObjectTag.hpp"
#include "Collision/CMaterialFilter.hpp" #include "Collision/CMaterialFilter.hpp"
#include "Collision/CMaterialList.hpp" #include "Collision/CMaterialList.hpp"
@ -537,7 +538,19 @@ void CPlayerGun::InitBeamData() {
x774_holoTransitionGen->SetParticleEmission(true); x774_holoTransitionGen->SetParticleEmission(true);
} }
void CPlayerGun::InitBombData() {} void CPlayerGun::InitBombData() {
for (int i = 0; i < 2; ++i)
x784_bombEffects.push_back(rstl::reserved_vector< TLockedToken< CGenDescription >, 2 >());
CToken obj1 = gpSimplePool->GetObj(SObjectTag('PART', gpTweakGunRes->x28_bombSet));
CToken obj2 = gpSimplePool->GetObj(SObjectTag('PART', gpTweakGunRes->x2c_bombExplode));
CToken obj3 = gpSimplePool->GetObj(SObjectTag('PART', gpTweakGunRes->x30_powerBombExplode));
x784_bombEffects[0].push_back(obj1);
x784_bombEffects[0].push_back(obj2);
x784_bombEffects[1].push_back(obj3);
x784_bombEffects[1].push_back(obj3);
}
void CPlayerGun::InitMuzzleData() {} void CPlayerGun::InitMuzzleData() {}