##---------------------------------------------------
## 2003 BMW M5
## Replacement for Lexus IS300
## Attributes.bin patch script
##---------------------------------------------------

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

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

## TurboSND[0]
patch	int32	bin:0x315ec	0xeec2271a

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

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

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

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

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

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

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

## VerbalType
patch	int32	bin:0x315a0	0x00000040

## 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	1.95
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	65
patch	float	bin:0x315dc	92

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

## BodyDive; maximum vector-based movement of front of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3e998	1
patch	float	bin:0x3e99c	0.5
patch	float	bin:0x3e9a0	6

## ReflectionOffset
patch	float	bin:0x3e9d4	0.15

## RideHeight; in-race only; visible body height
patch	float	bin:0x3e9dc	3

## 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.52
patch	float	bin:0x3e8f4	0.89
patch	float	bin:0x3e8f8	0
patch	float	bin:0x3e8fc	0.33

## front right
patch	float	bin:0x3e900	1.52
patch	float	bin:0x3e904	-0.89
patch	float	bin:0x3e908	0
patch	float	bin:0x3e90c	0.33

## rear right
patch	float	bin:0x3e910	-1.31
patch	float	bin:0x3e914	-0.89
patch	float	bin:0x3e918	0
patch	float	bin:0x3e91c	0.33

## rear left
patch	float	bin:0x3e920	-1.31
patch	float	bin:0x3e924	0.89
patch	float	bin:0x3e928	0
patch	float	bin:0x3e92c	0.33

## BodySquat; maximum vector-based movement of rear of car body
1st - Degrees/G
2nd - Max G
3rd - Degrees/sec
patch	float	bin:0x3e98c	1
patch	float	bin:0x3e990	0.5
patch	float	bin:0x3e994	6

## 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:0x3e9d8	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:0x3e9d0	0.23

## 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.245
patch	float	bin:0x3e9c0	0.245
patch	float	bin:0x3e9c4	0.275
patch	float	bin:0x3e9c8	0.275

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x3e9fc	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:0x3e9e8	0
patch	int8	bin:0x3e9e9	0
patch	int8	bin:0x3e9ea	0
patch	int8	bin:0x3e9eb	60
patch	int8	bin:0x3e9ec	45
patch	int8	bin:0x3e9ed	0

## 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:0x3e980	1
patch	float	bin:0x3e984	1
patch	float	bin:0x3e988	5

## 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	60
patch	int8	bin:0x3e9fa	40
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	400
patch	float	bin:0x242bc	500

## 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	600

## 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	550
patch	float	bin:0x246e0	650

## EBRAKE
patch	float	bin:0x246e4	800

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

##---------------------------------------------------
## 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.83

## 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:0x9264	0.31

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x9234	20
patch	float	bin:0x9238	20

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x920c	8.5
patch	float	bin:0x9210	8.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:0x9224	50
patch	float	bin:0x9228	45

## SHOCK_BLOWOUT; maximum size by which a dampener can compress in inches; stock same as upgraded
## common value range is 5-8
patch	float	bin:0x924c	6

## SHOCK_EXT_STIFFNESS; maximum shock absorber rebound force
## common value range is 2x40-2x80; acceleration-, downforce- and mass-dependent
patch	float	bin:0x921c	60
patch	float	bin:0x9220	50

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

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

## TRAVEL; maximum length by which a shock can be extended if car wheels don't have contact with road surface; stock commonly higher than upgraded
## common value range is 2x6-2x8; acceleration and mass dependent
patch	float	bin:0x9204	6
patch	float	bin:0x9208	6

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x922c	550
patch	float	bin:0x9230	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:0x9250	48

## 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:0x91fc	6
patch	float	bin:0x9200	6

## 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:0x9214	1.515
patch	float	bin:0x9218	1.527

## 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:0x91f4	0.2
patch	float	bin:0x91f8	0.2

## 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:0x9254	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:0x925c	0.135

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

## 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:0x9260	54

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

## WHEEL_BASE
patch	float	bin:0xa4dc	2.83

## DRAG_COEFFICIENT
patch	float	bin:0xa4f8	0.4

## SHOCK_VALVING
patch	float	bin:0xa4c8	24
patch	float	bin:0xa4cc	24

## RIDE_HEIGHT
patch	float	bin:0xa4a0	8
patch	float	bin:0xa4a4	8

## SHOCK_STIFFNESS
patch	float	bin:0xa4b8	65
patch	float	bin:0xa4bc	70

## SHOCK_BLOWOUT
patch	float	bin:0xa4e0	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xa4b0	80
patch	float	bin:0xa4b4	85

## SWAYBAR_STIFFNESS
patch	float	bin:0xa4d0	300
patch	float	bin:0xa4d4	400

## ROLL_CENTER
patch	float	bin:0xa4d8	8

## TRAVEL
patch	float	bin:0xa498	6
patch	float	bin:0xa49c	6

## SPRING_STIFFNESS
patch	float	bin:0xa4c0	700
patch	float	bin:0xa4c4	775

## AERO_CG
patch	float	bin:0xa4e4	48

## SPRING_PROGRESSION
patch	float	bin:0xa490	8
patch	float	bin:0xa494	8

## TRACK_WIDTH
patch	float	bin:0xa4a8	1.515
patch	float	bin:0xa4ac	1.527

## SHOCK_DIGRESSION
patch	float	bin:0xa488	0.1
patch	float	bin:0xa48c	0.1

## RENDER_MOTION
patch	float	bin:0xa4e8	0.5

## AERO_COEFFICIENT
patch	float	bin:0xa4f0	0.25

## FRONT_AXLE
patch	float	bin:0xa4ec	1.35

## FRONT_WEIGHT_BIAS
patch	float	bin:0xa4f4	54

##---------------------------------------------------
## 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	1000

## 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	147
patch	float	bin:0x1339c	230
patch	float	bin:0x133a0	301
patch	float	bin:0x133a4	334
patch	float	bin:0x133a8	365
patch	float	bin:0x133ac	345
patch	float	bin:0x133b0	336
patch	float	bin:0x133b4	309
patch	float	bin:0x133b8	256

## 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	8000

## 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	14

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

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

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

## IDLE
patch	float	bin:0x1428c	800

## TORQUE
patch	float	bin:0x14238	165
patch	float	bin:0x1423c	320
patch	float	bin:0x14240	455
patch	float	bin:0x14244	675
patch	float	bin:0x14248	750
patch	float	bin:0x1424c	700
patch	float	bin:0x14250	647
patch	float	bin:0x14254	624
patch	float	bin:0x14258	569

## MAX_RPM
patch	float	bin:0x14284	8000

## FLYWHEEL_MASS
patch	float	bin:0x14280	13

## RED_LINE
patch	float	bin:0x14288	7000

##---------------------------------------------------
## 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

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

## 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.25

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

##---------------------------------------------------
## 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.175

## LOW_BOOST
patch	float	bin:0x12144	0.15

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

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

## 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.05

##---------------------------------------------------
## 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	245
patch	float	bin:0x22874	275

## 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:0x22838	0.2
patch	float	bin:0x2283c	0.4
patch	float	bin:0x22840	0.6
patch	float	bin:0x22844	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:0x22850	1.6
patch	float	bin:0x22854	1.75

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

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

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

## 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.8
patch	float	bin:0x2286c	1.95

## GRIP_SCALE; tire grip scaling per axle
## common value range is 2x1.00-2x1.10
patch	float	bin:0x22848	1
patch	float	bin:0x2284c	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:0x22878	1

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

## SECTION_WIDTH
patch	float	bin:0x23680	245
patch	float	bin:0x23684	275

## YAW_CONTROL
patch	float	bin:0x23648	0.4
patch	float	bin:0x2364c	0.8
patch	float	bin:0x23650	1
patch	float	bin:0x23654	1.2

## DYNAMIC_GRIP
patch	float	bin:0x23660	1.9
patch	float	bin:0x23664	2

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

## YAW_SPEED
patch	float	bin:0x2368c	0.36

## ASPECT_RATIO
patch	float	bin:0x23668	45
patch	float	bin:0x2366c	35

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

## GRIP_SCALE
patch	float	bin:0x23658	1.1
patch	float	bin:0x2365c	1.2

## STEERING
patch	float	bin:0x23688	1.05

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

## GEAR_COUNT
patch	int16	bin:0x1e206	8

## GEAR_RATIO
patch	float	bin:0x1e20c	3.75
patch	float	bin:0x1e210	0
patch	float	bin:0x1e214	4.23
patch	float	bin:0x1e218	2.51
patch	float	bin:0x1e21c	1.67
patch	float	bin:0x1e220	1.23
patch	float	bin:0x1e224	1
patch	float	bin:0x1e228	0.83

## DIFFERENTIAL
patch	float	bin:0x1e238	0.7
patch	float	bin:0x1e23c	0.75
patch	float	bin:0x1e240	0

## GEAR_EFFICIENCY
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

## TORQUE_CONVERTER
patch	float	bin:0x1e270	0.3

## TORQUE_SPLIT
patch	float	bin:0x1e274	0

## CLUTCH_SLIP
patch	float	bin:0x1e278	0.6

## SHIFT_SPEED
patch	float	bin:0x1e280	0.25

## FINAL_GEAR
patch	float	bin:0x1e284	3.3

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

## GEAR_COUNT
patch	int16	bin:0x2038a	9

## GEAR_RATIO
patch	float	bin:0x20390	3.98
patch	float	bin:0x20394	0
patch	float	bin:0x20398	3.985
patch	float	bin:0x2039c	2.652
patch	float	bin:0x203a0	1.806
patch	float	bin:0x203a4	1.392
patch	float	bin:0x203a8	1.159
patch	float	bin:0x203ac	1
patch	float	bin:0x203b0	0.833

## DIFFERENTIAL
patch	float	bin:0x203bc	0.85
patch	float	bin:0x203c0	0.85
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.5

## TORQUE_SPLIT
patch	float	bin:0x203f8	0

## CLUTCH_SLIP
patch	float	bin:0x203fc	0.8

## SHIFT_SPEED
patch	float	bin:0x20404	0.15

## FINAL_GEAR
patch	float	bin:0x20408	2.5