##---------------------------------------------------
## 1965 Morris Mini Traveller
## Replacement for Lexus IS300
## Attributes.bin patch script
##---------------------------------------------------

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


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

## TurboSND[1]
patch	int32	bin:0x315fc	0x0755409c

## TurboSND[2]
patch	int32	bin:0x3160c	0x556596db

## TurboSND[3]
patch	int32	bin:0x3161c	0x81c64c37

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

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

## engineaudio[0]
patch	int32	bin:0x31724	0xc8eb0a3b

## engineaudio[1]
patch	int32	bin:0x31730	0xb2c77a77

## engineaudio[2]
patch	int32	bin:0x3173c	0x6a99bded

## 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:0x31560	1
patch	float	bin:0x31564	2
patch	float	bin:0x31568	1
patch	float	bin:0x3156c	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:0x315d8	39
patch	float	bin:0x315dc	100

## brakes_upgrades
patch	int32	bin:0x31594	4

## induction_upgrades
patch	int32	bin:0x315a4	3

## tires_upgrades
patch	int32	bin:0x3159c	3

## engine_upgrades
patch	int32	bin:0x31588	4

## transmission_upgrades
patch	int32	bin:0x3158c	4

## nos_upgrades
patch	int32	bin:0x31590	3

## chassis_upgrades
patch	int32	bin:0x315a8	3


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

## RideHeight; in-race only; visible body height
patch	float	bin:0x3e9dc	-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:0x3e8f0	1.065
patch	float	bin:0x3e8f4	0.685
patch	float	bin:0x3e8f8	0
patch	float	bin:0x3e8fc	0.245

## front right
patch	float	bin:0x3e900	1.065
patch	float	bin:0x3e904	-0.685
patch	float	bin:0x3e908	0
patch	float	bin:0x3e90c	0.245

## rear right
patch	float	bin:0x3e910	-1.070
patch	float	bin:0x3e914	-0.685
patch	float	bin:0x3e918	0
patch	float	bin:0x3e91c	0.245

## rear left
patch	float	bin:0x3e920	-1.070
patch	float	bin:0x3e924	0.685
patch	float	bin:0x3e928	0
patch	float	bin:0x3e92c	0.245

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

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3e9bc	0.145
patch	float	bin:0x3e9c0	0.145
patch	float	bin:0x3e9c4	0.145
patch	float	bin:0x3e9c8	0.145

## 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:0x3e9e8	0
patch	int8	bin:0x3e9e9	0
patch	int8	bin:0x3e9ea	0
patch	int8	bin:0x3e9eb	0
patch	int8	bin:0x3e9ec	0
patch	int8	bin:0x3e9ed	0

## 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:0x3e9f6	0
patch	int8	bin:0x3e9f7	0
patch	int8	bin:0x3e9f8	0
patch	int8	bin:0x3e9f9	0
patch	int8	bin:0x3e9fa	0
patch	int8	bin:0x3e9fb	0


##---------------------------------------------------
## Node: brakes/default/is300
##---------------------------------------------------

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

## 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:0x242c0	450

## 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:0x242b0	1
patch	float	bin:0x242b4	3.5


##---------------------------------------------------
## Node: brakes/default/is300/is300_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x246dc	325
patch	float	bin:0x246e0	475

## EBRAKE
patch	float	bin:0x246e4	700

## BRAKE_LOCK
patch	float	bin:0x246d4	1
patch	float	bin:0x246d8	3.5


##---------------------------------------------------
## Node: chassis/default/is300
##---------------------------------------------------

## 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:0x9248	2.138

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

##---------------------------------------------------
## Node: chassis/default/is300/is300_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0xa4dc	2.138

## FRONT_AXLE
patch	float	bin:0xa4ec	1.2

##---------------------------------------------------
## Node: engine/default/is300
##---------------------------------------------------

## 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:0x133d4	0.7
patch	float	bin:0x133d8	0.8
patch	float	bin:0x133dc	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:0x133ec	950

## 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:0x13398	60
patch	float	bin:0x1339c	90
patch	float	bin:0x133a0	105
patch	float	bin:0x133a4	148
patch	float	bin:0x133a8	148
patch	float	bin:0x133ac	130
patch	float	bin:0x133b0	127
patch	float	bin:0x133b4	114
patch	float	bin:0x133b8	93

## 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:0x133e4	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:0x133e0	11

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


##---------------------------------------------------
## Node: engine/default/is300/is300_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x14274	0.65
patch	float	bin:0x14278	0.75
patch	float	bin:0x1427c	0.85

## IDLE
patch	float	bin:0x1428c	950

## TORQUE
patch	float	bin:0x14238	210
patch	float	bin:0x1423c	280
patch	float	bin:0x14240	410
patch	float	bin:0x14244	480
patch	float	bin:0x14248	475
patch	float	bin:0x1424c	420
patch	float	bin:0x14250	382
patch	float	bin:0x14254	349
patch	float	bin:0x14258	319

## MAX_RPM
patch	float	bin:0x14284	7000

## FLYWHEEL_MASS
patch	float	bin:0x14280	11

## RED_LINE
patch	float	bin:0x14288	6000


##---------------------------------------------------
## Node: induction/default/is300_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11c8c	0.1

## LOW_BOOST
patch	float	bin:0x11c74	0.1

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11c84	2.2

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

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

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


##---------------------------------------------------
## Node: induction/default/is300_base/is300_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x1215c	0.22

## LOW_BOOST
patch	float	bin:0x12144	0.21

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x12154	1.9

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

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

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


##---------------------------------------------------
## Node: tires/default/is300
##---------------------------------------------------

## SECTION_WIDTH; self-explanatory; measured in milimetres
## common value range N/A since it differs per car
patch	float	bin:0x22870	145
patch	float	bin:0x22874	145

## 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:0x22850	1.3
patch	float	bin:0x22854	1.3

## RIM_SIZE; self-explanatory; measured in inches
## common value range is 2x16-2x19
patch	float	bin:0x22860	12
patch	float	bin:0x22864	12

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

## 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:0x22868	1.5
patch	float	bin:0x2286c	1.6

##---------------------------------------------------
## Node: tires/default/is300/is300_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x23680	145
patch	float	bin:0x23684	145

## DYNAMIC_GRIP
patch	float	bin:0x23660	1.82
patch	float	bin:0x23664	1.91

## RIM_SIZE
patch	float	bin:0x23670	12
patch	float	bin:0x23674	12

## YAW_SPEED
patch	float	bin:0x2368c	0.25

## STATIC_GRIP
patch	float	bin:0x23678	2
patch	float	bin:0x2367c	2.1

##---------------------------------------------------
## Node: transmission/default/is300
##---------------------------------------------------

## 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:0x1e206	6

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1e20c	3.627
patch	float	bin:0x1e210	0
patch	float	bin:0x1e214	3.627
patch	float	bin:0x1e218	2.172
patch	float	bin:0x1e21c	1.412
patch	float	bin:0x1e220	1
patch	float	bin:0x1e224	0
patch	float	bin:0x1e228	0
patch	float	bin:0x1e22c	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:0x1e238	0.7
patch	float	bin:0x1e23c	0.7
patch	float	bin:0x1e240	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:0x1e24c	1
patch	float	bin:0x1e250	1
patch	float	bin:0x1e254	1
patch	float	bin:0x1e258	1
patch	float	bin:0x1e25c	1
patch	float	bin:0x1e260	1
patch	float	bin:0x1e264	1
patch	float	bin:0x1e268	1
patch	float	bin:0x1e26c	1

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

## 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:0x1e274	1

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

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

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


##---------------------------------------------------
## Node: transmission/default/is300/is300_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x20390	3
patch	float	bin:0x20394	0
patch	float	bin:0x20398	3.627
patch	float	bin:0x2039c	2.172
patch	float	bin:0x203a0	1.412
patch	float	bin:0x203a4	1
patch	float	bin:0x203a8	0.76
patch	float	bin:0x203ac	0.61
patch	float	bin:0x203b0	0

## DIFFERENTIAL
patch	float	bin:0x203bc	0.7
patch	float	bin:0x203c0	0.7
patch	float	bin:0x203c4	0

## GEAR_EFFICIENCY
patch	float	bin:0x203d0	1
patch	float	bin:0x203d4	1
patch	float	bin:0x203d8	1
patch	float	bin:0x203dc	1
patch	float	bin:0x203e0	1
patch	float	bin:0x203e4	1
patch	float	bin:0x203e8	1
patch	float	bin:0x203ec	1
patch	float	bin:0x203f0	1

## TORQUE_CONVERTER
patch	float	bin:0x203f4	0.59

## TORQUE_SPLIT
patch	float	bin:0x203f8	1

## CLUTCH_SLIP
patch	float	bin:0x203fc	0.8

## SHIFT_SPEED
patch	float	bin:0x20404	0.2

## FINAL_GEAR
patch	float	bin:0x20408	2.5

