10 override void OnMovedInsideCargo(
EntityAI container)
15 override void OnMovedWithinCargo(
EntityAI container)
20 override void OnRemovedFromCargo(
EntityAI container)
25 override void EOnInit(
IEntity other,
int extra)
32 super.OnItemLocationChanged( old_owner, new_owner);
37 override void EEHealthLevelChanged(
int oldLevel,
int newLevel,
string zone)
39 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
44 void UpdateGlowState()
58 GetInventory().GetCurrentInventoryLocation( IL );
60 int id_2 = IL.GetSlot();
61 int id_cargo = IL.GetIdx();
70 SetPilotLight(do_glow);
73 override void UpdateNVGStatus(
PlayerBase player,
bool attaching =
false,
bool force_disable =
false)
75 if ( !
GetGame().IsDedicatedServer() )
79 player.RemoveActiveNV(
NVTypes.NV_PUMPKIN);
83 if ( attaching && (!player.IsNVGWorking() || player.GetNVType() !=
NVTypes.NV_PUMPKIN) )
85 player.AddActiveNV(
NVTypes.NV_PUMPKIN);
87 else if ( !attaching && player.IsNVGWorking() )
89 player.RemoveActiveNV(
NVTypes.NV_PUMPKIN);
95 override protected set<int> GetAttachmentExclusionInitSlotValue(
int slotId)
97 set<int> ret = super.GetAttachmentExclusionInitSlotValue(slotId);
100 ret.Insert(EAttExclusions.EXCLUSION_HEADGEAR_HELMET_0);
102 ret.Insert(EAttExclusions.EXCLUSION_MASK_1);
103 ret.Insert(EAttExclusions.EXCLUSION_MASK_2);
104 ret.Insert(EAttExclusions.EXCLUSION_HEADSTRAP_0);
106 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);