Custom Engine Types - RedDeadlyCreeper/ArmoredCombatExtended GitHub Wiki
Requirements:
- You have read and understood Your First Custom Engines
ACE supports having more than just the stock 6 engine types. With a custom engine type, you can modify the following properties:
- Efficiency (fuel used per unit of power created)
- Torque Scale (how quickly torque drops with damage taken)
- HP multiplier
- Generic torque curves, applied to all engines of that type
Defining your engine type
There isn't much required to create a custom engine type - all that's needed is 4 definitions at the top of your custom engine file. Here is an example of what's needed to create a custom engine type called CustomV8
, and an engine using said type.
ACF.Efficiency.CustomV8 = 0.3
ACF.TorqueScale.CustomV8 = 0.2
ACF.EngineHPMult.CustomV8 = 0.5
ACF.GenericTorqueCurves.CustomV8 = {0.3, 0.55, 0.7, 0.85, 1, 0.9, 0.7}
ACF_DefineEngine( "6.9-V8", {
name = "6.9L Nice V8 Petrol",
desc = "A very NICE looking V8",
model = "models/engines/v8m.mdl",
sound = "acf_engines/b6_petrolsmall.wav",
category = "V8",
fuel = "Petrol",
requiresfuel = false,
enginetype = "CustomV8",
weight = 100,
torque = 200,
flywheelmass = 0.1,
idlerpm = 750,
limitrpm = 6969
} )