32 super.OnItemLocationChanged( old_owner, new_owner);
39 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
50 if ( IsDamageDestroyed() )
58 GetInventory().GetCurrentInventoryLocation( IL );
61 int id_cargo = IL.
GetIdx();
70 SetPilotLight(do_glow);
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);
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);
proto native int GetSlot()
returns slot id if current type is Attachment
proto native int GetIdx()
returns index of cargo if current type is Cargo / ProxyCargo
provides access to slot configuration
override void OnRemovedFromCargo(EntityAI container)
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
override void OnMovedWithinCargo(EntityAI container)
override void OnMovedInsideCargo(EntityAI container)
set< int > GetAttachmentExclusionInitSlotValue(int slotId)
override void EOnInit(IEntity other, int extra)
override void UpdateNVGStatus(PlayerBase player, bool attaching=false, bool force_disable=false)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
proto native CGame GetGame()
EntityEvent
Entity events for event-mask, or throwing event from code.