##-----------------------------------------------
## 2017 Ford GT replacement for Ford GT 
## Attributes.bin patch script
##-----------------------------------------------

memfile GLOBAL\GlobalMemoryFile.bin
vpak GLOBAL\ATTRIBUTES.BIN db

##---------------------------------------------------
## Node: pvehicle/default/cars/racers/fordgt
##---------------------------------------------------

## car_type*
patch	dword	bin:0x32480	0x00000004

## mass
patch	float	bin:0x32478	1474

## engineaudio
patch	dword	bin:0x325a8	0xa4b0ace5

## TurboSND[0]
patch	int32	bin:0x324cc	0x0ae4739d

## TurboSND[1]
patch	int32	bin:0x324dc	0x9d10a557

## TENSOR_SCALE; seems to be overall handling speed scale balancing
## the bigger 2nd value is the slower the car will respond to steering input
## countered by increasing of 1st and 3rd value
patch	float	bin:0x32440	1.5
patch	float	bin:0x32444	2
patch	float	bin:0x32448	1.5
patch	float	bin:0x3244c	0

## HANDLING_BARS*; used to set min and max handling bars length; doesn't take effect from base or end grip values but its increase is dependent
## on chassis and tires values
## values range from 37-98 for 1st set and 90-100 for 2nd set
patch	float	bin:0x324b8	83
patch	float	bin:0x324bc	95

##---------------------------------------------------
## Node: ecar/default/racers/fordgt
##---------------------------------------------------

## ride height
patch	float	bin:0x40f1c	0.75

## wheel_position*
## in format x, y, z, w
## x axis; car front = +; car rear = -
## y axis; left side = +; right = -
## z axis; up = +; down = - note: will move WHEELS [up or down] regarding CAR BODY, during race body will be on normal level
## unlike wheels that might be BELOW ground
## w - wheel diameter scaling; default game values range between 0.31 [elise] and 0.35 [mustanggt]
## NOTE: CAR BODY height will be changed to match wheel size
## all axles have point 0 in center of line between front left and rear right wheel or between front right and rear left

##front left
patch	float	bin:0x40e30	1.322
patch	float	bin:0x40e34	0.97
patch	float	bin:0x40e38	0
patch	float	bin:0x40e3c	0.34

##front right
patch	float	bin:0x40e40	1.322
patch	float	bin:0x40e44	-0.97
patch	float	bin:0x40e48	0
patch	float	bin:0x40e4c	0.34

##rear right
patch	float	bin:0x40e50	-1.378
patch	float	bin:0x40e54	-0.998
patch	float	bin:0x40e58	0
patch	float	bin:0x40e5c	0.345

##rear left
patch	float	bin:0x40e60	-1.378
patch	float	bin:0x40e64	0.998
patch	float	bin:0x40e68	0
patch	float	bin:0x40e6c	0.345

## wheel movement with body kits applied

## 0xccc484dc; rear axle
patch	byte	bin:0x40f28	0
patch	byte	bin:0x40f29	0
patch	byte	bin:0x40f2a	0
patch	byte	bin:0x40f2b	0
patch	byte	bin:0x40f2c	0
patch	byte	bin:0x40f2d	0

## 0xfd3077e8; front axle
patch	byte	bin:0x40f36	0
patch	byte	bin:0x40f37	0
patch	byte	bin:0x40f38	0
patch	byte	bin:0x40f39	0
patch	byte	bin:0x40f3a	0
patch	byte	bin:0x40f3b	0

##0x8f952090; tire width
patch	float	bin:0x40efc	0.265
patch	float	bin:0x40f00	0.265
patch	float	bin:0x40f04	0.325
patch	float	bin:0x40f08	0.325

## frontend_reflections*
patch	float	bin:0x40f54	0.18
patch	float	bin:0x40f58	0.18

## BodyDive; maximum vector-based movement of front of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x40ed8	0
patch	float	bin:0x40edc	1
patch	float	bin:0x40ee0	5

## CamberRear; angle between the vertical axis of the wheel and the vertical axis of the vehicle
## positive values for bottom of wheel being further out than top, negative for opposite effect
## common value is 0.18
patch	float	bin:0x40f18	0.15

## CamberFront; angle between the vertical axis of the wheel and the vertical axis of the vehicle
## positive values for bottom of wheel being further out than top, negative for opposite effect
## common value is 0.22
patch	float	bin:0x40f10	0.15

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x40f3c	10

## ReflectionOffset
patch	float	bin:0x40f14	0.1

## BodyRoll; maximum vector-based movement of entire car body towards left or right
## simply put - car body leaning sideways
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x40ec0	1
patch	float	bin:0x40ec4	1
patch	float	bin:0x40ec8	5

## BodySquat; maximum vector-based movement of rear of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x40ecc	0
patch	float	bin:0x40ed0	1
patch	float	bin:0x40ed4	5

##---------------------------------------------------
## Node: brakes/default/fordgt
##---------------------------------------------------

## brakes
patch	float	bin:0x24560	480
patch	float	bin:0x24564	520

## brakes_BHP*
patch	float	bin:0x24568	650

## brake_lock	
patch	float	bin:0x24558	1
patch	float	bin:0x2455c	2

##---------------------------------------------------
## Node: brakes/default/fordgt_1*
##---------------------------------------------------

## brakes
patch	float	bin:0x24754	600
patch	float	bin:0x24758	650

## brakes_BHP*
patch	float	bin:0x2475c	900

## brake_lock	
patch	float	bin:0x2474c	1
patch	float	bin:0x24750	2

##---------------------------------------------------
## Node: chassis/default/fordgt
##---------------------------------------------------

## wheel_base
patch	float	bin:0x9988	2.71

## drag_coefficient
patch	float	bin:0x99a4	0.35

##ride_height
patch	float	bin:0x994c	7
patch	float	bin:0x9950	7

## roll_center
patch	float	bin:0x9984	8

## track_width
patch	float	bin:0x9954	1.694
patch	float	bin:0x9958	1.661

## SHOCK_VALVING; maximum air pressure in the shock absorber air chamber in pounds per square inch
## common value range is 2x15-2x24
patch	float	bin:0x9974	24
patch	float	bin:0x9978	24

## SHOCK_STIFFNESS; minimum pressure inside shock absorber in pounds per square inch
## common value range is 2x30-2x80; acceleration and mass-dependent
patch	float	bin:0x9964	55
patch	float	bin:0x9968	55

## SHOCK_BLOWOUT; maximum length by which a shock can be extended if car wheels don't have contact with road surface; stock same as upgraded
## common value range is 5-8
patch	float	bin:0x998c	6

## SHOCK_EXT_STIFFNESS; maximum pressure inside shock absorber in pounds per square inch
## common value range is 2x40-2x80; acceleration and mass dependent
patch	float	bin:0x995c	65
patch	float	bin:0x9960	65

## SWAYBAR_STIFFNESS; self-explanatory; probably expressed in pounds per square inch
## common value range is 2x200-2x450; acceleration and mass dependent
patch	float	bin:0x997c	225
patch	float	bin:0x9980	250

## TRAVEL; maximum size by which a spring can compress in inches; stock higher than upgraded
## common value range is 2x6-2x8; acceleration and mass dependent
patch	float	bin:0x9944	7
patch	float	bin:0x9948	7

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x996c	500
patch	float	bin:0x9970	500

## AERO_CG; overall distribution of aerodynamic force on the car body; values between 0 and 100; 0 for max in rear, 100 for max in front
## common value range is 47-51
patch	float	bin:0x9990	49

## SPRING_PROGRESSION; maximum compression speed/rate for spring to achieve maximum stiffness; stock smaller than upgraded
## higher values will make springs stiffer faster so car won't shove ground on slopes but will also increase bouncing on curbs
## common value range is 2x5-2x8
patch	float	bin:0x993c	7
patch	float	bin:0x9940	7

## SHOCK_DIGRESSION; digressive shocks provide smoother ride at higher speeds and absorb body roll also improving cornering; smaller value for smoother ride
## common value range is 2x0.1-2x0.5
patch	float	bin:0x9934	0.15
patch	float	bin:0x9938	0.15

## RENDER_MOTION; dependent on ecar node settings in body roll, dive and squat; used as a multiplier of the mentioned values to calculate car body movement
## common value range is 0.50-1.00
patch	float	bin:0x9994	1

## AERO_COEFFICIENT; used to define car aerodynamics factor and overall downforce; value too small will make it slow and too high will push it down to
## ground too hard making it difficult to drive and car will be constantly hitting road due to excessive amount of downforce
## common value range is 0.15-0.30
patch	float	bin:0x999c	0.21

## FRONT_AXLE; front axle diameter in inches
## common value range is 1.2-1.5
patch	float	bin:0x9998	1.32

## FRONT_WEIGHT_BIAS; overall mass distribution; values from 0 to 100; 0 for max rear bias; 100 for max front bias
## common value range is 51-55
patch	float	bin:0x99a0	53.5

##---------------------------------------------------
## Node: chassis/default/fordgt_1*
##---------------------------------------------------

## wheel_base
patch	float	bin:0x9f6c	2.71

## drag_coeff
patch	float	bin:0x9f88	0.33

##ride_height
patch	float	bin:0x9f30	6.5
patch	float	bin:0x9f34	6.5

## roll_center
patch	float	bin:0x9f68	8

## track_width
patch	float	bin:0x9f38	1.694
patch	float	bin:0x9f3c	1.661

## SHOCK_VALVING
patch	float	bin:0x9f58	20
patch	float	bin:0x9f5c	20

## SHOCK_STIFFNESS
patch	float	bin:0x9f48	75
patch	float	bin:0x9f4c	75

## SHOCK_BLOWOUT
patch	float	bin:0x9f70	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0x9f40	85
patch	float	bin:0x9f44	85

## SWAYBAR_STIFFNESS
patch	float	bin:0x9f60	300
patch	float	bin:0x9f64	300

## TRAVEL
patch	float	bin:0x9f28	6
patch	float	bin:0x9f2c	6

## SPRING_STIFFNESS
patch	float	bin:0x9f50	750
patch	float	bin:0x9f54	775

## AERO_CG
patch	float	bin:0x9f74	47.5

## SPRING_PROGRESSION
patch	float	bin:0x9f20	7.5
patch	float	bin:0x9f24	8

## SHOCK_DIGRESSION
patch	float	bin:0x9f18	0.1
patch	float	bin:0x9f1c	0.1

## RENDER_MOTION
patch	float	bin:0x9f78	0.75

## AERO_COEFFICIENT
patch	float	bin:0x9f80	0.25

## FRONT_AXLE
patch	float	bin:0x9f7c	1.32

## FRONT_WEIGHT_BIAS
patch	float	bin:0x9f84	53.75

##---------------------------------------------------
## Node: engine/default/fordgt
##---------------------------------------------------

## engine_braking
patch	float	bin:0x13974	0.7
patch	float	bin:0x13978	0.8
patch	float	bin:0x1397c	0.9

## idle
patch	float	bin:0x1398c	1000

## torque
patch	float	bin:0x13938	171
patch	float	bin:0x1393c	249
patch	float	bin:0x13940	287
patch	float	bin:0x13944	315
patch	float	bin:0x13948	358
patch	float	bin:0x1394c	374
patch	float	bin:0x13950	405
patch	float	bin:0x13954	378
patch	float	bin:0x13958	325

## max_rpm
patch	float	bin:0x13984	8000

## engine_inertia*
patch	float	bin:0x13980	12

## red_line
patch	float	bin:0x13988	7000

##---------------------------------------------------
## Node: engine/default/fordgt/fordgt_1*
##---------------------------------------------------

## engine_braking
patch	float	bin:0x13e54	0.7
patch	float	bin:0x13e58	0.75
patch	float	bin:0x13e5c	0.8

## idle
patch	float	bin:0x13e6c	1000

## torque
patch	float	bin:0x13e18	217
patch	float	bin:0x13e1c	320
patch	float	bin:0x13e20	384
patch	float	bin:0x13e24	422
patch	float	bin:0x13e28	456
patch	float	bin:0x13e2c	487
patch	float	bin:0x13e30	528
patch	float	bin:0x13e34	491
patch	float	bin:0x13e38	439

## max_rpm
patch	float	bin:0x13e64	8000

## engine_inertia*
patch	float	bin:0x13e60	10

## red_line
patch	float	bin:0x13e68	7000

##---------------------------------------------------
## Node: induction/default/fordgt/fordgt_1*
##---------------------------------------------------

## psi
patch	float	bin:0x12094	15

## spool
patch	float	bin:0x1208c	0.15

## AIR_PRESSURE*; commonly 0.25
patch	float	bin:0x12084	0.25

## HIGH_BOOST
patch	float	bin:0x12098	0.14

## LOW_BOOST
patch	float	bin:0x12080	0.16

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x12090	1.8

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x12088	0.1

##---------------------------------------------------
## Node: tires/default/fordgt
##---------------------------------------------------

## section_width
patch	float	bin:0x22e60	325
patch	float	bin:0x22e64	325

## rim_size
patch	float	bin:0x22e50	20
patch	float	bin:0x22e54	20

## aspect_ratio
patch	float	bin:0x22e48	35
patch	float	bin:0x22e4c	30

## steering
patch	float	bin:0x22e68	1.1

## YAW_CONTROL; equivalent of section-based traction and stability control system; values 1 and 2 for front; values 3 and 4 for rear
## effect similar to dynamic mass bias shifting; highly dependent on WEIGHT_BIAS, AERO_CG, TORQUE_SPLIT and DYNAMIC/STATIC_GRIP values
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22e28	0.1
patch	float	bin:0x22e2c	0.2
patch	float	bin:0x22e30	0.65
patch	float	bin:0x22e34	1

## DYNAMIC_GRIP; amount of friction the tires produce when traction is broken, ie when the car is sliding or in a burnout
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22e40	1.8
patch	float	bin:0x22e44	1.9

## YAW_SPEED; self-explanatory; rate at which car enters yaw state
## common value range is 0.30-0.70
patch	float	bin:0x22e6c	0.33

## STATIC_GRIP; static grip is the amount of friction the tires are able to produce when they are not spinning, though they can be rolling
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22e58	2
patch	float	bin:0x22e5c	2.1

## GRIP_SCALE; tire grip scaling per axle
## common value range is 2x1.00-2x1.10
patch	float	bin:0x22e38	1
patch	float	bin:0x22e3c	1.05

##---------------------------------------------------
## Node: tires/default/fordgt/fordgt_1*
##---------------------------------------------------

## section_width
patch	float	bin:0x23270	325
patch	float	bin:0x23274	325

## rim_size
patch	float	bin:0x23260	20
patch	float	bin:0x23264	20

## aspect_ratio
patch	float	bin:0x23258	30
patch	float	bin:0x2325c	35

## steering
patch	float	bin:0x23278	1.05

## YAW_CONTROL
patch	float	bin:0x23238	0.1
patch	float	bin:0x2323c	0.4
patch	float	bin:0x23240	0.8
patch	float	bin:0x23244	1.2

## DYNAMIC_GRIP
patch	float	bin:0x23250	2.1
patch	float	bin:0x23254	2.2

## YAW_SPEED
patch	float	bin:0x2327c	0.33

## STATIC_GRIP
patch	float	bin:0x23268	2.3
patch	float	bin:0x2326c	2.4

## GRIP_SCALE
patch	float	bin:0x23248	1.2
patch	float	bin:0x2324c	1.25

##---------------------------------------------------
## Node: transmission/default/fordgt
##---------------------------------------------------

## 0x7381ee38; drive type
patch	float	bin:0x1e16c	0

## number of gears
patch	int16	bin:0x1e0fe	9

## gear_ratio
patch	float	bin:0x1e104	3
patch	float	bin:0x1e108	0
patch	float	bin:0x1e10c	3.397
patch	float	bin:0x1e110	2.186
patch	float	bin:0x1e114	1.626
patch	float	bin:0x1e118	1.285
patch	float	bin:0x1e11c	1.029
patch	float	bin:0x1e120	0.839
patch	float	bin:0x1e124	0.664

## final_gear
patch	float	bin:0x1e17c	4.1

## DIFFERENTIAL; self-explanatory; differential bias; 0.00 for rear, 0.50 for mid and 1.00 for front
## setting towards front will lock the front wheels more, causing the car to be prone to oversteer; inverse effect if bias set towards rear
## common value range is 2x0.60-2x0.80; 3x0.60-3x0.80 if car is AWD
patch	float	bin:0x1e130	0.8
patch	float	bin:0x1e134	0.8
patch	float	bin:0x1e138	0

## GEAR_EFFICIENCY; overall power multiplier on current gear and rpm used to quickly change speed at each gear without any major reconfigurations
## common value set is 9x1.00
patch	float	bin:0x1e144	0.9
patch	float	bin:0x1e148	1
patch	float	bin:0x1e14c	0.985
patch	float	bin:0x1e150	0.976
patch	float	bin:0x1e154	0.974
patch	float	bin:0x1e158	0.97
patch	float	bin:0x1e15c	0.98
patch	float	bin:0x1e160	1.02
patch	float	bin:0x1e164	1.05

## TORQUE_CONVERTER; percentage ratio of torque converter efficiency with automatic transmission usage
## common value range is 0.20-0.80
patch	float	bin:0x1e168	0.4

## CLUTCH_SLIP; self-explanatory; manual gearbox efficiency ratio
## common value range is 0.70-0.90
patch	float	bin:0x1e170	0.65

## SHIFT_SPEED; shifting interval; stock [should be] higher than upgraded
## common value range is 0.10-0.25
patch	float	bin:0x1e178	0.15

##---------------------------------------------------
## Node: transmission/default/fordgt_1
##---------------------------------------------------

## 0x7381ee38; drive type
patch	float	bin:0x1fd44	0

## number of gears
patch	int16	bin:0x1fcd6	9

## gear_ratio
patch	float	bin:0x1fcdc	2.8
patch	float	bin:0x1fce0	0
patch	float	bin:0x1fce4	3.08
patch	float	bin:0x1fce8	2.19
patch	float	bin:0x1fcec	1.63
patch	float	bin:0x1fcf0	1.29
patch	float	bin:0x1fcf4	1
patch	float	bin:0x1fcf8	0.84
patch	float	bin:0x1fcfc	0.69

## final_gear
patch	float	bin:0x1fd54	3.4

## DIFFERENTIAL
patch	float	bin:0x1fd08	0.85
patch	float	bin:0x1fd0c	0.85
patch	float	bin:0x1fd10	0

## GEAR_EFFICIENCY
patch	float	bin:0x1fd1c	0.9
patch	float	bin:0x1fd20	1
patch	float	bin:0x1fd24	1
patch	float	bin:0x1fd28	1
patch	float	bin:0x1fd2c	1
patch	float	bin:0x1fd30	1
patch	float	bin:0x1fd34	1
patch	float	bin:0x1fd38	1
patch	float	bin:0x1fd3c	1

## TORQUE_CONVERTER
patch	float	bin:0x1fd40	0.5

## CLUTCH_SLIP
patch	float	bin:0x1fd48	0.75

## SHIFT_SPEED
patch	float	bin:0x1fd50	0.1