94    {
   95        super.OnWork(consumed_energy);
   96        
   98        {
   99            Battery9V battery = Battery9V.Cast(GetCompEM().GetEnergySource());
  100            
  102            {
  104                
  105                if (efficiency < 1)
  106                {
  107                    m_Light.SetIntensity(efficiency, GetCompEM().GetUpdateInterval());
 
  108                }
  109                else
  110                {
  112                }
  113            }
  114        }
  115    }
float GetEfficiency0To1()
Returns efficiency of this battery. The value is synchronized from server to all clients and is accur...
 
proto native CGame GetGame()