16 {
17 if (LogManager.IsSyncLogEnable())
syncDebugPrint(
"DZPI::OnSimulationEnd - trying to drop item");
18
20 {
22 if (itemInHands)
23 {
24 int boneIndex =
m_pPlayer.GetBoneIndexByName(
"RightHand_Dummy");
25
26 vector m4[4];
27 m_pPlayer.GetBoneTransformWS(boneIndex, m4);
28
30
32 {
33 int deadBodyLifetime =
GetCEApi().GetCEGlobalInt(
"CleanupLifetimeDeadPlayer");
34 if (deadBodyLifetime <= 0)
35 {
36 deadBodyLifetime = 3600;
37 }
38 itemInHands.SetLifetime(deadBodyLifetime);
39 }
40 }
41 }
42 }
void syncDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
proto native CEApi GetCEApi()
Get the CE API.
proto native CGame GetGame()