5 static int REFLECTOR_ID = 1;
6 static int GLASS_ID = 0;
8 static string LIGHT_OFF_GLASS =
"dz\\gear\\tools\\data\\flashlight_glass.rvmat";
9 static string LIGHT_OFF_REFLECTOR =
"dz\\weapons\\attachments\\data\\TLS3.rvmat";
10 static string LIGHT_ON_GLASS =
"dz\\gear\\tools\\data\\flashlight_glass_on.rvmat";
11 static string LIGHT_ON_REFLECTOR =
"dz\\weapons\\attachments\\data\\TLS3_on.rvmat";
20 if (!
super.CanPutAsAttachment(parent))
return false;
21 if (!parent.IsKindOf(
"PlateCarrierHolster") && !parent.IsKindOf(
"PlateCarrierComplete") && !parent.IsKindOf(
"CarrierHolsterSolo") && !parent.IsKindOf(
"ChestHolster"))
32 m_Light.AttachOnMemoryPoint(
this,
"beamStart",
"beamEnd");
33 SetObjectMaterial(GLASS_ID, LIGHT_ON_GLASS);
34 SetObjectMaterial(REFLECTOR_ID, LIGHT_ON_REFLECTOR);
65 SetObjectMaterial(GLASS_ID, LIGHT_OFF_GLASS);
66 SetObjectMaterial(REFLECTOR_ID, LIGHT_OFF_REFLECTOR);
75 if (GetCompEM().IsWorking())
void AddAction(typename actionName)
ExplosiveLight m_Light
light
void SetIntensity(float coef, float time)
override void OnWork(float consumed_energy)
override void OnInventoryExit(Man player)
override ScriptedLightBase GetLight()
override void OnWorkStart()
override void SetActions()
override void OnWorkStop()
override bool CanPutAsAttachment(EntityAI parent)
override bool IsLightSource()
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.