8 static string LIGHT_OFF_GLASS =
"dz\\gear\\tools\\data\\flashlight_glass.rvmat";
10 static string LIGHT_ON_GLASS =
"dz\\gear\\tools\\data\\flashlight_glass_on.rvmat";
18 m_Light.AttachOnMemoryPoint(
this,
"beamStart",
"beamEnd");
25 override void OnWork(
float consumed_energy )
37 m_Light.SetIntensity( efficiency, GetCompEM().GetUpdateInterval() );
64 super.OnInventoryExit(player);
66 if ( GetCompEM().IsWorking() )
70 vector ori_rotate = player.GetOrientation();
71 ori_rotate = ori_rotate +
Vector(270,0,0);
72 SetOrientation(ori_rotate);
87 Battery9V.Cast(GetInventory().CreateInInventory(
"Battery9V"));
void AddAction(typename actionName)
float GetEfficiency0To1()
Returns efficiency of this battery. The value is synchronized from server to all clients and is accur...
override void OnWork(float consumed_energy)
override void OnWorkStart()
override void SetActions()
static string LIGHT_OFF_REFLECTOR
override void OnWorkStop()
override void OnDebugSpawn()
static string LIGHT_ON_GLASS
override void OnInventoryExit(Man player)
static string LIGHT_ON_REFLECTOR
static string LIGHT_OFF_GLASS
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.