| 70 | } |
| 71 | |
| 72 | bool 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 | } |
| 95 | void CTeleWhirlwindObject::raise_update() |
| 96 | { |
| 97 | // u32 time=Device.dwTimeGlobal; |
nothing calls this directly
no test coverage detected