MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnDrawUI

Method OnDrawUI

ogsr_engine/xrGame/Missile.cpp:783–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783void CMissile::OnDrawUI()
784{
785 if (GetState() == eReady && !m_throw)
786 {
787 CActor* actor = smart_cast<CActor*>(H_Parent());
788 if (actor)
789 {
790 if (!g_MissileForceShape)
791 create_force_progress();
792 float k = (m_fThrowForce - m_fMinForce) / (m_fMaxForce - m_fMinForce);
793 g_MissileForceShape->SetPos(k);
794 g_MissileForceShape->Draw();
795 }
796 }
797}
798
799void CMissile::ExitContactCallback(bool& do_colide, bool bo1, dContact& c, SGameMtl* material_1, SGameMtl* material_2)
800{

Callers

nothing calls this directly

Calls 4

H_ParentFunction · 0.85
create_force_progressFunction · 0.85
SetPosMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected