##---------------------------------------------------
## 2011 Holden HSV GTS
## Replacement for Pontiac GTO
## Attributes.bin patch script
##---------------------------------------------------

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

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

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

## TurboSND[1]
patch	int32	bin:0x31bdc	0x051b079e

## TurboSND[2]
patch	int32	bin:0x31bec	0x87847a68

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

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

## engineaudio[0]
patch	int32	bin:0x31ce4	0x6aecaf5e

## engineaudio[1]
patch	int32	bin:0x31cf0	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:0x31b40	1
patch	float	bin:0x31b44	1.95
patch	float	bin:0x31b48	1
patch	float	bin:0x31b4c	1

## 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:0x31bb8	60
patch	float	bin:0x31bbc	95

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

## BodyDive; maximum vector-based movement of front of car body
patch	float	bin:0x40758	1.5
patch	float	bin:0x4075c	0.5
patch	float	bin:0x40760	6

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

## ReflectionOffset
patch	float	bin:0x40794	0.15

## 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:0x406b0	1.565
patch	float	bin:0x406b4	0.926
patch	float	bin:0x406b8	0
patch	float	bin:0x406bc	0.335

## front right
patch	float	bin:0x406c0	1.565
patch	float	bin:0x406c4	-0.926
patch	float	bin:0x406c8	0
patch	float	bin:0x406cc	0.335

## rear right
patch	float	bin:0x406d0	-1.357
patch	float	bin:0x406d4	-0.933
patch	float	bin:0x406d8	0
patch	float	bin:0x406dc	0.335

## rear left
patch	float	bin:0x406e0	-1.357
patch	float	bin:0x406e4	0.933
patch	float	bin:0x406e8	0
patch	float	bin:0x406ec	0.335

## BodySquat; maximum vector-based movement of rear of car body
patch	float	bin:0x4074c	1.5
patch	float	bin:0x40750	0.5
patch	float	bin:0x40754	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:0x40798	0.16

## 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:0x40790	0.18

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

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x4077c	0.245
patch	float	bin:0x40780	0.245
patch	float	bin:0x40784	0.275
patch	float	bin:0x40788	0.275

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x407bc	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:0x407a8	0
patch	int8	bin:0x407a9	0
patch	int8	bin:0x407aa	0
patch	int8	bin:0x407ab	0
patch	int8	bin:0x407ac	0
patch	int8	bin:0x407ad	0

## BodyRoll; maximum vector-based movement of entire car body towards left or right
## simply put - car body leaning sideways
patch	float	bin:0x40740	1
patch	float	bin:0x40744	1
patch	float	bin:0x40748	7

## 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:0x407b6	0
patch	int8	bin:0x407b7	0
patch	int8	bin:0x407b8	0
patch	int8	bin:0x407b9	0
patch	int8	bin:0x407ba	0
patch	int8	bin:0x407bb	0

##---------------------------------------------------
## Node: brakes/default/gto
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x242e0	400
patch	float	bin:0x242e4	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:0x242e8	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:0x242d8	1
patch	float	bin:0x242dc	3.3

##---------------------------------------------------
## Node: brakes/default/gto/gto_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x246f0	550
patch	float	bin:0x246f4	620

## EBRAKE
patch	float	bin:0x246f8	850

## BRAKE_LOCK
patch	float	bin:0x246e8	1
patch	float	bin:0x246ec	3.15

##---------------------------------------------------
## Node: chassis/default/gto
##---------------------------------------------------

## 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:0x9914	2.915

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

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x9900	26
patch	float	bin:0x9904	26

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x98d8	7
patch	float	bin:0x98dc	7

## 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:0x98f0	50
patch	float	bin:0x98f4	50

## 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:0x9918	7

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

## 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:0x9908	240
patch	float	bin:0x990c	200

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

## 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:0x98d0	7
patch	float	bin:0x98d4	7

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x98f8	600
patch	float	bin:0x98fc	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:0x991c	46

## 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:0x98c8	7
patch	float	bin:0x98cc	7

## TRACK_WIDTH; distance between wheel centers based on a single axle
## common value range N/A since it differs per car
patch	float	bin:0x98e0	1.616
patch	float	bin:0x98e4	1.9

## 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:0x98c0	0.2
patch	float	bin:0x98c4	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:0x9920	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:0x9928	0.13

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

##---------------------------------------------------
## Node: chassis/default/gto/gto_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0xa298	2.915

## DRAG_COEFFICIENT
patch	float	bin:0xa2b4	0.31

## SHOCK_VALVING
patch	float	bin:0xa284	18
patch	float	bin:0xa288	18

## RIDE_HEIGHT
patch	float	bin:0xa25c	6.5
patch	float	bin:0xa260	6.5

## SHOCK_STIFFNESS
patch	float	bin:0xa274	60
patch	float	bin:0xa278	60

## SHOCK_BLOWOUT
patch	float	bin:0xa29c	67

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xa26c	65
patch	float	bin:0xa270	65

## SWAYBAR_STIFFNESS
patch	float	bin:0xa28c	300
patch	float	bin:0xa290	300

## ROLL_CENTER
patch	float	bin:0xa294	7

## TRAVEL
patch	float	bin:0xa254	6
patch	float	bin:0xa258	6

## SPRING_STIFFNESS
patch	float	bin:0xa27c	600
patch	float	bin:0xa280	650

## AERO_CG
patch	float	bin:0xa2a0	48

## SPRING_PROGRESSION
patch	float	bin:0xa24c	8
patch	float	bin:0xa250	8

## TRACK_WIDTH
patch	float	bin:0xa264	1.616
patch	float	bin:0xa268	1.59

## SHOCK_DIGRESSION
patch	float	bin:0xa244	0.1
patch	float	bin:0xa248	0.1

## RENDER_MOTION
patch	float	bin:0xa2a4	0.5

## AERO_COEFFICIENT
patch	float	bin:0xa2ac	0.22

## FRONT_AXLE
patch	float	bin:0xa2a8	1.35

## FRONT_WEIGHT_BIAS
patch	float	bin:0xa2b0	54

##---------------------------------------------------
## Node: engine/default/gto
##---------------------------------------------------

## 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:0x13a34	0.7
patch	float	bin:0x13a38	0.8
patch	float	bin:0x13a3c	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:0x13a4c	900

## 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:0x139f8	166
patch	float	bin:0x139fc	259
patch	float	bin:0x13a00	307
patch	float	bin:0x13a04	335
patch	float	bin:0x13a08	353
patch	float	bin:0x13a0c	365
patch	float	bin:0x13a10	361
patch	float	bin:0x13a14	349
patch	float	bin:0x13a18	283

## 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:0x13a44	7500

## 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:0x13a40	13

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

##---------------------------------------------------
## Node: engine/default/gto/gto_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x14334	0.7
patch	float	bin:0x14338	0.8
patch	float	bin:0x1433c	0.9

## IDLE
patch	float	bin:0x1434c	900

## TORQUE
patch	float	bin:0x142f8	169
patch	float	bin:0x142fc	323
patch	float	bin:0x14300	485
patch	float	bin:0x14304	692
patch	float	bin:0x14308	775
patch	float	bin:0x1430c	728
patch	float	bin:0x14310	664
patch	float	bin:0x14314	636
patch	float	bin:0x14318	593

## MAX_RPM
patch	float	bin:0x14344	7500

## FLYWHEEL_MASS
patch	float	bin:0x14340	13

## RED_LINE
patch	float	bin:0x14348	6500

##---------------------------------------------------
## Node: induction/default/gto_base
##---------------------------------------------------

## 0x1f158097; unexplained; commonly 0.25
patch	float	bin:0x11e00	1

## HIGH_BOOST
patch	float	bin:0x11e14	0

## LOW_BOOST
patch	float	bin:0x11dfc	0

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

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

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

## BOOST_VARIANCE*; pressure drop/rise in chamber
patch	float	bin:0x11e04	0

##---------------------------------------------------
## Node: induction/default/gto_base/gto_top
##---------------------------------------------------

## 0x1f158097; unexplained; commonly 0.25
patch	float	bin:0x12298	0.24

## HIGH_BOOST
patch	float	bin:0x122ac	0.22

## LOW_BOOST
patch	float	bin:0x12294	0.2

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x122a4	1.5

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

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

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

##---------------------------------------------------
## Node: tires/default/gto
##---------------------------------------------------

## SECTION_WIDTH; self-explanatory; measured in milimetres
## common value range N/A since it differs per car
patch	float	bin:0x22eb0	245
patch	float	bin:0x22eb4	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:0x22e78	0.1
patch	float	bin:0x22e7c	0.35
patch	float	bin:0x22e80	0.65
patch	float	bin:0x22e84	0.85

## 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:0x22e90	1.8
patch	float	bin:0x22e94	1.8

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

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

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x22e98	35
patch	float	bin:0x22e9c	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:0x22ea8	2
patch	float	bin:0x22eac	2

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

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

##---------------------------------------------------
## Node: tires/default/gto/gto_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x23720	245
patch	float	bin:0x23724	275

## YAW_CONTROL
patch	float	bin:0x236e8	0.1
patch	float	bin:0x236ec	0.5
patch	float	bin:0x236f0	0.7
patch	float	bin:0x236f4	1

## DYNAMIC_GRIP
patch	float	bin:0x23700	1.9
patch	float	bin:0x23704	2

## RIM_SIZE
patch	float	bin:0x23710	20
patch	float	bin:0x23714	20

## YAW_SPEED
patch	float	bin:0x2372c	0.36

## ASPECT_RATIO
patch	float	bin:0x23708	35
patch	float	bin:0x2370c	30

## STATIC_GRIP
patch	float	bin:0x23718	2.1
patch	float	bin:0x2371c	2.2

## GRIP_SCALE
patch	float	bin:0x236f8	1.1
patch	float	bin:0x236fc	1.2

## STEERING
patch	float	bin:0x23728	1.1

##---------------------------------------------------
## Node: transmission/default/gto
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1e080	3.28
patch	float	bin:0x1e084	0
patch	float	bin:0x1e088	3.01
patch	float	bin:0x1e08c	2.07
patch	float	bin:0x1e090	1.43
patch	float	bin:0x1e094	1.14
patch	float	bin:0x1e098	0.95
patch	float	bin:0x1e09c	0.78

## 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:0x1e0ac	0.7
patch	float	bin:0x1e0b0	0.7
patch	float	bin:0x1e0b4	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:0x1e0c0	0.9
patch	float	bin:0x1e0c4	1
patch	float	bin:0x1e0c8	1
patch	float	bin:0x1e0cc	1
patch	float	bin:0x1e0d0	1
patch	float	bin:0x1e0d4	1
patch	float	bin:0x1e0d8	1
patch	float	bin:0x1e0dc	1

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

## 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:0x1e0e8	0

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

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

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

##---------------------------------------------------
## Node: transmission/default/gto/gto_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x1f9c4	3.07
patch	float	bin:0x1f9c8	0
patch	float	bin:0x1f9cc	2.95
patch	float	bin:0x1f9d0	1.9
patch	float	bin:0x1f9d4	1.43
patch	float	bin:0x1f9d8	1.01
patch	float	bin:0x1f9dc	0.9
patch	float	bin:0x1f9e0	0.75

## DIFFERENTIAL
patch	float	bin:0x1f9f0	0.8
patch	float	bin:0x1f9f4	0.8
patch	float	bin:0x1f9f8	0

## GEAR_EFFICIENCY
patch	float	bin:0x1fa04	0.95
patch	float	bin:0x1fa08	1
patch	float	bin:0x1fa0c	1
patch	float	bin:0x1fa10	1
patch	float	bin:0x1fa14	1
patch	float	bin:0x1fa18	1
patch	float	bin:0x1fa1c	1
patch	float	bin:0x1fa20	1

## TORQUE_CONVERTER
patch	float	bin:0x1fa28	0.4

## TORQUE_SPLIT
patch	float	bin:0x1fa2c	0

## CLUTCH_SLIP
patch	float	bin:0x1fa30	0.8

## SHIFT_SPEED
patch	float	bin:0x1fa38	0.2

## FINAL_GEAR
patch	float	bin:0x1fa3c	2.9