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

Method DestroyCharacter

ogsr_engine/xrGame/PHMovementControl.cpp:939–948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937}
938
939void CPHMovementControl::DestroyCharacter()
940{
941 // Remove Grass bender if PHCharacter is not NULL
942 if (m_character->PhysicsRefObject())
943 g_pGamePersistent->GrassBendersRemoveById(m_character->PhysicsRefObject()->ID());
944
945 m_character->Destroy();
946 xr_delete(m_capture);
947 // xr_delete(m_character);
948}
949
950void CPHMovementControl::DeleteCharacterObject()
951{

Callers 15

net_SpawnMethod · 0.80
net_DestroyMethod · 0.80
ChangeVisualMethod · 0.80
CarExplodeMethod · 0.80
attach_VehicleMethod · 0.80
use_MountedWeaponMethod · 0.80
in_NetDestroyMethod · 0.80
in_UpdateCLMethod · 0.80
CreateSkeletonMethod · 0.80
ActivateShellMethod · 0.80
woundedMethod · 0.80

Calls 4

xr_deleteFunction · 0.85
PhysicsRefObjectMethod · 0.45
DestroyMethod · 0.45

Tested by

no test coverage detected