mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 07:07:42 +00:00
CWaveBuster: Add AcceptScriptMsg implementation
This commit is contained in:
@@ -36,6 +36,26 @@ void CWaveBuster::SetNewTarget(TUniqueId id) {}
|
||||
|
||||
void CWaveBuster::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
||||
|
||||
void CWaveBuster::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId senderId, CStateManager& mgr) {
|
||||
if (msg == EScriptObjectMessage::Deleted) {
|
||||
DeleteProjectileLight(mgr);
|
||||
} else if (msg == EScriptObjectMessage::Registered) {
|
||||
if (x390_busterLightGen != nullptr && x390_busterLightGen->SystemHasLight()) {
|
||||
const CLight light = x390_busterLightGen->GetLight();
|
||||
CreateProjectileLight("WaveBuster_Light", light, mgr);
|
||||
}
|
||||
|
||||
// Thermal hot
|
||||
xe6_27_thermalVisorFlags = 2;
|
||||
|
||||
x318_ = x2e8_originalXf.origin;
|
||||
x324_ = x34_transform.origin;
|
||||
x330_ = x34_transform.origin;
|
||||
}
|
||||
|
||||
CGameProjectile::AcceptScriptMsg(msg, senderId, mgr);
|
||||
}
|
||||
|
||||
void CWaveBuster::AddToRenderer([[maybe_unused]] const zeus::CFrustum& frustum, CStateManager& mgr) {
|
||||
const auto bounds = GetSortingBounds(mgr);
|
||||
EnsureRendered(mgr, x2e8_originalXf.origin, bounds);
|
||||
|
||||
Reference in New Issue
Block a user