##---------------------------------------------------
## 1996 HSV GTS-R
## Replacement for Cadillac CTS
## Attributes.bin patch script
##---------------------------------------------------

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


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

## TurboSND[0]
## Just like Ford Racing Puma, HSV GTS-R uses Naturally Aspirated engine
patch	int32	bin:0x313bc	0xeec2271a

## TurboSND[1]
## Uses Tuner Medium turbo sounds due to the fact that in Forza you can put Turbochargers on your Holden!
patch	int32	bin:0x313cc	0x9d10a557

## TurboSND[2]
patch	int32	bin:0x313dc	0xaa6ba0b0

## TurboSND[3]
patch	int32	bin:0x313ec	0x3f333115

## VerbalType; copspeech related; code determines what cops will call your car
## PATCH LENGTH ADDRESS, NOT DATA
patch	int32	bin:0x31390	0x10000000

## MASS; self-explanatory; mass of car expressed in kilograms
patch	float	bin:0x31388	1629

## engineaudio[0]
patch	int32	bin:0x31534	0xf6a7f776

## engineaudio[1]
patch	int32	bin:0x31540	0xf6a7f776

## engineaudio[2]
patch	int32	bin:0x3154c	0xbb11a713

## 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:0x31350	1.05
patch	float	bin:0x31354	2.1
patch	float	bin:0x31358	1.05
patch	float	bin:0x3135c	0

## HandlingRating; 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:0x313a8	51
patch	float	bin:0x313ac	100

## brakes_upgrades
patch	int32	bin:0x31384	4

## induction_upgrades
patch	int32	bin:0x31394	3

## tires_upgrades
patch	int32	bin:0x3138c	3

## engine_upgrades
patch	int32	bin:0x31378	4

## transmission_upgrades
patch	int32	bin:0x3137c	4

## nos_upgrades
patch	int32	bin:0x31380	3

## chassis_upgrades
patch	int32	bin:0x31398	3


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

## RideHeight; in-race only; visible body height
patch	float	bin:0x3eedc	2

## TireOffsets
## 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:0x3edf0	1.363
patch	float	bin:0x3edf4	0.849
patch	float	bin:0x3edf8	0
patch	float	bin:0x3edfc	0.33

## front right
patch	float	bin:0x3ee00	1.363
patch	float	bin:0x3ee04	-0.849
patch	float	bin:0x3ee08	0
patch	float	bin:0x3ee0c	0.33

## rear right
patch	float	bin:0x3ee10	-1.365
patch	float	bin:0x3ee14	-0.870
patch	float	bin:0x3ee18	0
patch	float	bin:0x3ee1c	0.33

## rear left
patch	float	bin:0x3ee20	-1.365
patch	float	bin:0x3ee24	0.870
patch	float	bin:0x3ee28	0
patch	float	bin:0x3ee2c	0.33

## FECompressions; used to adjust height of car body regarding wheels in frontend menus
## common value range is 2x0.10-2x0.20
patch	float	bin:0x3ef08	0.17
patch	float	bin:0x3ef0c	0.17

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3eebc	0.225
patch	float	bin:0x3eec0	0.225
patch	float	bin:0x3eec4	0.225
patch	float	bin:0x3eec8	0.225

## ReflectionOffset
patch	float	bin:0x3eed4	0

## KitWheelOffsetRear; used to move wheels along axis Y when bodykits are used
## values range from 0 to 128; applies to REAR axle
patch	int8	bin:0x3eee8	0
patch	int8	bin:0x3eee9	0
patch	int8	bin:0x3eeea	45
patch	int8	bin:0x3eeeb	45
patch	int8	bin:0x3eeec	45
patch	int8	bin:0x3eeed	45

## KitWheelOffsetFront; used to move wheels along axis Y when bodykits are used
## values range from 0 to 128; applies to FRONT axle
patch	int8	bin:0x3eef6	0
patch	int8	bin:0x3eef7	0
patch	int8	bin:0x3eef8	70
patch	int8	bin:0x3eef9	70
patch	int8	bin:0x3eefa	70
patch	int8	bin:0x3eefb	70


##---------------------------------------------------
## Node: brakes/default/cts
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x24510	400
patch	float	bin:0x24514	553

## EBRAKE; handbrake power; should be larger than BRAKES value by at least 10% and larger than overall car horsepower
## common value range is 400-800; mass dependent
patch	float	bin:0x24518	585

## BRAKE_LOCK; BRAKES field values multiplier and braking force distribution ratio
## common value range is 1.00 for front axle and 3.20-3.60 for rear axle
patch	float	bin:0x24508	1
patch	float	bin:0x2450c	3.3


##---------------------------------------------------
## Node: brakes/default/cts/cts_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x2472c	500
patch	float	bin:0x24730	651

## EBRAKE
patch	float	bin:0x24734	900

## BRAKE_LOCK
patch	float	bin:0x24724	1
patch	float	bin:0x24728	3.3

##---------------------------------------------------
## Node: engine/default/cts
##---------------------------------------------------

## ENGINE_BRAKING; multiplies maximum torque at current gear and uses it to calculate speed loss with no throttle used
## common value range is 0.70-0.90
patch	float	bin:0x13374	0.7
patch	float	bin:0x13378	0.8
patch	float	bin:0x1337c	0.9

## IDLE; minimum operating speed of engine necessary to sustain its work but not enough to move drivetrain components
## common value range is 800-950
patch	float	bin:0x1338c	800

## TORQUE; self-explanatory; field count suggest game used to support up to 15 torque values; can only use 9 now
## common value range N/A since it differs per car
patch	float	bin:0x13338	110
patch	float	bin:0x1333c	154
patch	float	bin:0x13340	222
patch	float	bin:0x13344	295
patch	float	bin:0x13348	277
patch	float	bin:0x1334c	256
patch	float	bin:0x13350	227
patch	float	bin:0x13354	209
patch	float	bin:0x13358	198

## MAX_RPM; maximum operating speed of engine before its destruction [drag racing only]
## common value range N/A since it differs per car
patch	float	bin:0x13384	7000

## FLYWHEEL_MASS; the higher the mass, the higher the maximum inertia moment and therefore larger amounts of kinetic energy can be stored
## also the lower the mass, the faster the top speed can be achieved and maintained
## common value range is 9-15
patch	float	bin:0x13380	13

## RED_LINE; maximum safe operating speed of engine
## common value range N/A since it differs per car
patch	float	bin:0x13388	6000


##---------------------------------------------------
## Node: engine/default/cts/cts_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x13df4	0.7
patch	float	bin:0x13df8	0.8
patch	float	bin:0x13dfc	0.899

## IDLE
patch	float	bin:0x13e0c	800

## TORQUE
patch	float	bin:0x13db8	170
patch	float	bin:0x13dbc	360
patch	float	bin:0x13dc0	578
patch	float	bin:0x13dc4	617
patch	float	bin:0x13dc8	575
patch	float	bin:0x13dcc	539
patch	float	bin:0x13dd0	495
patch	float	bin:0x13dd4	451
patch	float	bin:0x13dd8	407

## MAX_RPM
patch	float	bin:0x13e04	7000

## FLYWHEEL_MASS
patch	float	bin:0x13e00	10

## RED_LINE
patch	float	bin:0x13e08	6000


##---------------------------------------------------
## Node: induction/default/cts_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11fb8	0.1

## LOW_BOOST
patch	float	bin:0x11fa0	0.1

## PSI_ARROW_MOVE_SPEED; always higher value for stock
patch	float	bin:0x11fb0	2.1

## PSI; maximum pressure of air taken into the turbine
## common value range is 12-15
patch	float	bin:0x11fb4	13

## SPOOL; turbine lag; 0 for 'supercharger'; anything higher will give 'turbo' upgrade
## common value range is 0.00-0.20
patch	float	bin:0x11fac	0.1

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x11fa8	-0.01


##---------------------------------------------------
## Node: induction/default/cts_base/cts_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x122e4	0.21

## LOW_BOOST
patch	float	bin:0x122cc	0.215

## INDUCTION_MULTIPLIER*; always higher value for stock
patch	float	bin:0x122dc	2

## PSI; maximum pressure of air taken into the turbine
## common value range is 12-15
patch	float	bin:0x122e0	15

## SPOOL; turbine lag; 0 for 'supercharger'; anything higher will give 'turbo' upgrade
## common value range is 0.00-0.20
patch	float	bin:0x122d8	0.1

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x122d4	-0.005

##---------------------------------------------------
## Node: transmission/default/cts
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6; total amount of gears including reverse, neutral and forward gears
## maximum number of elements is 11 but only 10 are proven to cause no problems with car drivability
## common value range is 7-9
patch	int16	bin:0x1f38e	8

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1f394	2.9
patch	float	bin:0x1f398	0
patch	float	bin:0x1f39c	2.66
patch	float	bin:0x1f3a0	1.78
patch	float	bin:0x1f3a4	1.3
patch	float	bin:0x1f3a8	1
patch	float	bin:0x1f3ac	0.74
patch	float	bin:0x1f3b0	0.5
patch	float	bin:0x1f3b4	0

## 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:0x1f3c0	0.7
patch	float	bin:0x1f3c4	0.7
patch	float	bin:0x1f3c8	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:0x1f3d4	1
patch	float	bin:0x1f3d8	1
patch	float	bin:0x1f3dc	1
patch	float	bin:0x1f3e0	1
patch	float	bin:0x1f3e4	1
patch	float	bin:0x1f3e8	1
patch	float	bin:0x1f3ec	1
patch	float	bin:0x1f3f0	1
patch	float	bin:0x1f3f4	1

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

## TORQUE_SPLIT; torque-to-axle transfer ratio; 0 for RWD, 0.5 for AWD and 1 for FWD
## common value range N/A since it differs per car
patch	float	bin:0x1f3fc	0

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

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

## FINAL_GEAR; final gear ratio determining top speed
## common value range N/A since it differs per car
patch	float	bin:0x1f40c	3.45


##---------------------------------------------------
## Node: transmission/default/cts/cts_top
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6
patch	int16	bin:0x1fbce	8

## GEAR_RATIO
patch	float	bin:0x1fbd4	2.7
patch	float	bin:0x1fbd8	0
patch	float	bin:0x1fbdc	2.66
patch	float	bin:0x1fbe0	1.78
patch	float	bin:0x1fbe4	1.3
patch	float	bin:0x1fbe8	1
patch	float	bin:0x1fbec	0.74
patch	float	bin:0x1fbf0	0.5
patch	float	bin:0x1fbf4	0

## DIFFERENTIAL
patch	float	bin:0x1fc00	0.7
patch	float	bin:0x1fc04	0.7
patch	float	bin:0x1fc08	0

## GEAR_EFFICIENCY
patch	float	bin:0x1fc14	1
patch	float	bin:0x1fc18	1
patch	float	bin:0x1fc1c	1
patch	float	bin:0x1fc20	1
patch	float	bin:0x1fc24	1
patch	float	bin:0x1fc28	1
patch	float	bin:0x1fc2c	1
patch	float	bin:0x1fc30	1

## TORQUE_CONVERTER
patch	float	bin:0x1fc38	0.4

## TORQUE_SPLIT
patch	float	bin:0x1fc3c	0

## CLUTCH_SLIP
patch	float	bin:0x1fc40	0.8

## SHIFT_SPEED
patch	float	bin:0x1fc48	0.25

## FINAL_GEAR
patch	float	bin:0x1fc4c	3.1
