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

Method net_Destroy

ogsr_engine/xrGame/Actor_Network.cpp:221–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void CActor::net_Destroy()
222{
223 inherited::net_Destroy();
224
225 if (m_holder_id != ALife::_OBJECT_ID(-1))
226 Level().client_spawn_manager().remove(m_holder_id, ID());
227
228 delete_data(m_game_task_manager);
229 delete_data(m_statistic_manager);
230
231 Level().MapManager().RemoveMapLocationByObjectID(ID());
232
233#pragma todo("Dima to MadMax : do not comment inventory owner net_Destroy!!!")
234 CInventoryOwner::net_Destroy();
235 cam_UnsetLadder();
236 character_physics_support()->movement()->DestroyCharacter();
237 if (m_pPhysicsShell)
238 {
239 m_pPhysicsShell->Deactivate();
240 xr_delete(m_pPhysicsShell);
241 }
242 m_pPhysics_support->in_NetDestroy();
243
244 xr_delete(m_sndShockEffector);
245 xr_delete(m_pActorEffector);
246 pCamBobbing = NULL;
247
248#ifdef DEBUG
249 LastPosS.clear();
250 LastPosH.clear();
251 LastPosL.clear();
252#endif
253
254 processing_deactivate();
255 m_holder = NULL;
256 m_holderID = u16(-1);
257
258 SetDefaultVisualOutfit(NULL);
259
260 if (g_actor == this)
261 g_actor = NULL;
262
263 Engine.Sheduler.Unregister(this);
264
265 if (actor_camera_shell && actor_camera_shell->get_ElementByStoreOrder(0)->PhysicsRefObject() == this)
266 destroy_physics_shell(actor_camera_shell);
267}
268
269void CActor::net_Relcase(CObject* O)
270{

Callers

nothing calls this directly

Calls 15

IDFunction · 0.85
delete_dataFunction · 0.85
xr_deleteFunction · 0.85
destroy_physics_shellFunction · 0.85
DestroyCharacterMethod · 0.80
movementMethod · 0.80
in_NetDestroyMethod · 0.80
UnregisterMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected