5 static int REFLECTOR_ID = 1;
6 static int GLASS_ID = 2;
8 static string LIGHT_OFF_GLASS =
"dz\\gear\\tools\\data\\flashlight_glass.rvmat";
9 static string LIGHT_OFF_REFLECTOR =
"dz\\gear\\tools\\data\\flashlight.rvmat";
10 static string LIGHT_ON_GLASS =
"dz\\gear\\tools\\data\\flashlight_glass_on.rvmat";
11 static string LIGHT_ON_REFLECTOR =
"dz\\gear\\tools\\data\\flashlight_glass_on.rvmat";
18 m_Light.AttachOnMemoryPoint(
this,
"beamStart",
"beamEnd");
21 SetObjectMaterial(GLASS_ID, LIGHT_ON_GLASS);
22 SetObjectMaterial(REFLECTOR_ID, LIGHT_ON_REFLECTOR);
53 SetObjectMaterial(GLASS_ID, LIGHT_OFF_GLASS);
54 SetObjectMaterial(REFLECTOR_ID, LIGHT_OFF_REFLECTOR);
62 if (GetCompEM().IsWorking())
83 Battery9V.Cast(GetInventory().CreateInInventory(
"Battery9V"));
void AddAction(typename actionName)
ExplosiveLight m_Light
light
override void OnWork(float consumed_energy)
override void OnWorkStart()
override void SetActions()
override void OnWorkStop()
override void OnDebugSpawn()
override void OnInventoryExit(Man player)
void SetIntensity(float coef, float time)
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.