123 {
125 m_Light = HeadtorchLight.Cast(ScriptedLightBase.CreateLight( HeadtorchLight,
"0 0 0"));
126
128
129 m_Light.PerformVisibilityCheck(
this);
130
131 EntityAI owner = GetHierarchyParent();
132
133 if (owner)
134 {
135 if (owner.IsPlayer())
136 {
137 PlayerBase owner_PB = PlayerBase.Cast(owner);
138 ItemBase att_item = owner_PB.GetItemOnSlot(
"Eyewear");
139
140 if (att_item == this)
141 {
143 }
144 else
145 {
147 }
148 }
149 else if (owner.IsZombie())
150 {
151 int slot_id = InventorySlots.GetSlotIdFromString("Eyewear");
152 EntityAI item_EAI = owner.GetInventory().FindAttachment(slot_id);
154
155 if (item_IB == this)
156 {
158 }
159 }
160 }
161 else
162 {
164 }
165 }
class GP5GasMask extends MaskBase ItemBase
static string m_OffHeadLightTarget
void AttachLightOnHead(EntityAI person)
static string m_OffHeadLightPoint