##---------------------------------------------------
## 1992 Nissan Silvia (S13)
## Replacement for Mazda RX-8
## Attributes.bin patch script
##---------------------------------------------------

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

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

## turbosfx; upgrade_turbo*[0]
patch	int32	bin:0x30b5c	0x9e45f0b2

## turbosfx; upgrade_turbo*[1]
patch	int32	bin:0x30b6c	0x664ecb21

## turbosfx; upgrade_turbo*[2]
patch	int32	bin:0x30b7c	0xaa6ba0b0

## turbosfx; upgrade_turbo*[3]
patch	int32	bin:0x30b8c	0x3f333115

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

## mass
patch	float	bin:0x30b08	1150

## engineaudio[0]
patch	int32	bin:0x30c94	0x51db6dd4

## engineaudio[1]
patch	int32	bin:0x30ca0	0xc34e4550

## engineaudio[2]
patch	int32	bin:0x30cac	0x8d18f209

## 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:0x30ad0	1
patch	float	bin:0x30ad4	2
patch	float	bin:0x30ad8	1
patch	float	bin:0x30adc	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:0x30b48	35
patch	float	bin:0x30b4c	96

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

## ride height
patch	float	bin:0x3fdcc	-0.05

## reflection
patch	float	bin:0x3fdc4	0.06

## wheel_position*
## 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:0x3fce0	1.285
patch	float	bin:0x3fce4	0.88
patch	float	bin:0x3fce8	0
patch	float	bin:0x3fcec	0.317

## front right
patch	float	bin:0x3fcf0	1.285
patch	float	bin:0x3fcf4	-0.88
patch	float	bin:0x3fcf8	0
patch	float	bin:0x3fcfc	0.317

## rear right
patch	float	bin:0x3fd00	-1.183
patch	float	bin:0x3fd04	-0.88
patch	float	bin:0x3fd08	0
patch	float	bin:0x3fd0c	0.317

## rear left
patch	float	bin:0x3fd10	-1.183
patch	float	bin:0x3fd14	0.88
patch	float	bin:0x3fd18	0
patch	float	bin:0x3fd1c	0.317

## body_kits_rear_axle_wheel_movement*
patch	int8	bin:0x3fdd8	0
patch	int8	bin:0x3fdd9	0
patch	int8	bin:0x3fdda	0
patch	int8	bin:0x3fddb	20
patch	int8	bin:0x3fddc	0
patch	int8	bin:0x3fddd	0

## body_kits_front_axle_wheel_movement*
patch	int8	bin:0x3fde6	0
patch	int8	bin:0x3fde7	0
patch	int8	bin:0x3fde8	0
patch	int8	bin:0x3fde9	19
patch	int8	bin:0x3fdea	0
patch	int8	bin:0x3fdeb	0

## rear_axle_camber*
patch	float	bin:0x3fdc8	1.32

## front_axle_camber*
patch	float	bin:0x3fdc0	1.2

## frontend_reflections*
patch	float	bin:0x3fdf8	0.139
patch	float	bin:0x3fdfc	0.14

## tire_width*
patch	float	bin:0x3fdac	0.225
patch	float	bin:0x3fdb0	0.225
patch	float	bin:0x3fdb4	0.225
patch	float	bin:0x3fdb8	0.225

## wheel_spin_rate*
patch	int8	bin:0x3fdec	6

## BodyDive; maximum vector-based movement of front of car body
patch	float	bin:0x3fd88	1
patch	float	bin:0x3fd8c	0.5
patch	float	bin:0x3fd90	6

## BodyRoll; maximum vector-based movement of entire car body towards left or right
## simply put - car body leaning sideways
patch	float	bin:0x3fd70	1
patch	float	bin:0x3fd74	1
patch	float	bin:0x3fd78	8

## BodySquat; maximum vector-based movement of rear of car body
patch	float	bin:0x3fd7c	1
patch	float	bin:0x3fd80	0.5
patch	float	bin:0x3fd84	7

##---------------------------------------------------
## Node: brakes/default/rx8
##---------------------------------------------------

## brakes
patch	float	bin:0x244e8	275
patch	float	bin:0x244ec	350

## brakes_BHP*
patch	float	bin:0x244f0	350

## brake_lock
patch	float	bin:0x244e0	1
patch	float	bin:0x244e4	3.2

##---------------------------------------------------
## Node: brakes/default/rx8/rx8_1*
##---------------------------------------------------

## brakes
patch	float	bin:0x24678	500
patch	float	bin:0x2467c	600

## brakes_BHP*
patch	float	bin:0x24680	750

## brake_lock
patch	float	bin:0x24670	1
patch	float	bin:0x24674	3.35

##---------------------------------------------------
## Node: chassis/default/rx8
##---------------------------------------------------

## wheel_base
patch	float	bin:0x92bc	2.475

## drag_coeff
patch	float	bin:0x92d8	0.33

## ride_height
patch	float	bin:0x9280	8
patch	float	bin:0x9284	8

## SHOCK_STIFFNESS
patch	float	bin:0x9298	35
patch	float	bin:0x929c	35

## SHOCK_EXT_STIFFNESS
patch	float	bin:0x9290	45
patch	float	bin:0x9294	45

## roll_center
patch	float	bin:0x92b8	10

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x92a0	250
patch	float	bin:0x92a4	250

## 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:0x92c4	48

## 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:0x9288	1.465
patch	float	bin:0x928c	1.46

## 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:0x92c8	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:0x92d4	52.5

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

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

## SHOCK_VALVING; maximum air pressure in the shock absorber air chamber in pounds per square inch
## common value range is 2x15-2x24
patch	float	bin:0x92a8	15
patch	float	bin:0x92ac	15

## SHOCK_BLOWOUT; maximum length by which a shock can be extended if car wheels don't have contact with road surface; stock same as upgraded
## common value range is 5-8
patch	float	bin:0x92c0	6

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

## TRAVEL; maximum size by which a spring can compress in inches; stock higher than upgraded
## common value range is 2x6-2x8; acceleration and mass dependent
patch	float	bin:0x9278	8
patch	float	bin:0x927c	8

## SPRING_PROGRESSION; maximum compression speed/rate for spring to achieve maximum stiffness; stock smaller than upgraded
## common value range is 2x5-2x8
patch	float	bin:0x9270	5
patch	float	bin:0x9274	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:0x9268	0.25
patch	float	bin:0x926c	0.25

##---------------------------------------------------
## Node: chassis/default/rx8/rx8_1*
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0xa8f0	2.475

## DRAG_COEFFICIENT
patch	float	bin:0xa90c	0.38

## SHOCK_VALVING
patch	float	bin:0xa8dc	24
patch	float	bin:0xa8e0	24

## RIDE_HEIGHT
patch	float	bin:0xa8b4	7.8
patch	float	bin:0xa8b8	8

## SHOCK_STIFFNESS
patch	float	bin:0xa8cc	55
patch	float	bin:0xa8d0	55

## SHOCK_BLOWOUT
patch	float	bin:0xa8f4	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xa8c4	65
patch	float	bin:0xa8c8	65

## SWAYBAR_STIFFNESS
patch	float	bin:0xa8e4	325
patch	float	bin:0xa8e8	300

## ROLL_CENTER
patch	float	bin:0xa8ec	9

## TRAVEL
patch	float	bin:0xa8ac	6
patch	float	bin:0xa8b0	6

## SPRING_STIFFNESS
patch	float	bin:0xa8d4	600
patch	float	bin:0xa8d8	525

## AERO_CG
patch	float	bin:0xa8f8	48

## SPRING_PROGRESSION
patch	float	bin:0xa8a4	7
patch	float	bin:0xa8a8	7

## TRACK_WIDTH
patch	float	bin:0xa8bc	1.465
patch	float	bin:0xa8c0	1.46

## SHOCK_DIGRESSION
patch	float	bin:0xa89c	0.2
patch	float	bin:0xa8a0	0.2

## RENDER_MOTION
patch	float	bin:0xa8fc	0.5

## AERO_COEFFICIENT
patch	float	bin:0xa904	0.27

## FRONT_AXLE
patch	float	bin:0xa900	1.2

## FRONT_WEIGHT_BIAS
patch	float	bin:0xa908	54

##---------------------------------------------------
## Node: engine/default/rx8
##---------------------------------------------------

## engine_braking
patch	float	bin:0x13554	0.7
patch	float	bin:0x13558	0.8
patch	float	bin:0x1355c	0.9

## idle
patch	float	bin:0x1356c	900

## torque
patch	float	bin:0x13518	65
patch	float	bin:0x1351c	96
patch	float	bin:0x13520	117
patch	float	bin:0x13524	155
patch	float	bin:0x13528	171
patch	float	bin:0x1352c	164
patch	float	bin:0x13530	158
patch	float	bin:0x13534	139
patch	float	bin:0x13538	115

## max_RPM
patch	float	bin:0x13564	7500

## engine_inertia*
patch	float	bin:0x13560	15

## red_line
patch	float	bin:0x13568	6550

##---------------------------------------------------
## Node: engine/default/rx8/rx8_1*
##---------------------------------------------------

## engine_braking
patch	float	bin:0x14514	0.75
patch	float	bin:0x14518	0.80
patch	float	bin:0x1451c	0.85

## idle
patch	float	bin:0x1452c	900

## torque
patch	float	bin:0x144d8	160
patch	float	bin:0x144dc	295
patch	float	bin:0x144e0	340
patch	float	bin:0x144e4	398
patch	float	bin:0x144e8	451
patch	float	bin:0x144ec	435
patch	float	bin:0x144f0	410
patch	float	bin:0x144f4	399
patch	float	bin:0x144f8	360

## max_RPM
patch	float	bin:0x14524	7600

## engine_inertia*
patch	float	bin:0x14520	10

## red_line
patch	float	bin:0x14528	6600

##---------------------------------------------------
## Node: induction/default/rx8_base
##---------------------------------------------------

## AIR_PRESSURE*; commonly 0.25
patch	float	bin:0x11d3c	0.25

## HIGH_BOOST
patch	float	bin:0x11d50	0.1

## LOW_BOOST
patch	float	bin:0x11d38	0.1

## INDUCTION_MULTIPLIER*; always higher value for stock
patch	float	bin:0x11d48	2

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

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

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

##---------------------------------------------------
## Node: induction/default/rx8_base/rx8_top
##---------------------------------------------------

## AIR_PRESSURE*; commonly 0.25
patch	float	bin:0x12030	0.25

## HIGH_BOOST
patch	float	bin:0x12044	0.2

## LOW_BOOST
patch	float	bin:0x1202c	0.25

## INDUCTION_MULTIPLIER*; always higher value for stock
patch	float	bin:0x1203c	1.6

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

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

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

##---------------------------------------------------
## Node: tires/default/rx8
##---------------------------------------------------

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

## 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:0x229c8	0.025
patch	float	bin:0x229cc	0.1
patch	float	bin:0x229d0	0.2
patch	float	bin:0x229d4	0.3

## 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:0x229e0	1.3
patch	float	bin:0x229e4	1.3

## RIM_SIZE; self-explanatory; measured in inches
## common value range is 2x16-2x19
patch	float	bin:0x229f0	15
patch	float	bin:0x229f4	15

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

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

## 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:0x229f8	1.5
patch	float	bin:0x229fc	1.6

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

##---------------------------------------------------
## Node: tires/default/rx8/rx8_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x237c0	235
patch	float	bin:0x237c4	235

## YAW_CONTROL
patch	float	bin:0x23788	0.1
patch	float	bin:0x2378c	0.8
patch	float	bin:0x23790	0.9
patch	float	bin:0x23794	1.2

## DYNAMIC_GRIP
patch	float	bin:0x237a0	1.75
patch	float	bin:0x237a4	1.8

## RIM_SIZE
patch	float	bin:0x237b0	15
patch	float	bin:0x237b4	15

## YAW_SPEED
patch	float	bin:0x237cc	0.3

## ASPECT_RATIO
patch	float	bin:0x237a8	55
patch	float	bin:0x237ac	55

## STATIC_GRIP
patch	float	bin:0x237b8	1.95
patch	float	bin:0x237bc	2

## GRIP_SCALE
patch	float	bin:0x23798	1
patch	float	bin:0x2379c	1.1

## STEERING
patch	float	bin:0x237c8	0.96

##---------------------------------------------------
## Node: transmission/default/rx8
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1ebd8	3.382
patch	float	bin:0x1ebdc	0
patch	float	bin:0x1ebe0	3.321
patch	float	bin:0x1ebe4	1.902
patch	float	bin:0x1ebe8	1.308
patch	float	bin:0x1ebec	1
patch	float	bin:0x1ebf0	0.759

## 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:0x1ec18	1
patch	float	bin:0x1ec1c	1
patch	float	bin:0x1ec20	1
patch	float	bin:0x1ec24	1
patch	float	bin:0x1ec28	1
patch	float	bin:0x1ec2c	1
patch	float	bin:0x1ec30	1

## 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:0x1ec04	0.65
patch	float	bin:0x1ec08	0.65
patch	float	bin:0x1ec0c	0

## TORQUE_CONVERTER; percentage ratio of torque converter efficiency with automatic transmission usage
## common value range is 0.20-0.80
patch	float	bin:0x1ec3c	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:0x1ec40	0

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

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

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

##---------------------------------------------------
## Node: transmission/default/rx8/rx8_top
##---------------------------------------------------

## GEAR_RATIO
patch	float	bin:0x1f6ac	3.727
patch	float	bin:0x1f6b0	0
patch	float	bin:0x1f6b4	4.11
patch	float	bin:0x1f6b8	2.315
patch	float	bin:0x1f6bc	1.542
patch	float	bin:0x1f6c0	1.179
patch	float	bin:0x1f6c4	1
patch	float	bin:0x1f6c8	0.84

## GEAR_EFFICIENCY
patch	float	bin:0x1f6ec	1
patch	float	bin:0x1f6f0	1
patch	float	bin:0x1f6f4	1
patch	float	bin:0x1f6f8	1
patch	float	bin:0x1f6fc	1
patch	float	bin:0x1f700	1
patch	float	bin:0x1f704	1
patch	float	bin:0x1f708	1

## DIFFERENTIAL
patch	float	bin:0x1f6d8	0.75
patch	float	bin:0x1f6dc	0.8
patch	float	bin:0x1f6e0	0

## TORQUE_CONVERTER
patch	float	bin:0x1f710	0.4

## TORQUE_SPLIT
patch	float	bin:0x1f714	0

## CLUTCH_SLIP
patch	float	bin:0x1f718	0.8

## SHIFT_SPEED
patch	float	bin:0x1f720	0.2

## FINAL_GEAR
patch	float	bin:0x1f724	2.36
