##---------------------------------------------------
## 2014 Chevrolet Corvette C7.R
## Replacement for Chevrolet Camaro SS
## Attributes.bin patch script
##---------------------------------------------------

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

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

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

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

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

## engineaudio[0]
patch	int32	bin:0x2f8d8	0xbb11a713

## 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:0x2f7c0	1
patch	float	bin:0x2f7c4	2
patch	float	bin:0x2f7c8	1
patch	float	bin:0x2f7cc	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:0x2f838	90
patch	float	bin:0x2f83c	95

## nos[0]
patch	int32	bin:0x2à81c	0x40826f5e

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

## BodyDive; maximum vector-based movement of front of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x41018	1
patch	float	bin:0x4101c	0.4
patch	float	bin:0x41020	6

## RideHeight; in-race only; visible body height
patch	float	bin:0x4105c	-1.5

## 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:0x40f70	1.363
patch	float	bin:0x40f74	1.03
patch	float	bin:0x40f78	0
patch	float	bin:0x40f7c	0.34

## front right
patch	float	bin:0x40f80	1.363
patch	float	bin:0x40f84	-1.03
patch	float	bin:0x40f88	0
patch	float	bin:0x40f8c	0.34

## rear right
patch	float	bin:0x40f90	-1.35
patch	float	bin:0x40f94	-1.03
patch	float	bin:0x40f98	0
patch	float	bin:0x40f9c	0.345

## rear left
patch	float	bin:0x40fa0	-1.35
patch	float	bin:0x40fa4	1.03
patch	float	bin:0x40fa8	0
patch	float	bin:0x40fac	0.345

## BodySquat; maximum vector-based movement of rear of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x4100c	1.3
patch	float	bin:0x41010	0.5
patch	float	bin:0x41014	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:0x41058	0.1

## 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:0x41050	0.1

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

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x4103c	0.265
patch	float	bin:0x41040	0.265
patch	float	bin:0x41044	0.335
patch	float	bin:0x41048	0.335

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x4107c	10

## 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:0x41068	0
patch	int8	bin:0x41069	0
patch	int8	bin:0x4106a	0
patch	int8	bin:0x4106b	0
patch	int8	bin:0x4106c	0
patch	int8	bin:0x4106d	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:0x41000	0.9
patch	float	bin:0x41004	0.5
patch	float	bin:0x41008	4.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:0x41076	0
patch	int8	bin:0x41077	0
patch	int8	bin:0x41078	0
patch	int8	bin:0x41079	0
patch	int8	bin:0x4107a	0
patch	int8	bin:0x4107b	0

##---------------------------------------------------
## Node: brakes/default/camaro
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x2459c	550
patch	float	bin:0x24aa0	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:0x245a4	800

## 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:0x24594	1
patch	float	bin:0x24598	2

##---------------------------------------------------
## Node: chassis/default/camaro
##---------------------------------------------------

## 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:0x95e8	2.708

## 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:0x9604	0.35

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x95d4	18
patch	float	bin:0x95d8	18

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x95ac	7
patch	float	bin:0x95b0	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:0x95c4	80
patch	float	bin:0x95c8	85

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

## SHOCK_EXT_STIFFNESS; maximum shock absorber rebound force
## common value range is 2x40-2x80; acceleration-, downforce- and mass-dependent
patch	float	bin:0x95bc	85
patch	float	bin:0x95c0	85

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

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

## 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:0x95a4	6.5
patch	float	bin:0x95a8	6.5

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x95cc	700
patch	float	bin:0x95d0	750

## 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:0x95f0	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:0x959c	8
patch	float	bin:0x95a0	8.2

## 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:0x95b4	1.71
patch	float	bin:0x95b8	1.722

## 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:0x9594	0.14
patch	float	bin:0x9598	0.15

## 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:0x95f4	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:0x95fc	0.25

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

## 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:0x9600	52

##---------------------------------------------------
## Node: engine/default/camaro
##---------------------------------------------------

## 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:0x13794	0.70
patch	float	bin:0x13798	0.85
patch	float	bin:0x1379c	0.90

## 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:0x137ac	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:0x13758	128
patch	float	bin:0x1375c	165
patch	float	bin:0x13760	263
patch	float	bin:0x13764	368
patch	float	bin:0x13768	412
patch	float	bin:0x1376c	422
patch	float	bin:0x13770	430
patch	float	bin:0x13774	405
patch	float	bin:0x13778	383

## 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:0x137a4	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:0x137a0	10

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

##---------------------------------------------------
## Node: tires/default/camaro
##---------------------------------------------------

## SECTION_WIDTH; self-explanatory; measured in milimetres
## common value range N/A since it differs per car
patch	float	bin:0x22c30	295
patch	float	bin:0x22c34	335

## 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:0x22bf8	0.3
patch	float	bin:0x22bfc	0.75
patch	float	bin:0x22c00	1
patch	float	bin:0x22c04	1.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:0x22c10	2
patch	float	bin:0x22c14	2

## RIM_SIZE; self-explanatory; measured in inches
## common value range is 2x16-2x19
patch	float	bin:0x22c20	18
patch	float	bin:0x22c24	18

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

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

## 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:0x22c28	2.15
patch	float	bin:0x22c2c	2.2

## GRIP_SCALE; tire grip scaling per axle
## common value range is 2x1.00-2x1.10
patch	float	bin:0x22c08	1.01
patch	float	bin:0x22c0c	1.05

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

##---------------------------------------------------
## Node: transmission/default/camaro
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1eff8	3.82
patch	float	bin:0x1effc	0.00
patch	float	bin:0x1f000	3.15
patch	float	bin:0x1f004	2
patch	float	bin:0x1f008	1.56
patch	float	bin:0x1f00c	1.24
patch	float	bin:0x1f010	1.03
patch	float	bin:0x1f014	0.85

## 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:0x1f024	0.6
patch	float	bin:0x1f028	0.65
patch	float	bin:0x1f02c	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:0x1f038	0.85
patch	float	bin:0x1f03c	1.00
patch	float	bin:0x1f040	1.00
patch	float	bin:0x1f044	1.00
patch	float	bin:0x1f048	1.00
patch	float	bin:0x1f04c	1.00
patch	float	bin:0x1f050	1.00
patch	float	bin:0x1f054	1.00
patch	float	bin:0x1f058	1.00

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

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

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

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

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