##---------------------------------------------------
## 1992 Toyota Supra
## Replacement for Toyota Supra
## Attributes.bin patch script
##---------------------------------------------------

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


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

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

## brakes_upgrades
patch	int32	bin:0x30f84	4

## induction_upgrades
patch	int32	bin:0x30f94	3

## tires_upgrades
patch	int32	bin:0x30fc8	3

## engine_upgrades
patch	int32	bin:0x30f78	4

## transmission_upgrades
patch	int32	bin:0x30f7c	4

## nos_upgrades
patch	int32	bin:0x30f80	3

## chassis_upgrades
patch	int32	bin:0x30f98	3


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

## 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:0x3ea30	1.369
patch	float	bin:0x3ea34	0.845
patch	float	bin:0x3ea38	0
patch	float	bin:0x3ea3c	0.33

## front right
patch	float	bin:0x3ea40	1.369
patch	float	bin:0x3ea44	-0.845
patch	float	bin:0x3ea48	0
patch	float	bin:0x3ea4c	0.33

## rear right
patch	float	bin:0x3ea50	-1.216
patch	float	bin:0x3ea54	-0.845
patch	float	bin:0x3ea58	0
patch	float	bin:0x3ea5c	0.33

## rear left
patch	float	bin:0x3ea60	-1.216
patch	float	bin:0x3ea64	0.845
patch	float	bin:0x3ea68	0
patch	float	bin:0x3ea6c	0.33

## 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:0x3eb28	0
patch	int8	bin:0x3eb29	0
patch	int8	bin:0x3eb2a	0
patch	int8	bin:0x3eb2b	0
patch	int8	bin:0x3eb2c	0
patch	int8	bin:0x3eb2d	30

## 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:0x3eb36	0
patch	int8	bin:0x3eb37	0
patch	int8	bin:0x3eb38	0
patch	int8	bin:0x3eb39	0
patch	int8	bin:0x3eb3a	0
patch	int8	bin:0x3eb3b	30

##---------------------------------------------------
## Node: engine/default/supra
##---------------------------------------------------

## 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:0x13314	0.7
patch	float	bin:0x13318	0.8
patch	float	bin:0x1331c	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:0x1332c	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:0x132d8	80
patch	float	bin:0x132dc	129
patch	float	bin:0x132e0	162
patch	float	bin:0x132e4	190
patch	float	bin:0x132e8	240
patch	float	bin:0x132ec	201
patch	float	bin:0x132f0	190
patch	float	bin:0x132f4	180
patch	float	bin:0x132f8	175

## 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:0x13324	7800

## 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:0x13320	10

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


##---------------------------------------------------
## Node: engine/default/supra/supra_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x13c14	0.7
patch	float	bin:0x13c18	0.8
patch	float	bin:0x13c1c	0.89

## IDLE
patch	float	bin:0x13c2c	800

## TORQUE
patch	float	bin:0x13bd8	211
patch	float	bin:0x13bdc	267
patch	float	bin:0x13be0	344
patch	float	bin:0x13be4	485
patch	float	bin:0x13be8	570
patch	float	bin:0x13bec	519
patch	float	bin:0x13bf0	455
patch	float	bin:0x13bf4	396
patch	float	bin:0x13bf8	360

## MAX_RPM
patch	float	bin:0x13c24	7800

## FLYWHEEL_MASS
patch	float	bin:0x13c20	8

## RED_LINE
patch	float	bin:0x13c28	6800


##---------------------------------------------------
## Node: induction/default/supra
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11f48	0.1

## LOW_BOOST
patch	float	bin:0x11f30	0.1

## INDUCTION_MULTIPLIER*; always higher value for stock
patch	float	bin:0x11f40	2.2

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

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

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


##---------------------------------------------------
## Node: induction/default/supra/supra_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x12140	0.2

## LOW_BOOST
patch	float	bin:0x12128	0.2

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

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

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

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

##---------------------------------------------------
## Node: transmission/default/supra
##---------------------------------------------------

## 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:0x1dd62	7

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1dd68	3
patch	float	bin:0x1dd6c	0
patch	float	bin:0x1dd70	3.67
patch	float	bin:0x1dd74	2.36
patch	float	bin:0x1dd78	1.69
patch	float	bin:0x1dd7c	1.31
patch	float	bin:0x1dd80	0.78
patch	float	bin:0x1dd84	0
patch	float	bin:0x1dd88	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:0x1dd94	0.7
patch	float	bin:0x1dd98	0.7
patch	float	bin:0x1dd9c	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:0x1dda8	1
patch	float	bin:0x1ddac	1
patch	float	bin:0x1ddb0	1
patch	float	bin:0x1ddb4	1
patch	float	bin:0x1ddb8	1
patch	float	bin:0x1ddbc	1
patch	float	bin:0x1ddc0	1
patch	float	bin:0x1ddc4	1
patch	float	bin:0x1ddc8	1

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

## 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:0x1ddd0	0

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

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

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


##---------------------------------------------------
## Node: transmission/default/supra/supra_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x1fde4	2.5
patch	float	bin:0x1fde8	0
patch	float	bin:0x1fdec	3.6
patch	float	bin:0x1fdf0	2.36
patch	float	bin:0x1fdf4	1.69
patch	float	bin:0x1fdf8	1.31
patch	float	bin:0x1fdfc	0.95
patch	float	bin:0x1fe00	0.72
patch	float	bin:0x1fe04	0

## DIFFERENTIAL
patch	float	bin:0x1fe10	0.65
patch	float	bin:0x1fe14	0.65
patch	float	bin:0x1fe18	0

## GEAR_EFFICIENCY
patch	float	bin:0x1fe24	1
patch	float	bin:0x1fe28	1
patch	float	bin:0x1fe2c	1
patch	float	bin:0x1fe30	1
patch	float	bin:0x1fe34	1
patch	float	bin:0x1fe38	1
patch	float	bin:0x1fe3c	1
patch	float	bin:0x1fe40	1
patch	float	bin:0x1fe44	1

## TORQUE_CONVERTER
patch	float	bin:0x1fe48	0.4

## TORQUE_SPLIT
patch	float	bin:0x1fe4c	0

## CLUTCH_SLIP
patch	float	bin:0x1fe50	0.8

## SHIFT_SPEED
patch	float	bin:0x1fe58	0.25

## FINAL_GEAR
patch	float	bin:0x1fe5c	2.275
