606 {
608 {
609 return;
610 }
611
612#ifdef ENABLE_LOGGING
613 if (LogManager.IsSyncLogEnable())
614 {
616 }
617#endif
618
619 EntityAI itemInHands = GetEntityInHands();
620 if (!itemInHands)
621 {
622 return;
623 }
624
626
627 vector m4[4];
628 GetBoneTransformWS(boneIndex, m4);
629
630
631
632 GetInventory().DropEntityWithTransform(
InventoryMode.SERVER,
this, itemInHands, m4);
633
635 if (ceApi)
636 {
637 int deadBodyLifetime = ceApi.GetCEGlobalInt("CleanupLifetimeDeadPlayer");
638 if (deadBodyLifetime <= 0)
639 {
640 deadBodyLifetime = 3600;
641 }
642
643 itemInHands.SetLifetime(deadBodyLifetime);
644 }
645 }
void syncDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
class CEItemProfile CEApi
API to interact with Central Economy.
proto native CEApi GetCEApi()
Get the CE API.
proto native int GetBoneIndexByName(string pBoneName)
returns bone index for a name (-1 if pBoneName doesn't exist)