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

Method detach_Actor

ogsr_engine/xrGame/Car.cpp:628–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626 }
627}
628void CCar::detach_Actor()
629{
630 if (!Owner())
631 return;
632 Owner()->setVisible(1);
633 CHolderCustom::detach_Actor();
634 PPhysicsShell()->remove_ObjectContactCallback(ActorObstacleCallback);
635 NeutralDrive();
636 Unclutch();
637 ResetKeys();
638 m_current_rpm = m_min_rpm;
639 HUD().GetUI()->UIMainIngameWnd->CarPanel().Show(false);
640 /// Break();
641 // H_SetParent(NULL);
642 HandBreak();
643 processing_deactivate();
644#ifdef DEBUG
645 DBgClearPlots();
646#endif
647}
648
649bool CCar::attach_Actor(CGameObject* actor)
650{

Callers 3

net_RelcaseMethod · 0.45
detach_VehicleMethod · 0.45
use_MountedWeaponMethod · 0.45

Calls 5

GetUIMethod · 0.80
OwnerFunction · 0.70
setVisibleMethod · 0.45
ShowMethod · 0.45

Tested by

no test coverage detected