26 {
27 super.OnWasAttached(parent, slot_id);
28
29 Class.CastTo(
m_Player, parent.GetHierarchyRootPlayer());
30
31 if ((!
GetGame().IsDedicatedServer()) &&
m_Player &&
m_Player.IsControlledPlayer() && slot_id == InventorySlots.HEADGEAR)
32 {
33 PPERequesterBank.GetRequester(PPERequester_BurlapSackEffects).Start();
35 m_Player.SetMasterAttenuation(
"BurlapSackAttenuation");
36
38 {
40 }
41 }
42 SetInvisibleRecursive(
true,
m_Player,{InventorySlots.MASK,InventorySlots.EYEWEAR});
43 }
proto native Mission GetMission()
proto native CGame GetGame()