14.05.2014, 01:33
And detect if the vehicle engine is on
Checking them all the times, and reducing the VehicleInfo[carID][vBatteryLife] each 1 minutes
• Vehicle health is more then 650
Battery Life - No loss.
• Vehicle health from 550 to 649
Engine Life - (vehicle_health_loss/125.0) = deduction from engine life.
Battery Life - (vehicle_health_loss/150.0) = deduction from battery life.
• Vehicle health from 390 to 549(Grey Smoke)
Engine Life - (vehicle_health_loss/100.0) = deduction from engine life.
Battery Life - (vehicle_health_loss/125.0) = deduction from battery life.
• Vehicle health from 250 to 389 (Black smoke)
*Vehicle engine turns off around 325-389 range*
Engine Life - (vehicle_health_loss/75.0) = deduction from engine life.
Battery Life - (vehicle_health_loss/100.0) = deduction from battery life.
On Vehicle Death
Engine Life - (-10)+random( 5 ) deducted.
Battery Life - (-10) deducted.
* vehicle_health_loss = 1000.0 - Vehicle Health. ((Example: 1000.0 - 400.0 = 600.0))
When your vehicle is damaged, under 650 health it will start making problems with the engine
Checking them all the times, and reducing the VehicleInfo[carID][vBatteryLife] each 1 minutes
• Vehicle health is more then 650
Battery Life - No loss.
• Vehicle health from 550 to 649
Engine Life - (vehicle_health_loss/125.0) = deduction from engine life.
Battery Life - (vehicle_health_loss/150.0) = deduction from battery life.
• Vehicle health from 390 to 549(Grey Smoke)
Engine Life - (vehicle_health_loss/100.0) = deduction from engine life.
Battery Life - (vehicle_health_loss/125.0) = deduction from battery life.
• Vehicle health from 250 to 389 (Black smoke)
*Vehicle engine turns off around 325-389 range*
Engine Life - (vehicle_health_loss/75.0) = deduction from engine life.
Battery Life - (vehicle_health_loss/100.0) = deduction from battery life.
On Vehicle Death
Engine Life - (-10)+random( 5 ) deducted.
Battery Life - (-10) deducted.
* vehicle_health_loss = 1000.0 - Vehicle Health. ((Example: 1000.0 - 400.0 = 600.0))
When your vehicle is damaged, under 650 health it will start making problems with the engine