##---------------------------------------------------
## 1998 TRD Toyota Supra
## Replacement for Mitsubishi Eclipse GT
## Attributes.bin patch script
##---------------------------------------------------

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

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

## TurboSND[0]
patch	int32	bin:0x2f03c	0x9d10a557

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

## TurboSND[2]
patch	int32	bin:0x2f05c	0x8491a9c9

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

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

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

## engineaudio[0]
patch	int32	bin:0x2f174	0x35765cd

## engineaudio[1]
patch	int32	bin:0x2f180	0x35765cd

## engineaudio[2]
patch	int32	bin:0x2f18c	0xb364c829

## 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:0x2efb0	1
patch	float	bin:0x2efb4	1.925
patch	float	bin:0x2efb8	1
patch	float	bin:0x2efbc	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:0x2f028	60
patch	float	bin:0x2f02c	96

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

## BodyDive; maximum vector-based movement of front of car body
patch	float	bin:0x3f398	1
patch	float	bin:0x3f39c	0.5
patch	float	bin:0x3f3a0	6

## RideHeight; in-race only; visible body height
patch	float	bin:0x3f3dc	1

## 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:0x3f2f0	1.32
patch	float	bin:0x3f2f4	0.962
patch	float	bin:0x3f2f8	0
patch	float	bin:0x3f2fc	0.33

## front right
patch	float	bin:0x3f300	1.32
patch	float	bin:0x3f304	-0.962
patch	float	bin:0x3f308	0
patch	float	bin:0x3f30c	0.33

## rear right
patch	float	bin:0x3f310	-1.325
patch	float	bin:0x3f314	-0.97
patch	float	bin:0x3f318	0
patch	float	bin:0x3f31c	0.34

## rear left
patch	float	bin:0x3f320	-1.325
patch	float	bin:0x3f324	0.97
patch	float	bin:0x3f328	0
patch	float	bin:0x3f32c	0.34

## BodySquat; maximum vector-based movement of rear of car body
patch	float	bin:0x3f38c	1
patch	float	bin:0x3f390	0.5
patch	float	bin:0x3f394	7

## 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:0x3f3d8	0.2

## 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:0x3f3d0	0.2

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

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3f3bc	0.245
patch	float	bin:0x3f3c0	0.245
patch	float	bin:0x3f3c4	0.305
patch	float	bin:0x3f3c8	0.305

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

## 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:0x3f3e8	0
patch	int8	bin:0x3f3e9	80
patch	int8	bin:0x3f3ea	80
patch	int8	bin:0x3f3eb	0
patch	int8	bin:0x3f3ec	80
patch	int8	bin:0x3f3ed	80

## BodyRoll; maximum vector-based movement of entire car body towards left or right
## simply put - car body leaning sideways
patch	float	bin:0x3f380	1
patch	float	bin:0x3f384	1
patch	float	bin:0x3f388	6

## 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:0x3f3f6	0
patch	int8	bin:0x3f3f7	70
patch	int8	bin:0x3f3f8	70
patch	int8	bin:0x3f3f9	0
patch	int8	bin:0x3f3fa	70
patch	int8	bin:0x3f3fb	70

##---------------------------------------------------
## Node: brakes/default/eclipsegt
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x244d4	390
patch	float	bin:0x244d8	455

## 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:0x244dc	650

## 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:0x244cc	1
patch	float	bin:0x244d0	3

##---------------------------------------------------
## Node: brakes/default/eclipsegt/eclipsegt_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x24600	500
patch	float	bin:0x24604	575

## EBRAKE
patch	float	bin:0x24608	900

## BRAKE_LOCK
patch	float	bin:0x245f8	1
patch	float	bin:0x245fc	3

##---------------------------------------------------
## Node: chassis/default/eclipsegt
##---------------------------------------------------

## WHEEL_BASE; distance between the centers of the front and rear wheels
## common value range N/A since it differs per car
patch	float	bin:0x9744	2.629

## DRAG_COEFFICIENT; air resistance of object travelling in a non-vacuum environment such as air
## common value range is 0.25-0.42
patch	float	bin:0x9760	0.37

## 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:0x9730	19
patch	float	bin:0x9734	19

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x9708	7.5
patch	float	bin:0x970c	7.5

## 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:0x9720	50
patch	float	bin:0x9724	60

## 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:0x9748	8

## 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:0x9718	70
patch	float	bin:0x971c	70

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

## ROLL_CENTER; vertical center of gravity [probably in inches]
## common value range is 8-10
patch	float	bin:0x9740	8

## 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:0x9700	6
patch	float	bin:0x9704	6

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x9728	450
patch	float	bin:0x972c	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:0x974c	47

## SPRING_PROGRESSION; maximum compression speed/rate for spring to achieve maximum stiffness; stock smaller than upgraded
## common value range is 2x5-2x8
patch	float	bin:0x96f8	7
patch	float	bin:0x96fc	7

## TRACK_WIDTH; axle length; distance between wheels on a single axle; measured in metres
## common value range N/A since it differs per car
patch	float	bin:0x9710	1.656
patch	float	bin:0x9714	1.617

## 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:0x96f0	0.3
patch	float	bin:0x96f4	0.3

## 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:0x9750	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:0x9758	0.23

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

## 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:0x975c	53

##---------------------------------------------------
## Node: chassis/default/eclipsegt/eclipsegt_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0xa13c	2.629

## DRAG_COEFFICIENT
patch	float	bin:0xa158	0.34

## SHOCK_VALVING
patch	float	bin:0xa128	24
patch	float	bin:0xa12c	24

## RIDE_HEIGHT
patch	float	bin:0xa100	7
patch	float	bin:0xa104	7

## SHOCK_STIFFNESS
patch	float	bin:0xa118	70
patch	float	bin:0xa11c	70

## SHOCK_BLOWOUT
patch	float	bin:0xa140	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xa110	90
patch	float	bin:0xa114	90

## SWAYBAR_STIFFNESS
patch	float	bin:0xa130	450
patch	float	bin:0xa134	450

## ROLL_CENTER
patch	float	bin:0xa138	8

## TRAVEL
patch	float	bin:0xa0f8	6
patch	float	bin:0xa0fc	6

## SPRING_STIFFNESS
patch	float	bin:0xa120	700
patch	float	bin:0xa124	700

## AERO_CG
patch	float	bin:0xa144	49

## SPRING_PROGRESSION
patch	float	bin:0xa0f0	7.5
patch	float	bin:0xa0f4	8

## TRACK_WIDTH
patch	float	bin:0xa108	1.656
patch	float	bin:0xa10c	1.617

## SHOCK_DIGRESSION
patch	float	bin:0xa0e8	0.15
patch	float	bin:0xa0ec	0.15

## RENDER_MOTION
patch	float	bin:0xa148	0.5

## AERO_COEFFICIENT
patch	float	bin:0xa150	0.28

## FRONT_AXLE
patch	float	bin:0xa14c	1.41

## FRONT_WEIGHT_BIAS
patch	float	bin:0xa154	54

##---------------------------------------------------
## Node: engine/default/eclipsegt
##---------------------------------------------------

## 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:0x138b4	0.7
patch	float	bin:0x138b8	0.8
patch	float	bin:0x138bc	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:0x138cc	900

## TORQUE; self-explanatory; up to 15 torque values can be used but element count needs to be declared first
## common value range N/A since it differs per car
patch	float	bin:0x13878	164
patch	float	bin:0x1387c	299
patch	float	bin:0x13880	406
patch	float	bin:0x13884	406
patch	float	bin:0x13888	406
patch	float	bin:0x1388c	406
patch	float	bin:0x13890	406
patch	float	bin:0x13894	369
patch	float	bin:0x13898	331

## 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:0x138c4	8500

## 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:0x138c0	12

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

##---------------------------------------------------
## Node: engine/default/eclipsegt/eclipsegt_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x13a94	0.7
patch	float	bin:0x13a98	0.8
patch	float	bin:0x13a9c	0.9

## IDLE
patch	float	bin:0x13aac	900

## TORQUE
patch	float	bin:0x13a58	170
patch	float	bin:0x13a5c	355
patch	float	bin:0x13a60	470
patch	float	bin:0x13a64	557
patch	float	bin:0x13a68	602
patch	float	bin:0x13a6c	576
patch	float	bin:0x13a70	557
patch	float	bin:0x13a74	520
patch	float	bin:0x13a78	501

## MAX_RPM
patch	float	bin:0x13aa4	8500

## FLYWHEEL_MASS
patch	float	bin:0x13aa0	10

## RED_LINE
patch	float	bin:0x13aa8	7500

##---------------------------------------------------
## Node: induction/default/eclipsegt_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11f2c	0.1

## LOW_BOOST
patch	float	bin:0x11f14	0.1

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11f24	2

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

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

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

##---------------------------------------------------
## Node: induction/default/eclipsegt_base/eclipsegt_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x12258	0.25

## LOW_BOOST
patch	float	bin:0x12240	0.2

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x12250	1.75

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

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

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

##---------------------------------------------------
## Node: tires/default/eclipsegt
##---------------------------------------------------

## SECTION_WIDTH; self-explanatory; measured in milimetres
## common value range N/A since it differs per car
patch	float	bin:0x22dc0	245
patch	float	bin:0x22dc4	305

## 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:0x22d88	0.1
patch	float	bin:0x22d8c	0.5
patch	float	bin:0x22d90	0.8
patch	float	bin:0x22d94	1.2

## 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:0x22da0	1.8
patch	float	bin:0x22da4	1.8

## RIM_SIZE; self-explanatory; measured in inches
## common value range is 2x16-2x19
patch	float	bin:0x22db0	19
patch	float	bin:0x22db4	20

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

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x22da8	35
patch	float	bin:0x22dac	30

## 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:0x22db8	2
patch	float	bin:0x22dbc	2

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

## STEERING; steering ratio; value of 1.00 means that turning steering wheel by 360 degrees will turn wheels by 36 degrees
## common value range is 0.90-1.10
patch	float	bin:0x22dc8	1.025

##---------------------------------------------------
## Node: tires/default/eclipsegt/eclipsegt_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x22fa0	245
patch	float	bin:0x22fa4	305

## YAW_CONTROL
patch	float	bin:0x22f68	0.1
patch	float	bin:0x22f6c	0.5
patch	float	bin:0x22f70	1
patch	float	bin:0x22f74	1.2

## DYNAMIC_GRIP
patch	float	bin:0x22f80	2
patch	float	bin:0x22f84	2

## RIM_SIZE
patch	float	bin:0x22f90	19
patch	float	bin:0x22f94	20

## YAW_SPEED
patch	float	bin:0x22fac	0.4

## ASPECT_RATIO
patch	float	bin:0x22f88	35
patch	float	bin:0x22f8c	30

## STATIC_GRIP
patch	float	bin:0x22f98	2.2
patch	float	bin:0x22f9c	2.2

## GRIP_SCALE
patch	float	bin:0x22f78	1.1
patch	float	bin:0x22f7c	1.1

## STEERING
patch	float	bin:0x22fa8	1

##---------------------------------------------------
## Node: transmission/default/eclipsegt
##---------------------------------------------------

## 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:0x1e9c2	9

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1e9c8	3
patch	float	bin:0x1e9cc	0
patch	float	bin:0x1e9d0	3.838
patch	float	bin:0x1e9d4	2.433
patch	float	bin:0x1e9d8	1.778
patch	float	bin:0x1e9dc	1.428
patch	float	bin:0x1e9e0	1.211
patch	float	bin:0x1e9e4	1.038
patch	float	bin:0x1e9e8	0.881

## 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:0x1e9f4	0.8
patch	float	bin:0x1e9f8	0.7
patch	float	bin:0x1e9fc	0.8

## 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:0x1ea08	1
patch	float	bin:0x1ea0c	1
patch	float	bin:0x1ea10	1
patch	float	bin:0x1ea14	1
patch	float	bin:0x1ea18	1
patch	float	bin:0x1ea1c	1
patch	float	bin:0x1ea20	0.98
patch	float	bin:0x1ea24	0.97
patch	float	bin:0x1ea28	0.94

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

## 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:0x1ea30	0.5

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

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

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

##---------------------------------------------------
## Node: transmission/default/eclipsegt/eclipsegt_top
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6
patch	int16	bin:0x1f7ae	9

## GEAR_RATIO
patch	float	bin:0x1f7b4	3
patch	float	bin:0x1f7b8	0
patch	float	bin:0x1f7bc	3.59
patch	float	bin:0x1f7c0	2.35
patch	float	bin:0x1f7c4	1.7
patch	float	bin:0x1f7c8	1.4
patch	float	bin:0x1f7cc	1.195
patch	float	bin:0x1f7d0	0.98
patch	float	bin:0x1f7d4	0.85

## DIFFERENTIAL
patch	float	bin:0x1f7e0	0.85
patch	float	bin:0x1f7e4	0.85
patch	float	bin:0x1f7e8	0.85

## GEAR_EFFICIENCY
patch	float	bin:0x1f7f4	1
patch	float	bin:0x1f7f8	1
patch	float	bin:0x1f7fc	1
patch	float	bin:0x1f800	1
patch	float	bin:0x1f804	1
patch	float	bin:0x1f808	1
patch	float	bin:0x1f80c	1
patch	float	bin:0x1f810	1
patch	float	bin:0x1f814	1

## TORQUE_CONVERTER
patch	float	bin:0x1f818	0.5

## TORQUE_SPLIT
patch	float	bin:0x1f81c	0.5

## CLUTCH_SLIP
patch	float	bin:0x1f820	0.8

## SHIFT_SPEED
patch	float	bin:0x1f828	0.25

## FINAL_GEAR
patch	float	bin:0x1f82c	2.7