##---------------------------------------------------
## 2009 Audi Q7
## Replacement for Audi A3 2.0 FSi
## Attributes.bin patch script
##---------------------------------------------------

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

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

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

## TurboSND[1]
patch	int32	bin:0x2e2dc	0x08f716bd

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

## TurboSND[3]
patch	int32	bin:0x2e2fc	0x2b16df5d

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

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

## engineaudio[0]
patch	int32	bin:0x2e404	0x7a947ab6

## engineaudio[1]
patch	int32	bin:0x2e410	0x6aecaf5e

## engineaudio[2]
patch	int32	bin:0x2e41c	0x6aecaf5e

## 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:0x2e240	1
patch	float	bin:0x2e244	2
patch	float	bin:0x2e248	1
patch	float	bin:0x2e24c	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:0x2e2b8	20
patch	float	bin:0x2e2bc	60

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

## BodyDive; maximum vector-based movement of front of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x40c68	1
patch	float	bin:0x40c6c	0.5
patch	float	bin:0x40c70	8

## RideHeight; in-race only; visible body height
patch	float	bin:0x40cac	2

## ReflectionOffset
patch	float	bin:0x40ca4	0.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:0x40bc0	1.554
patch	float	bin:0x40bc4	0.98
patch	float	bin:0x40bc8	0
patch	float	bin:0x40bcc	0.365

## front right
patch	float	bin:0x40bd0	1.554
patch	float	bin:0x40bd4	-0.98
patch	float	bin:0x40bd8	0
patch	float	bin:0x40bdc	0.365

## rear right
patch	float	bin:0x40be0	-1.429
patch	float	bin:0x40be4	-0.99
patch	float	bin:0x40be8	0
patch	float	bin:0x40bec	0.365

## rear left
patch	float	bin:0x40bf0	-1.429
patch	float	bin:0x40bf4	0.99
patch	float	bin:0x40bf8	0
patch	float	bin:0x40bfc	0.365

## BodySquat; maximum vector-based movement of rear of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x40c5c	1
patch	float	bin:0x40c60	0.5
patch	float	bin:0x40c64	8

## 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:0x40ca8	0.3

## 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:0x40ca0	0.3

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

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x40c8c	0.255
patch	float	bin:0x40c90	0.255
patch	float	bin:0x40c94	0.255
patch	float	bin:0x40c98	0.255

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x40ccc	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:0x40cb8	0
patch	int8	bin:0x40cb9	0
patch	int8	bin:0x40cba	0
patch	int8	bin:0x40cbb	0
patch	int8	bin:0x40cbc	0
patch	int8	bin:0x40cbd	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:0x40c50	1
patch	float	bin:0x40c54	1
patch	float	bin:0x40c58	9

## 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:0x40cc6	0
patch	int8	bin:0x40cc7	0
patch	int8	bin:0x40cc8	0
patch	int8	bin:0x40cc9	0
patch	int8	bin:0x40cca	0
patch	int8	bin:0x40ccb	0

##---------------------------------------------------
## Node: brakes/default/a3
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x245b0	500
patch	float	bin:0x245b4	600

## 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:0x245b8	700

## 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:0x245a8	1.25
patch	float	bin:0x245ac	2.75

##---------------------------------------------------
## Node: brakes/default/a3/a3_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x24740	650
patch	float	bin:0x24744	720

## EBRAKE
patch	float	bin:0x24748	800

## BRAKE_LOCK
patch	float	bin:0x24738	1.3
patch	float	bin:0x2473c	2.5

##---------------------------------------------------
## Node: chassis/default/a3
##---------------------------------------------------

## 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:0x965c	3.002

## 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:0x9678	0.37

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x9648	22
patch	float	bin:0x964c	22

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x9620	8.5
patch	float	bin:0x9624	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:0x9638	45
patch	float	bin:0x963c	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:0x9660	7

## SHOCK_EXT_STIFFNESS; maximum shock absorber rebound force
## common value range is 2x40-2x80; acceleration-, downforce- and mass-dependent
patch	float	bin:0x9630	50
patch	float	bin:0x9634	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:0x9650	275
patch	float	bin:0x9654	275

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

## 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:0x9618	7.5
patch	float	bin:0x961c	7.5

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x9640	375
patch	float	bin:0x9644	375

## 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:0x9664	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:0x9610	7.25
patch	float	bin:0x9614	7.25

## TRACK_WIDTH; distance between wheel centers based on a single axle
## common value range N/A since it differs per car
patch	float	bin:0x9628	1.651
patch	float	bin:0x962c	1.681

## 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:0x9608	0.3
patch	float	bin:0x960c	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:0x9668	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:0x9670	0.14

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

## 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:0x9674	53.25

##---------------------------------------------------
## Node: chassis/default/a3/a3_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0x9ef8	3.002

## DRAG_COEFFICIENT
patch	float	bin:0x9f14	0.34

## SHOCK_VALVING
patch	float	bin:0x9ee4	22
patch	float	bin:0x9ee8	22

## RIDE_HEIGHT
patch	float	bin:0x9ebc	8.2
patch	float	bin:0x9ec0	8.2

## SHOCK_STIFFNESS
patch	float	bin:0x9ed4	65
patch	float	bin:0x9ed8	65

## SHOCK_BLOWOUT
patch	float	bin:0x9efc	7

## SHOCK_EXT_STIFFNESS
patch	float	bin:0x9ecc	75
patch	float	bin:0x9ed0	75

## SWAYBAR_STIFFNESS
patch	float	bin:0x9eec	300
patch	float	bin:0x9ef0	300

## ROLL_CENTER
patch	float	bin:0x9ef4	10

## TRAVEL
patch	float	bin:0x9eb4	7
patch	float	bin:0x9eb8	7

## SPRING_STIFFNESS
patch	float	bin:0x9edc	550
patch	float	bin:0x9ee0	540

## AERO_CG
patch	float	bin:0x9f00	47

## SPRING_PROGRESSION
patch	float	bin:0x9eac	7.75
patch	float	bin:0x9eb0	7.75

## TRACK_WIDTH
patch	float	bin:0x9ec4	1.651
patch	float	bin:0x9ec8	1.681

## SHOCK_DIGRESSION
patch	float	bin:0x9ea4	0.2
patch	float	bin:0x9ea8	0.2

## RENDER_MOTION
patch	float	bin:0x9f04	0.5

## AERO_COEFFICIENT
patch	float	bin:0x9f0c	0.2

## FRONT_AXLE
patch	float	bin:0x9f08	1.26

## FRONT_WEIGHT_BIAS
patch	float	bin:0x9f10	53.5

##---------------------------------------------------
## Node: engine/default/a3
##---------------------------------------------------

## 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:0x137f4	0.7
patch	float	bin:0x137f8	0.8
patch	float	bin:0x137fc	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:0x1380c	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:0x137b8	155
patch	float	bin:0x137bc	240
patch	float	bin:0x137c0	287
patch	float	bin:0x137c4	316
patch	float	bin:0x137c8	324
patch	float	bin:0x137cc	314
patch	float	bin:0x137d0	301
patch	float	bin:0x137d4	276
patch	float	bin:0x137d8	236

## 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:0x13804	8200

## 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:0x13800	14

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

##---------------------------------------------------
## Node: engine/default/a3/a3_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x13eb4	0.7
patch	float	bin:0x13eb8	0.8
patch	float	bin:0x13ebc	0.9

## IDLE
patch	float	bin:0x13ecc	800

## TORQUE
patch	float	bin:0x13e78	172
patch	float	bin:0x13e7c	284
patch	float	bin:0x13e80	345
patch	float	bin:0x13e84	398
patch	float	bin:0x13e88	450
patch	float	bin:0x13e8c	421
patch	float	bin:0x13e90	389
patch	float	bin:0x13e94	359
patch	float	bin:0x13e98	295

## MAX_RPM
patch	float	bin:0x13ec4	8200

## FLYWHEEL_MASS
patch	float	bin:0x13ec0	13

## RED_LINE
patch	float	bin:0x13ec8	7200

##---------------------------------------------------
## Node: induction/default/a3_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11d88	0.1

## LOW_BOOST
patch	float	bin:0x11d70	0.05

## peak_boost*; always higher value for stock
patch	float	bin:0x11d80	2

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

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

## psi_change*; pressure drop/rise in chamber
patch	float	bin:0x11d78	-0.15

##---------------------------------------------------
## Node: induction/default/a3_base/a3_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x12290	0.2

## LOW_BOOST
patch	float	bin:0x12278	0.1

## peak_boost*; always higher value for stock
patch	float	bin:0x12288	2

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

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

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

##---------------------------------------------------
## Node: tires/default/a3
##---------------------------------------------------

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

## YAW_CONTROL; self-explanatory; yaw control ratio
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22c48	0.375
patch	float	bin:0x22c4c	0.375
patch	float	bin:0x22c50	0.385
patch	float	bin:0x22c54	0.385

## 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:0x22c60	1.65
patch	float	bin:0x22c64	1.65

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

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

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x22c68	55
patch	float	bin:0x22c6c	55

## 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:0x22c78	1.8
patch	float	bin:0x22c7c	1.8

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

##---------------------------------------------------
## Node: tires/default/a3/a3_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x232c0	255
patch	float	bin:0x232c4	255

## YAW_CONTROL
patch	float	bin:0x23288	0.1
patch	float	bin:0x2328c	0.5
patch	float	bin:0x23290	1
patch	float	bin:0x23294	1.2

## DYNAMIC_GRIP
patch	float	bin:0x232a0	2
patch	float	bin:0x232a4	2

## RIM_SIZE
patch	float	bin:0x232b0	19
patch	float	bin:0x232b4	19

## YAW_SPEED
patch	float	bin:0x232cc	0.41

## ASPECT_RATIO
patch	float	bin:0x232a8	55
patch	float	bin:0x232ac	55

## STATIC_GRIP
patch	float	bin:0x232b8	2.25
patch	float	bin:0x232bc	2.25

## GRIP_SCALE
patch	float	bin:0x23298	1.1
patch	float	bin:0x2329c	1.15

## STEERING
patch	float	bin:0x232c8	0.8

##---------------------------------------------------
## Node: transmission/default/a3
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6; total amount of gears including reverse, neutral and rest of gears
## common value range is 7-9
patch	int16	bin:0x1ecda	8

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1ece0	3.3
patch	float	bin:0x1ece4	0
patch	float	bin:0x1ece8	4.148
patch	float	bin:0x1ecec	2.369
patch	float	bin:0x1ecf0	1.556
patch	float	bin:0x1ecf4	1.155
patch	float	bin:0x1ecf8	0.859
patch	float	bin:0x1ecfc	0.686

## DIFFERENTIAL; self-explanatory; differential bias; 0.00 for rear, 0.50 for mid and 1.00 for front
## common value range is 2x0.60-2x0.80; 3x0.60-3x0.80 if car is AWD
patch	float	bin:0x1ed0c	0.65
patch	float	bin:0x1ed10	0.65
patch	float	bin:0x1ed14	0.65

## 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:0x1ed20	0.9
patch	float	bin:0x1ed24	1
patch	float	bin:0x1ed28	0.9
patch	float	bin:0x1ed2c	0.9
patch	float	bin:0x1ed30	0.9
patch	float	bin:0x1ed34	0.9
patch	float	bin:0x1ed38	0.875
patch	float	bin:0x1ed38	0.85

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

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

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

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

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

##---------------------------------------------------
## Node: transmission/default/a3/a3_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x1fc58	3.3
patch	float	bin:0x1fc5c	0
patch	float	bin:0x1fc60	4.95
patch	float	bin:0x1fc64	2.8
patch	float	bin:0x1fc68	1.84
patch	float	bin:0x1fc6c	1.42
patch	float	bin:0x1fc70	1.2
patch	float	bin:0x1fc74	1

## DIFFERENTIAL
patch	float	bin:0x1fc84	0.65
patch	float	bin:0x1fc88	0.65
patch	float	bin:0x1fc8c	0.65

## GEAR_EFFICIENCY
patch	float	bin:0x1fc98	0.95
patch	float	bin:0x1fc9c	1
patch	float	bin:0x1fca0	1
patch	float	bin:0x1fca4	1
patch	float	bin:0x1fca8	1
patch	float	bin:0x1fcac	1
patch	float	bin:0x1fcb0	1
patch	float	bin:0x1fcb4	1

## TORQUE_CONVERTER
patch	float	bin:0x1fcbc	0.6

## TORQUE_SPLIT
patch	float	bin:0x1fcc0	0.5

## CLUTCH_SLIP
patch	float	bin:0x1fcc4	0.8

## SHIFT_SPEED
patch	float	bin:0x1fccc	0.25

## FINAL_GEAR
patch	float	bin:0x1fcd0	3.5


##camera
##height
patch	float	bin:0x2b780	1.6
patch	float	bin:0x2b784	1.7
##lag
patch	float	bin:0x2b760	0.6
patch	float	bin:0x2b764	0.65