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

Method net_Relcase

ogsr_engine/xrGame/Actor_Network.cpp:269–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void CActor::net_Relcase(CObject* O)
270{
271 VERIFY(O);
272
273 CGameObject* GO = smart_cast<CGameObject*>(O);
274 if (GO && m_pObjectWeLookingAt == GO)
275 {
276 m_pObjectWeLookingAt = NULL;
277 }
278 CHolderCustom* HC = smart_cast<CHolderCustom*>(GO);
279 if (HC && HC == m_pVehicleWeLookingAt)
280 {
281 m_pVehicleWeLookingAt = NULL;
282 }
283 if (HC && HC == m_holder)
284 {
285 m_holder->detach_Actor();
286 m_holder = NULL;
287 }
288
289 if (m_pending_car == O)
290 {
291 m_pending_car = {};
292 m_pending_car_frames = 0;
293 }
294
295 inherited::net_Relcase(O);
296
297 memory().remove_links(O);
298 m_pPhysics_support->in_NetRelcase(O);
299 conditions().net_Relcase(O);
300}
301
302BOOL CActor::net_Relevant() // relevant for export to server
303{

Callers

nothing calls this directly

Calls 4

net_RelcaseFunction · 0.85
in_NetRelcaseMethod · 0.80
detach_ActorMethod · 0.45
remove_linksMethod · 0.45

Tested by

no test coverage detected