26 {
27 super.EEItemLocationChanged(oldLoc,newLoc);
28
29 if (
GetGame().IsDedicatedServer())
30 {
31 PlayerBase playerOld;
32 PlayerBase playerNew;
33 if (oldLoc.GetParent())
34 Class.CastTo(playerOld,oldLoc.GetParent().GetHierarchyRootPlayer());
35 if (newLoc.GetParent())
36 Class.CastTo(playerNew,newLoc.GetParent().GetHierarchyRootPlayer());
37
39 {
42 {
43 MiscGameplayFunctions.TransferItemProperties(this,newItem);
45 DeleteSafe();
46 }
47 }
48 }
49 }
const int ECE_PLACE_ON_SURFACE
class GP5GasMask extends MaskBase ItemBase
InventoryLocationType
types of Inventory Location
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
proto native CGame GetGame()