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

Method reinit

ogsr_engine/xrGame/CustomRocket.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57CCustomRocket::~CCustomRocket() { m_pTrailLight.destroy(); }
58
59void CCustomRocket::reinit()
60{
61 inherited::reinit();
62
63 m_pTrailLight.destroy();
64 m_pTrailLight = ::Render->light_create();
65 m_pTrailLight->set_shadow(true);
66 m_pTrailLight->set_moveable(true);
67
68 m_pEngineParticles = NULL;
69 m_pFlyParticles = NULL;
70
71 m_pOwner = NULL;
72
73 m_vPrevVel.set(0, 0, 0);
74}
75
76BOOL CCustomRocket::net_Spawn(CSE_Abstract* DC)
77{

Callers

nothing calls this directly

Calls 5

light_createMethod · 0.80
set_shadowMethod · 0.80
set_moveableMethod · 0.80
destroyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected