// InversePower by ikt
1.1.2

InversePower tries to counteract the fact that GTA V cuts off power when your 
car starts gliding. This allows for a more realistic and less annoying driving 
experience. Drifting and slides are easier to maintain and adjust.

This mod is inspired by Drift Assist by InfamousSabre and works similarly. The
big difference is that speed is used as a negative feedback to make cars not
accelerate too much and swerve out of control at higher speeds.

// Requirements
GTA V
Alexander Blade's C++ Scripthook

// Recommended
This mod was made using Killatomatoes Realistic Driving.

// Installation
Extract InversePower.asi and InversePower.ini to your GTA V game folder.

// Configuration
This plugin won't work if engine power or torque are modified other scripts.

The ini file will look like this. These are the default values and should be 
good for usage with Killatomate's Realistic Driving mod.

Don't change the section names (between the [ ] brackets).

[CONFIG]
Power = 100
Torque = 80
Angle = 350
Speed = 200
Slope = 35
Deadzone = 0

[DEBUG]
Debug = 0
DisableP = 0
DisableT = 0

Power, Torque - How much these are affected by the mod in percentage.
Power gives the engine more potential. Torque is effective for making the
wheels spin more. If a handling.meta is used with high grip, lower Torque.

Angle, Speed - How much these affect Power and Torque. No units.
Angle - The higher this value, the higher the adjustment will be when the car 
is sliding at a big angle.
Speed - The higher this value, the higher the adjustment will be when the car 
is sliding at a low speed.

Slope - In meters/second. At this speed or more, any adjustment by speed will 
be 0. This means that at low speeds, the adjustments will have more effect. 
Increasing this allows for more adjustment at higher speeds. Increase this if 
you like big power slides. Default 35m/s = 126km/h = ±78mph.

Deadzone - Deadzone in degrees.

Debug - 0 or 1. Enable or disable a debug window with data from mod.
DisableP, DisableT - 0 or 1. Put 1 for disable power or torque being affected.

All options can be changed on the fly, so you won't need to restart the game
to try out different settings. Please do exit and enter the vehicle again to
read the new settings.

Have fun!
- ikt

// Changelog
1.0
Initial version

1.1
Allow for angles >> 90 to get a power boost
Clean up debug window
Changed default values for less erratic behavior

1.1.1
Added deadzone
Better compatibility: Dropped Microsoft Visual C++ Redistributable 2015 (x64) requirement 

1.1.2
Compatibility fix for Manual Transmission (don't change power/torque when in a too low gear)
Actually add deadzone
Add possibility to disable power and/or torque adjustment

1.1.3
Remove cross-script functionality for CitizenFX support (removed Manual Transmission communication)
