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

Method HideExplosive

ogsr_engine/xrGame/Explosive.cpp:534–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532 }
533}
534void CExplosive::HideExplosive()
535{
536 CGameObject* GO = cast_game_object();
537 GO->setVisible(FALSE);
538 GO->setEnabled(FALSE);
539 CPhysicsShell* phshell = (smart_cast<CPhysicsShellHolder*>(GO))->PPhysicsShell();
540 if (phshell)
541 {
542 phshell->Disable();
543 phshell->DisableCollision();
544 }
545 m_bAlreadyHidden = true;
546};
547
548void CExplosive::OnEvent(NET_Packet& P, u16 type)
549{

Callers

nothing calls this directly

Calls 5

DisableCollisionMethod · 0.80
cast_game_objectFunction · 0.70
setVisibleMethod · 0.45
setEnabledMethod · 0.45
DisableMethod · 0.45

Tested by

no test coverage detected