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

Method init

ogsr_engine/xrGame/TeleWhirlwind.cpp:72–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72bool CTeleWhirlwindObject::init(CTelekinesis* tele, CPhysicsShellHolder* obj, float s, float h, u32 ttk, bool rot)
73{
74 bool result = inherited::init(tele, obj, s, h, ttk, rot);
75 m_telekinesis = static_cast<CTeleWhirlwind*>(tele);
76
77 throw_power = strength;
78 if (m_telekinesis->is_active_object(obj))
79 {
80 return false;
81 }
82 if (obj->PPhysicsShell())
83 {
84 obj->PPhysicsShell()->SetAirResistance(0.f, 0.f);
85 obj->m_pPhysicsShell->set_ApplyByGravity(TRUE);
86 }
87
88 if (object->ph_destroyable() && object->ph_destroyable()->CanDestroy())
89 b_destroyable = true;
90 else
91 b_destroyable = false;
92
93 return result;
94}
95void CTeleWhirlwindObject::raise_update()
96{
97 // u32 time=Device.dwTimeGlobal;

Callers

nothing calls this directly

Calls 6

initFunction · 0.85
is_active_objectMethod · 0.80
CanDestroyMethod · 0.80
SetAirResistanceMethod · 0.45
set_ApplyByGravityMethod · 0.45
ph_destroyableMethod · 0.45

Tested by

no test coverage detected