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

Method in_NetDestroy

ogsr_engine/xrGame/CharacterPhysicsSupport.cpp:265–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263 }
264}
265void CCharacterPhysicsSupport::in_NetDestroy()
266{
267 m_PhysicMovementControl->DestroyCharacter();
268
269 if (m_physics_skeleton)
270 {
271 m_physics_skeleton->Deactivate();
272 xr_delete(m_physics_skeleton);
273 }
274 if (m_pPhysicsShell)
275 {
276 m_pPhysicsShell->Deactivate();
277 xr_delete(m_pPhysicsShell);
278 }
279
280 m_flags.set(fl_skeleton_in_shell, FALSE);
281 CPHSkeleton::RespawnInit();
282 CPHDestroyable::RespawnInit();
283 m_eState = esAlive;
284 xr_delete(m_interactive_motion);
285 destroy_animation_collision();
286 DestroyIKController();
287}
288
289void CCharacterPhysicsSupport::in_NetSave(NET_Packet& P) { CPHSkeleton::SaveNetState(P); }
290

Callers 3

net_DestroyMethod · 0.80
net_DestroyMethod · 0.80
net_DestroyMethod · 0.80

Calls 4

xr_deleteFunction · 0.85
DestroyCharacterMethod · 0.80
DeactivateMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected