ACF-Gmod / ACF

Combat damage system for Garry's Mod
22 stars 16 forks source link

Engine force starts too strong. #11

Open lazermaniac opened 11 years ago

lazermaniac commented 11 years ago

After duping a vehicle and activating its engine, the sound pitch is initially extremely high. When the engine is throttled up and the gear is switched from neutral, the engine applies an excessive force to the wheels, causing a jump. This is accompanied by the following error in console:

[ERROR] addons/acf/lua/entities/acf_gearbox/init.lua:394: attempt to perform arithmetic on a nil value

  1. Act - addons/acf/lua/entities/acf_gearbox/init.lua:394
    1. CalcRPM - addons/acf/lua/entities/acf_engine/init.lua:294
    2. unknown - addons/acf/lua/entities/acf_engine/init.lua:186