1200 {
1202 {
1204 if ( battery )
1205 {
1206 if ( EngineIsOn() )
1207 {
1210 {
1213 }
1214 }
1216 {
1219 {
1222
1223 if ( battery.GetCompEM().GetEnergy() <= 0 )
1224 {
1226 }
1227 }
1228 }
1229 }
1230
1232 {
1235 {
1236
1238 SetEngineZoneReceivedHit(true);
1239 }
1240 }
1241 else
1242 {
1244 }
1245 }
1246
1247
1248 float brake_coef = GetBrake();
1249 if ( brake_coef > 0 )
1250 {
1252 {
1254 SetSynchDirty();
1256 }
1257 }
1258 else
1259 {
1261 {
1263 SetSynchDirty();
1265 }
1266 }
1267
1269 {
1272 }
1273 }
float GetBatteryRuntimeConsumption()
static float DROWN_ENGINE_DAMAGE
void UpdateLights(int new_gear=-1)
static float DROWN_ENGINE_THRESHOLD
const float BATTERY_UPDATE_DELAY
void ToggleHeadlights()
Switches headlights on/off, including the illumination of the control panel and synchronizes this cha...
float GetBatteryRechargeRate()
bool IsScriptedLightsOn()
Propper way to get if light is swiched on. Use instead of IsLightsOn().
proto native CGame GetGame()