mirror of https://github.com/AxioDL/metaforce.git
CDroneLaser: Implement sub_80167754
This commit is contained in:
parent
ec83a227de
commit
2d8d90f39a
|
@ -71,6 +71,19 @@ void CDroneLaser::SetScannerLightActive(CStateManager& mgr, bool activate) {
|
||||||
activate ? EScriptObjectMessage::Activate : EScriptObjectMessage::Deactivate);
|
activate ? EScriptObjectMessage::Activate : EScriptObjectMessage::Deactivate);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CDroneLaser::RenderBeam(u32 w, float f, const zeus::CColor& col, bool) const {}
|
void CDroneLaser::RenderBeam(u32 w, float f, const zeus::CColor& col, bool) const {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
void CDroneLaser::sub_80167754(CStateManager& mgr, const zeus::CVector3f& pos, const zeus::CVector3f& look) {
|
||||||
|
xe8_ = pos;
|
||||||
|
if (xf4_scannerLight != kInvalidUniqueId) {
|
||||||
|
if (TCastToPtr<CGameLight> light = mgr.ObjectById(xf4_scannerLight)) {
|
||||||
|
light->SetTranslation(pos - 0.5f * (pos - GetTranslation()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
x104_beamParticle->SetOrientation(zeus::lookAt(zeus::skZero3f, look));
|
||||||
|
x104_beamParticle->SetTranslation(pos);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace urde::MP1
|
} // namespace urde::MP1
|
||||||
|
|
|
@ -21,6 +21,8 @@ public:
|
||||||
void AddToRenderer(const zeus::CFrustum& frustum, CStateManager& mgr) override;
|
void AddToRenderer(const zeus::CFrustum& frustum, CStateManager& mgr) override;
|
||||||
void Render(CStateManager& mgr) override;
|
void Render(CStateManager& mgr) override;
|
||||||
void CalculateRenderBounds() override;
|
void CalculateRenderBounds() override;
|
||||||
|
|
||||||
|
void sub_80167754(CStateManager& mgr, const zeus::CVector3f& pos, const zeus::CVector3f& look);
|
||||||
};
|
};
|
||||||
} // namespace MP1
|
} // namespace MP1
|
||||||
} // namespace urde
|
} // namespace urde
|
||||||
|
|
Loading…
Reference in New Issue