A simple script that aims to add new features to cars.
New flags (names from editIV):
N/A(to the right of SMOOTH_COMPRESN) - front and rear wheel steering.
PROC_REARWHEEL1ST- front wheels in front. Can be used to have a double footprint in front.
New parts:
temp_mesh- temperature arrow.
serpentinebelt_root+serpentinebelt0-19- Pass the engine.
engine_fan- Radiator fan. Synchronized with engine temperature. It turns on if the temperature is more than 203. It turns off if the temperature is below 194 and if it has worked for at least 10 seconds.
speed_mesh- Speedometer needle. Shows wheel speed. It can be from the front, rear and all, depending on the drive of the car.
rpm_mesh- tachometer needle.
engine_mesh- engine. It vibrates. The strength of the vibration will overestimate the engine speed.
supercharger_throttle_mesh- blower throttle.
exhaust_door_mesh- an exhaust cover that will open and close. Highlighted this in The Simpsons.
steer_mesh- steering wheel. It works from the wheel, so it will completely repeat the movements of the swivel wheels.
Also:
Engine RPM logic changed. When the engine is off, the rpm drops to 0 and will rise to 0.1 when starting. Relevant for other mods as well. Also minor changes.
Engine temperature logic. The script is designed to work in the range from 32 to 500 degrees.
Nitro. Gives a short-term increase in engine power and the visual effect of all exhaust. Turns on at X.
Important:
The test model has an example of using a loophole to rotate new parts.
For almost all new parts there is an add. settings.
steer_mesh:rotMax.y - rotation angle multiplier.
exhaust_door_mesh: rotMax.x - max. corner.
supercharger_throttle_mesh: rotMax.x - max. corner.
engine_mesh: rotMax.y - Vibration strength multiplier.
rpm_mesh: rotMax.y — maximum rotation angle.
speed_mesh: rotMax.y - multiplier.
temp_mesh: rotMin.x is the minimum temperature for the arrow, rotMin.y is the maximum temperature for the arrow, rotMin.z is the angle from rotMin.x to rotMin.y.
Notes:
Angles in radians.
Temperature in Fahrenheit.
Only for 1.0.7.0.
Installation:
Move asi from the archive to the game folder.
The script only needs an asi file loader and does not need scripthook, scripthookdonet, etc. because the script works directly with the game's memory.
And the archive has a test model that supports almost all of them in this script.
Changelog:
11.2 - fixed crashes due to incomprehensible objects in Liberty City, to which the script rearranged.