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

Method Update

ogsr_engine/xrGame/PHSkeleton.cpp:140–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138void CPHSkeleton::Load(LPCSTR section) { existence_time = pSettings->r_u32(section, "remove_time") * 1000; }
139
140void CPHSkeleton::Update(u32 dt)
141{
142 CPhysicsShellHolder* obj = PPhysicsShellHolder();
143 CPhysicsShell* pPhysicsShell = obj->PPhysicsShell();
144 if (pPhysicsShell && pPhysicsShell->isFractured()) //! ai().get_alife() &&
145 {
146 PHSplit();
147 }
148
149 if (b_removing && Device.dwTimeGlobal > m_remove_time &&
150 //(Device.dwTimeGlobal-m_unsplit_time)*phTimefactor>remove_time&&
151 m_unsplited_shels.empty())
152 {
153 if (obj->Local())
154 obj->DestroyObject();
155 b_removing = false;
156 }
157}
158
159// SaveNetState() вызывается при создании сейва из
160//

Callers

nothing calls this directly

Calls 4

isFracturedMethod · 0.80
PPhysicsShellHolderFunction · 0.70
emptyMethod · 0.45
DestroyObjectMethod · 0.45

Tested by

no test coverage detected