##---------------------------------------------------
## 2012 RUF CTR3
## Replacement for Porsche 911 GT2
## Attributes.bin patch script
##---------------------------------------------------

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

##---------------------------------------------------
## Node: pvehicle/default/cars/racers/911gt2
##---------------------------------------------------

## TurboSND
patch	int32	bin:0x34160	0x2b16df5d

## VerbalType
patch	int32	bin:0x34100	0x10000000

## MASS
patch	float	bin:0x340f8	1400

## engineaudio
patch   int32   bin:0x341ec     0x99a002c7

## TENSOR_SCALE
patch	float	bin:0x340c0	1
patch	float	bin:0x340c4	2
patch	float	bin:0x340c8	1
patch	float	bin:0x340cc	0

## HANDLING BARS*;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:0x3414c	95
patch	float	bin:0x34150	100

## nos[0]
#patch	int32	bin:0x34130	0xeec2271a

## nos[1]
#patch	int32	bin:0x3413c     0x40826f5e

##---------------------------------------------------
## Node: ecar/default/racers/911gt2
##---------------------------------------------------

## FECompressions
patch	float	bin:0x3d658     0.18
patch	float	bin:0x3d65c     0.2

## RideHeight
patch	float	bin:0x3d62c	0

## TireOffsets
## front left
patch	float	bin:0x3d540	1.317
patch	float	bin:0x3d544	0.877
patch	float	bin:0x3d548	0
patch	float	bin:0x3d54c	0.345

## front right
patch	float	bin:0x3d550     1.317
patch	float	bin:0x3d554	-0.877
patch	float	bin:0x3d558	0
patch	float	bin:0x3d55c	0.345

## rear right
patch	float	bin:0x3d560	-1.327
patch	float	bin:0x3d564	-0.965
patch	float	bin:0x3d568     0
patch	float	bin:0x3d56c	0.36

## rear left
patch	float	bin:0x3d570	-1.327
patch	float	bin:0x3d574	0.965
patch	float	bin:0x3d578	0
patch	float	bin:0x3d57c	0.36

## WheelSpokeCount
patch	int8	bin:0x3d64c	5

## BodyDive
patch	float	bin:0x3d5e8	1
patch	float	bin:0x3d5ec	0.6
patch	float	bin:0x3d5f0	4

## BodySquat
patch	float	bin:0x3d5dc	1
patch	float	bin:0x3d5e0	0.5
patch	float	bin:0x3d5e4	4

## BodyRoll
patch	float	bin:0x3d5d0	1
patch	float	bin:0x3d5d4	1
patch	float	bin:0x3d5d8	3

## TireSkidWidth
patch	float	bin:0x3d60c	0.255
patch	float	bin:0x3d610	0.255
patch	float	bin:0x3d614	0.335
patch	float	bin:0x3d618	0.335

## CamberRear
patch	float	bin:0x3d628	0.16

## CamberFront
patch	float	bin:0x3d620	0.19

##---------------------------------------------------
## Node: brakes/default/911gt2
##---------------------------------------------------

## BRAKES
patch	float	bin:0x242a4	550
patch	float	bin:0x242a8	600

## EBRAKE
patch	float	bin:0x242ac	700

## BRAKE_LOCK
patch	float	bin:0x2429c	1
patch	float	bin:0x24230	3.2

##---------------------------------------------------
## Node: chassis/default/911gt2
##---------------------------------------------------

## WHEEL_BASE
patch float bin:0x8a20 2.35

## 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:0x89ec 1.506
patch float bin:0x89f0 1.585

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

## 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:0x8a38	54

## 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:0x89dc	6.5
patch	float	bin:0x89e0	6.5

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

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

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

## 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:0x89fc	70
patch	float	bin:0x8a00	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:0x8a24	6

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

## 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:0x8a14	350
patch	float	bin:0x8a18	325

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

## 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:0x8a28	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:0x89d4	7
patch	float	bin:0x89d8	7.5

## 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:0x89cc	0.1
patch	float	bin:0x89d0	0.1

##---------------------------------------------------
## Node: engine/default/911gt2
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x12c54	0.6
patch	float	bin:0x12c58	0.7
patch	float	bin:0x12c5c	0.8

## IDLE
patch	float	bin:0x12c6c	800

## TORQUE
patch	float	bin:0x12c18	108
patch	float	bin:0x12c1c	406
patch	float	bin:0x12c20	553
patch	float	bin:0x12c24	651
patch	float	bin:0x12c28	693
patch	float	bin:0x12c2c	603
patch	float	bin:0x12c30	533
patch	float	bin:0x12c34	523
patch	float	bin:0x12c38	500

## MAX_RPM
patch	float	bin:0x12c64	8600

## FLYWHEEL_MASS
patch	float	bin:0x12c60     10

## RED_LINE
patch	float	bin:0x12c68	7600

##---------------------------------------------------
## Node: transmission/911gt2/911gt2
##---------------------------------------------------

## GEAR_COUNT
patch	int16	bin:0x1dde6	8

## GEAR_RATIO
patch	float	bin:0x1ddec	2.7
patch	float	bin:0x1ddf0	0
patch	float	bin:0x1ddf4	3.5
patch	float	bin:0x1ddf8	1.83
patch	float	bin:0x1ddfc	1.29
patch	float	bin:0x1de00	1.04
patch	float	bin:0x1de04	0.86
patch	float	bin:0x1de08	0.73

## FINAL_GEAR
patch	float	bin:0x1de64     3.53

## 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:0x1de18	0
patch	float	bin:0x1de1c	0.8
patch	float	bin:0x1de20	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:0x1de2c	0.9
patch	float	bin:0x1de30	1
patch	float	bin:0x1de34	0.94
patch	float	bin:0x1de38	0.92
patch	float	bin:0x1de3c	0.9
patch	float	bin:0x1de40	0.88
patch	float	bin:0x1de44	0.87
patch	float	bin:0x1de48	0.85

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

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

##---------------------------------------------------
## Node: induction/default/911gt2
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11c54	0.21

## LOW_BOOST
patch	float	bin:0x11c3c	0.16

## peak_boost*; always higher value for stock
patch	float	bin:0x11c4c	1.6

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

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

## psi_change*; pressure drop/rise in chamber
patch	float	bin:0x11c44	0

##---------------------------------------------------
## Node: tires/default/911gt2
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x22370	255
patch	float	bin:0x22374	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:0x22338	0.1
patch	float	bin:0x2233c	0.5
patch	float	bin:0x22340	1
patch	float	bin:0x22344	1.2

## 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:0x22350	2
patch	float	bin:0x22354	2.1

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

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

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x22358	35
patch	float	bin:0x2235c	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:0x22368	2.2
patch	float	bin:0x2236c	2.3

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

## 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:0x22378	1.05