##---------------------------------------------------
## 2003 BMW M5
## Replacement for Porsche Cayman S
## Attributes.bin patch script
##---------------------------------------------------

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

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

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

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

## TurboSND[2]
patch	int32	bin:0x3265c	0x3f333115

## MASS
patch	float	bin:0x32608	1830

## VerbalType
patch	int32	bin:0x32610	0x00000040

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

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

## TENSOR_SCALE
patch	float	bin:0x325d0	1
patch	float	bin:0x325d4	1.95
patch	float	bin:0x325d8	1
patch	float	bin:0x325dc	0

## HANDLING_BARS*
patch	float	bin:0x32628	65
patch	float	bin:0x3262c	92

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

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

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

## 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:0x3f880	1
patch	float	bin:0x3f884	1
patch	float	bin:0x3f888	5

## RideHeight
patch	float	bin:0x3f8dc	3

## TireOffsets
patch	float	bin:0x3f7f0	1.52
patch	float	bin:0x3f7f4	0.89
patch	float	bin:0x3f7f8	0
patch	float	bin:0x3f7fc	0.33

patch	float	bin:0x3f800	1.52
patch	float	bin:0x3f804	-0.89
patch	float	bin:0x3f808	0
patch	float	bin:0x3f80c	0.33

patch	float	bin:0x3f810	-1.31
patch	float	bin:0x3f814	-0.89
patch	float	bin:0x3f818	0
patch	float	bin:0x3f81c	0.33

patch	float	bin:0x3f820	-1.31
patch	float	bin:0x3f824	0.89
patch	float	bin:0x3f828	0
patch	float	bin:0x3f82c	0.33

## TireSkidWidth
patch	float	bin:0x3f8bc	0.245
patch	float	bin:0x3f8c0	0.245
patch	float	bin:0x3f8c4	0.275
patch	float	bin:0x3f8c8	0.275

## WheelSpokeCount
patch	int8	bin:0x3f8fc	8

## ReflectionOffset
patch	float	bin:0x3f8d4	0.15

## KitWheelOffsetRear
patch	int8	bin:0x3f8e8	0
patch	int8	bin:0x3f8e9	0
patch	int8	bin:0x3f8ea	0
patch	int8	bin:0x3f8eb	60
patch	int8	bin:0x3f8ec	45
patch	int8	bin:0x3f8ed	0

## KitWheelOffsetFront
patch	int8	bin:0x3f8f6	0
patch	int8	bin:0x3f8f7	0
patch	int8	bin:0x3f8f8	0
patch	int8	bin:0x3f8f9	60
patch	int8	bin:0x3f8fa	40
patch	int8	bin:0x3f8fb	0

##FECompression
patch	float	bin:0x3f908	0.08
patch	float	bin:0x3f90c	0.08

## 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:0x3f8d8	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:0x3f8d0	0.23

##---------------------------------------------------
## Node: brakes/default/caymans
##---------------------------------------------------

## BRAKES
patch	float	bin:0x24574	400
patch	float	bin:0x24578	500

## EBRAKE
patch	float	bin:0x2457c	600

## BRAKE_LOCK
patch	float	bin:0x2456c	1
patch	float	bin:0x24570	3.5

##---------------------------------------------------
## Node: brakes/default/caymans/caymans_1*
##---------------------------------------------------

## BRAKES
patch	float	bin:0x247f4	550
patch	float	bin:0x247f8	650

## EBRAKE
patch	float	bin:0x247fc	800

## BRAKE_LOCK
patch	float	bin:0x247ec	1
patch	float	bin:0x247f0	3

##---------------------------------------------------
## Node: chassis/default/caymans
##---------------------------------------------------

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

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

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x9864	8.5
patch	float	bin:0x9868	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:0x987c	50
patch	float	bin:0x9880	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:0x98a4	6

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

## SWAYBAR_STIFFNESS; maximum pressure inside sway bar in pounds per square inch
## common value range is 2x200-2x450; acceleration and mass dependent
patch	float	bin:0x9894	300
patch	float	bin:0x9898	300

## ROLL_CENTER; vertical center of gravity [probably in inches]
## common value range is 8-10
patch	float	bin:0x989c	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:0x985c	6
patch	float	bin:0x9860	6

## SPRING_STIFFNESS
patch	float	bin:0x9884	550
patch	float	bin:0x9888	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:0x98a8	48

## SPRING_PROGRESSION; maximum compression distance for spring to achieve maximum stiffness; stock smaller than upgraded
## common value range is 2x5-2x8
patch	float	bin:0x9854	6
patch	float	bin:0x9858	6

## TRACK_WIDTH
patch	float	bin:0x986c	1.515
patch	float	bin:0x9870	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:0x984c	0.2
patch	float	bin:0x9850	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:0x98ac	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:0x98b4	0.135

## FRONT_AXLE; front axle diameter in inches
## common value range is 1.2-1.5
patch	float	bin:0x98b0	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:0x98b8	54

##---------------------------------------------------
## Node: chassis/default/caymans/caymans_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0xa380	2.83

## DRAG_COEFFICIENT
patch	float	bin:0xa39c	0.4

## SHOCK_VALVING
patch	float	bin:0xa36c	24
patch	float	bin:0xa370	24

## RIDE_HEIGHT
patch	float	bin:0xa344	8
patch	float	bin:0xa348	8

## SHOCK_STIFFNESS
patch	float	bin:0xa35c	65
patch	float	bin:0xa360	70

## SHOCK_BLOWOUT
patch	float	bin:0xa384	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xa354	80
patch	float	bin:0xa358	85

## SWAYBAR_STIFFNESS
patch	float	bin:0xa374	300
patch	float	bin:0xa378	400

## ROLL_CENTER
patch	float	bin:0xa37c	8

## TRAVEL
patch	float	bin:0xa33c	6
patch	float	bin:0xa340	6

## SPRING_STIFFNESS
patch	float	bin:0xa364	700
patch	float	bin:0xa368	775

## AERO_CG
patch	float	bin:0xa388	48

## SPRING_PROGRESSION
patch	float	bin:0xa334	8
patch	float	bin:0xa338	8

## TRACK_WIDTH
patch	float	bin:0xa34c	1.515
patch	float	bin:0xa350	1.527

## SHOCK_DIGRESSION
patch	float	bin:0xa32c	0.1
patch	float	bin:0xa330	0.1

## RENDER_MOTION
patch	float	bin:0xa38c	0.5

## AERO_COEFFICIENT
patch	float	bin:0xa394	0.25

## FRONT_AXLE
patch	float	bin:0xa390	1.35

## FRONT_WEIGHT_BIAS
patch	float	bin:0xa398	54

##---------------------------------------------------
## Node: engine/default/caymans
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x13614	0.7
patch	float	bin:0x13618	0.8
patch	float	bin:0x1361c	0.9

## IDLE
patch	float	bin:0x1362c	1000

## TORQUE
patch	float	bin:0x135d8	147
patch	float	bin:0x135dc	230
patch	float	bin:0x135e0	301
patch	float	bin:0x135e4	334
patch	float	bin:0x135e8	365
patch	float	bin:0x135ec	345
patch	float	bin:0x135f0	336
patch	float	bin:0x135f4	309
patch	float	bin:0x135f8	256

## MAX_RPM
patch	float	bin:0x13624	8000

## FLYWHEEL_MASS
patch	float	bin:0x13620	14

## RED_LINE
patch	float	bin:0x13628	7000

##---------------------------------------------------
## Node: engine/default/caymans/caymans_1*
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x140f4	0.75
patch	float	bin:0x140f8	0.85
patch	float	bin:0x140fc	0.95

## IDLE
patch	float	bin:0x1410c	1000

## TORQUE
patch	float	bin:0x140b8	165
patch	float	bin:0x140bc	320
patch	float	bin:0x140c0	455
patch	float	bin:0x140c4	675
patch	float	bin:0x140c8	750
patch	float	bin:0x140cc	700
patch	float	bin:0x140d0	647
patch	float	bin:0x140d4	624
patch	float	bin:0x140d8	569

## MAX_RPM
patch	float	bin:0x14104	8000

## FLYWHEEL_MASS
patch	float	bin:0x14100	13

## RED_LINE
patch	float	bin:0x14108	7000

##---------------------------------------------------
## Node: induction/default/caymans_base
##---------------------------------------------------

## 0x1f158097; unexplained; commonly 0.25
patch	float	bin:0x11c08	0.25

## HIGH_BOOST
patch	float	bin:0x11c1c	0.1

## LOW_BOOST
patch	float	bin:0x11c04	0.1

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

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

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

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

##---------------------------------------------------
## Node: induction/default/caymans_base/caymans_top
##---------------------------------------------------

## 0x1f158097; unexplained; commonly 0.25
patch	float	bin:0x12014	0.25

## HIGH_BOOST
patch	float	bin:0x12028	0.175

## LOW_BOOST
patch	float	bin:0x12010	0.15

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

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

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

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

##---------------------------------------------------
## Node: transmission/default/caymans
##---------------------------------------------------

## GEAR_COUNT
patch	int16	bin:0x1f202	8

## GEAR_RATIO
patch	float	bin:0x1f208	3.75
patch	float	bin:0x1f20c	0
patch	float	bin:0x1f210	4.23
patch	float	bin:0x1f214	2.51
patch	float	bin:0x1f218	1.67
patch	float	bin:0x1f21c	1.23
patch	float	bin:0x1f220	1
patch	float	bin:0x1f224	0.83

## DIFFERENTIAL
patch	float	bin:0x1f234	0.7
patch	float	bin:0x1f238	0.75
patch	float	bin:0x1f23c	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:0x1f248	1
patch	float	bin:0x1f24c	1
patch	float	bin:0x1f250	1
patch	float	bin:0x1f254	1
patch	float	bin:0x1f258	1
patch	float	bin:0x1f25c	1
patch	float	bin:0x1f260	1
patch	float	bin:0x1f264	1

## TORQUE_CONVERTER
patch	float	bin:0x1f26c	0.3

## TORQUE_SPLIT
patch	float	bin:0x1f270	0

## CLUTCH_SLIP
patch	float	bin:0x1f274	0.6

## SHIFT_SPEED
patch	float	bin:0x1f27c	0.25

## FINAL_GEAR
patch	float	bin:0x1f280	3.3	

##---------------------------------------------------
## Node: transmission/default/caymans/caymans_1*
##---------------------------------------------------

## GEAR_COUNT
patch	int16	bin:0x200f6	9

## GEAR_RATIO
patch	float	bin:0x200fc	3.98
patch	float	bin:0x20100	0
patch	float	bin:0x20104	3.985
patch	float	bin:0x20108	2.652
patch	float	bin:0x2010c	1.806
patch	float	bin:0x20110	1.392
patch	float	bin:0x20114	1.159
patch	float	bin:0x20118	1
patch	float	bin:0x2011c	0.833

## DIFFERENTIAL
patch	float	bin:0x20128	0.85
patch	float	bin:0x2012c	0.85
patch	float	bin:0x20130	0

## TORQUE_CONVERTER
patch	float	bin:0x20160	0.5

## TORQUE_SPLIT
patch	float	bin:0x20164	0

## CLUTCH_SLIP
patch	float	bin:0x20168	0.8

## SHIFT_SPEED
patch	float	bin:0x20170	0.15

## FINAL_GEAR
patch	float	bin:0x20174	2.5

##---------------------------------------------------
## Node: tires/default/caymans
##---------------------------------------------------

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

## YAW_CONTROL; self-explanatory; yaw control ratio
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22ab8	0.2
patch	float	bin:0x22abc	0.4
patch	float	bin:0x22ac0	0.6
patch	float	bin:0x22ac4	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:0x22ad0	1.6
patch	float	bin:0x22ad4	1.75

## RIM_SIZE
patch	float	bin:0x22ae0	17
patch	float	bin:0x22ae4	17

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

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x22ad8	45
patch	float	bin:0x22adc	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:0x22ae8	1.8
patch	float	bin:0x22aec	1.95

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

##---------------------------------------------------
## Node: tires/default/caymans/caymans_1*
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x23540	245
patch	float	bin:0x23544	275

## YAW_CONTROL
patch	float	bin:0x23508	0.4
patch	float	bin:0x2350c	0.8
patch	float	bin:0x23510	1
patch	float	bin:0x23514	1.2

## DYNAMIC_GRIP
patch	float	bin:0x23520	1.9
patch	float	bin:0x23524	2

## RIM_SIZE
patch	float	bin:0x23530	17
patch	float	bin:0x23534	17

## YAW_SPEED
patch	float	bin:0x2354c	0.36

## ASPECT_RATIO
patch	float	bin:0x23528	45
patch	float	bin:0x2352c	35

## STATIC_GRIP
patch	float	bin:0x23538	2.1
patch	float	bin:0x2353c	2.25

## GRIP_SCALE
patch	float	bin:0x23518	1.1
patch	float	bin:0x2351c	1.2

## STEERING
patch	float	bin:0x23548	1.05