##---------------------------------------------------
## 2020 Chevrolet Corvette C8.R
## Converted by Eclipse 72rus
## Replacement for Chevrolet Corvette C6R
## Attributes.bin patch script
##---------------------------------------------------

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

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

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

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

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

## RideHeight; in-race only; visible body height
patch float bin:0x4015c -0.25

## ReflectionOffset
patch float bin:0x40154 -0.09

## BodyLiftBalance*
patch float vlt:0x21aa8 0

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

## front left
patch float bin:0x40070 1.284
patch float bin:0x40074 0.99
patch float bin:0x40078 0
patch float bin:0x4007c 0.33

## front right
patch float bin:0x40080 1.284
patch float bin:0x40084 -0.99
patch float bin:0x40088 0
patch float bin:0x4008c 0.33

## rear right
patch float bin:0x40090 -1.3725
patch float bin:0x40094 -0.99
patch float bin:0x40098 0
patch float bin:0x4009c 0.33

## rear left
patch float bin:0x400a0 -1.3725
patch float bin:0x400a4 0.99
patch float bin:0x400a8 0
patch float bin:0x400ac 0.33


## BodySquat; maximum vector-based movement of rear of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x4010c	1
patch	float	bin:0x40110	0.5
patch	float	bin:0x40114	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:0x40158	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:0x40150	0.3

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x4013c	0.255
patch	float	bin:0x40140	0.255
patch	float	bin:0x40144	0.325
patch	float	bin:0x40148	0.325

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x4017c	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:0x40168	0
patch	int8	bin:0x40169	0
patch	int8	bin:0x4016a	0
patch	int8	bin:0x4016b	0
patch	int8	bin:0x4016c	0
patch	int8	bin:0x4016d	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:0x40100	1
patch	float	bin:0x40104	1
patch	float	bin:0x40108	6

## 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:0x40176	0
patch	int8	bin:0x40177	0
patch	int8	bin:0x40178	0
patch	int8	bin:0x40179	0
patch	int8	bin:0x4017a	0
patch	int8	bin:0x4017b	0

##---------------------------------------------------
## Node: brakes/default/corvette/corvettec6r
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x24844	450
patch	float	bin:0x24848	575

## 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:0x2484c	750

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

##---------------------------------------------------
## Node: chassis/default/corvette/corvettec6r
##---------------------------------------------------

## 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:0xa638	2.722

## 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:0xa654	0.4

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

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0xa5fc	6.5
patch	float	bin:0xa600	6.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:0xa614	64
patch	float	bin:0xa618	65

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

## SHOCK_EXT_STIFFNESS; maximum shock absorber rebound force
## common value range is 2x40-2x80; acceleration-, downforce- and mass-dependent
patch	float	bin:0xa60c	72.5
patch	float	bin:0xa610	75

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

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

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

## 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:0xa640	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:0xa5ec	7
patch	float	bin:0xa5f0	6

## 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:0xa5e4	0.2
patch	float	bin:0xa5e8	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:0xa644	0.9

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

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

## 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:0xa650	53

##---------------------------------------------------
## Node: engine/default/corvette/corvettec6r
##---------------------------------------------------

## 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:0x13f14	0.7
patch	float	bin:0x13f18	0.8
patch	float	bin:0x13f1c	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:0x13f2c	1950

## 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:0x13ed8	175
patch	float	bin:0x13edc	259
patch	float	bin:0x13ee0	328
patch	float	bin:0x13ee4	371
patch	float	bin:0x13ee8	400
patch	float	bin:0x13eec	376
patch	float	bin:0x13ef0	352
patch	float	bin:0x13ef4	335
patch	float	bin:0x13ef8	296

## 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:0x13f24	7650

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

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

##---------------------------------------------------
## Node: tires/default/corvette/corvettec6r
##---------------------------------------------------

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

## 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:0x231e8	0.4
patch	float	bin:0x231ec	0.6
patch	float	bin:0x231f0	0.8
patch	float	bin:0x231f4	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:0x23200	2
patch	float	bin:0x23204	2.1

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

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

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

## 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:0x23218	2.15
patch	float	bin:0x2321c	2.25

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

##---------------------------------------------------
## Node: transmission/default/corvette/corvettec6r
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x2030c	3.7
patch	float	bin:0x20310	0
patch	float	bin:0x20314	4.3
patch	float	bin:0x20318	2.65
patch	float	bin:0x2031c	1.8
patch	float	bin:0x20320	1.43
patch	float	bin:0x20324	1.16
patch	float	bin:0x20328	0.92

## 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:0x20338	0
patch	float	bin:0x2033c	0.8
patch	float	bin:0x20340	0

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

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

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

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

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

##---------------------------------------------------
## Node: camerainfo/default/hood/corvettec6r_hood
##---------------------------------------------------

## FOV
patch	float	bin:0x2b608	80
patch	float	bin:0x2b60c	90

## HEIGHT
patch	float	bin:0x2b618	1.25
patch	float	bin:0x2b61c	1.06

## LAG
patch	float	bin:0x2b5f8	0.25
patch	float	bin:0x2b5fc	0.5