| 219 | } |
| 220 | |
| 221 | void 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 | |
| 269 | void CActor::net_Relcase(CObject* O) |
| 270 | { |
nothing calls this directly
no test coverage detected