CDroneLaser: Implement sub_80167754

This commit is contained in:
Luke Street 2020-09-15 01:35:29 -04:00
parent ec83a227de
commit 2d8d90f39a
2 changed files with 16 additions and 1 deletions

View File

@ -71,6 +71,19 @@ void CDroneLaser::SetScannerLightActive(CStateManager& mgr, bool activate) {
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

View File

@ -21,6 +21,8 @@ public:
void AddToRenderer(const zeus::CFrustum& frustum, CStateManager& mgr) override;
void Render(CStateManager& mgr) override;
void CalculateRenderBounds() override;
void sub_80167754(CStateManager& mgr, const zeus::CVector3f& pos, const zeus::CVector3f& look);
};
} // namespace MP1
} // namespace urde