##---------------------------------------------------
## 2018 Dodge Challenger SRT Demon
## Replacement for Mercedes-Benz SL500
## Attributes.bin patch script
##---------------------------------------------------

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

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

## TurboSND[0]
patch	int32	bin:0x3094c	0x87847a68

## TurboSND[1]
patch	int32	bin:0x3095c	0x87847a68

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

## TurboSND[3]
patch	int32	bin:0x3097c	0x87847a68

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

## MASS; self-explanatory; mass of car expressed in kilograms
patch	float	bin:0x308f8	1691 #-250kg

## engineaudio[0]
patch	int32	bin:0x30a84	0xf6a7f776

## engineaudio[1]
patch	int32	bin:0x30a90	0xf6a7f776

## engineaudio[2]
patch	int32	bin:0x30a9c	0xf6a7f776

## 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:0x308c0	1.1
patch	float	bin:0x308c4	2
patch	float	bin:0x308c8	1.1
patch	float	bin:0x308cc	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:0x30938	70
patch	float	bin:0x3093c	95

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

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

## RideHeight; in-race only; visible body height
patch	float	bin:0x3e16c	3

## ReflectionOffset
patch	float	bin:0x3e164	0.14

## 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:0x3e080	1.555
patch	float	bin:0x3e084	0.977
patch	float	bin:0x3e088	0
patch	float	bin:0x3e08c	0.35

## front right
patch	float	bin:0x3e090	1.555
patch	float	bin:0x3e094	-0.977
patch	float	bin:0x3e098	0
patch	float	bin:0x3e09c	0.35

## rear right
patch	float	bin:0x3e0a0	-1.39
patch	float	bin:0x3e0a4	-0.99
patch	float	bin:0x3e0a8	0
patch	float	bin:0x3e0ac	0.36

## rear left
patch	float	bin:0x3e0b0	-1.39
patch	float	bin:0x3e0b4	0.99
patch	float	bin:0x3e0b8	0
patch	float	bin:0x3e0bc	0.36

## BodySquat; maximum vector-based movement of rear of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x3e11c	2
patch	float	bin:0x3e120	0.6
patch	float	bin:0x3e124	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:0x3e168	0.18

## 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:0x3e160	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:0x3e198	0.11
patch	float	bin:0x3e19c	0.11

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3e14c	0.315
patch	float	bin:0x3e150	0.315
patch	float	bin:0x3e154	0.315
patch	float	bin:0x3e158	0.315

## WheelSpokeCount; number of spokes in rims
## common value range N/A since it differs per car
patch	int8	bin:0x3e18c	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:0x3e178	0
patch	int8	bin:0x3e179	0
patch	int8	bin:0x3e17a	0
patch	int8	bin:0x3e17b	0
patch	int8	bin:0x3e17c	0
patch	int8	bin:0x3e17d	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:0x3e110	1
patch	float	bin:0x3e114	1
patch	float	bin:0x3e118	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:0x3e186	0
patch	int8	bin:0x3e187	0
patch	int8	bin:0x3e188	0
patch	int8	bin:0x3e189	0
patch	int8	bin:0x3e18a	0
patch	int8	bin:0x3e18b	0

##---------------------------------------------------
## Node: brakes/default/sl500
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x24484	500
patch	float	bin:0x24488	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:0x2448c	900

## 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:0x2447c	1
patch	float	bin:0x24480	3

##---------------------------------------------------
## Node: brakes/default/sl500/sl500_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x247b8	600
patch	float	bin:0x247bc	725

## EBRAKE
patch	float	bin:0x247c0	1000

## BRAKE_LOCK
patch	float	bin:0x247b0	1
patch	float	bin:0x247bc	3.45

##---------------------------------------------------
## Node: chassis/default/sl500
##---------------------------------------------------

## 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:0x8e34	2.95

## 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:0x8e50	0.376

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x8e20	24
patch	float	bin:0x8e24	24

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

## 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:0x8e10	50
patch	float	bin:0x8e14	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:0x8e38	6

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

## 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:0x8e28	300
patch	float	bin:0x8e2c	350

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

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x8e18	525
patch	float	bin:0x8e1c	575

## 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:0x8e3c	49

## 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:0x8de8	7
patch	float	bin:0x8dec	8

## TRACK_WIDTH; distance between wheel centers based on a single axle
## common value range N/A since it differs per car
patch	float	bin:0x8e00	1.671
patch	float	bin:0x8e04	1.668

## 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:0x8de0	0.25
patch	float	bin:0x8de4	0.25

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

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

##---------------------------------------------------
## Node: chassis/default/sl500/sl500_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0xa9d8	2.95

## DRAG_COEFFICIENT
patch	float	bin:0xa9f4	0.4

## SHOCK_VALVING
patch	float	bin:0xa9c4	24
patch	float	bin:0xa9c8	24

## RIDE_HEIGHT
patch	float	bin:0xa99c	7.5
patch	float	bin:0xa9a0	7.5

## SHOCK_STIFFNESS
patch	float	bin:0xa9b4	60
patch	float	bin:0xa9b8	60

## SHOCK_BLOWOUT
patch	float	bin:0xa9dc	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xa9ac	65
patch	float	bin:0xa9b0	65

## SWAYBAR_STIFFNESS
patch	float	bin:0xa9cc	300
patch	float	bin:0xa9d0	300

## ROLL_CENTER
patch	float	bin:0xa9d4	7.5

## TRAVEL
patch	float	bin:0xa994	6.5
patch	float	bin:0xa998	6.5

## SPRING_STIFFNESS
patch	float	bin:0xa9bc	600
patch	float	bin:0xa9c0	650

## AERO_CG
patch	float	bin:0xa9e0	49

## SPRING_PROGRESSION
patch	float	bin:0xa98c	9
patch	float	bin:0xa990	9.45

## TRACK_WIDTH
patch	float	bin:0xa9a4	1.671
patch	float	bin:0xa9a8	1.668

## SHOCK_DIGRESSION
patch	float	bin:0xa984	0.1
patch	float	bin:0xa988	0.1

## RENDER_MOTION
patch	float	bin:0xa9e4	0.5

## AERO_COEFFICIENT
patch	float	bin:0xa9ec	0.265

## FRONT_AXLE
patch	float	bin:0xa9e8	1.4

## FRONT_WEIGHT_BIAS
patch	float	bin:0xa9f0	54

##---------------------------------------------------
## Node: engine/default/sl500
##---------------------------------------------------

## 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:0x12ef4	0.7
patch	float	bin:0x12ef8	0.8
patch	float	bin:0x12efc	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:0x12f0c	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:0x12eb8	295
patch	float	bin:0x12ebc	453
patch	float	bin:0x12ec0	552
patch	float	bin:0x12ec4	601
patch	float	bin:0x12ec8	637
patch	float	bin:0x12ecc	655
patch	float	bin:0x12ed0	643
patch	float	bin:0x12ed4	614
patch	float	bin:0x12ed8	582

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

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

##---------------------------------------------------
## Node: engine/default/sl500/sl500_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x14214	0.7
patch	float	bin:0x14218	0.8
patch	float	bin:0x1421c	0.9

## IDLE
patch	float	bin:0x1422c	900

## TORQUE
patch	float	bin:0x141d8	305
patch	float	bin:0x141dc	548
patch	float	bin:0x141e0	626
patch	float	bin:0x141e4	736
patch	float	bin:0x141e8	815
patch	float	bin:0x141ec	853
patch	float	bin:0x141f0	821
patch	float	bin:0x141f4	768
patch	float	bin:0x141f8	712

## MAX_RPM
patch	float	bin:0x14224	7500

## FLYWHEEL_MASS
patch	float	bin:0x14220	12

## RED_LINE
patch	float	bin:0x14228	6500

##---------------------------------------------------
## Node: induction/default/sl500_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11df8	0.15

## LOW_BOOST
patch	float	bin:0x11de4	0.15

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11df0	2.2

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

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

##---------------------------------------------------
## Node: induction/default/sl500_base/sl500_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x12194	0.2

## LOW_BOOST
patch	float	bin:0x1217c	0.2

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

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

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

##---------------------------------------------------
## Node: tires/default/sl500
##---------------------------------------------------

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

## YAW_CONTROL; self-explanatory; yaw control ratio
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x226a8	0.1
patch	float	bin:0x226ac	0.3
patch	float	bin:0x226b0	0.5
patch	float	bin:0x226b4	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:0x226c0	1.85
patch	float	bin:0x226c4	1.875

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

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

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x226c8	40
patch	float	bin:0x226cc	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:0x226d8	2.1
patch	float	bin:0x226dc	2.1

## GRIP_SCALE; tire grip scaling per axle
## common value range is 2x1.00-2x1.10
patch	float	bin:0x226b8	1.125
patch	float	bin:0x226bc	1.175

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

##---------------------------------------------------
## Node: tires/default/sl500/sl500_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x23630	315
patch	float	bin:0x23634	315

## YAW_CONTROL
patch	float	bin:0x235f8	0.1
patch	float	bin:0x235fc	0.5
patch	float	bin:0x23600	0.7
patch	float	bin:0x23604	1.2

## DYNAMIC_GRIP
patch	float	bin:0x23610	1.9
patch	float	bin:0x23614	1.95

## RIM_SIZE
patch	float	bin:0x23620	18
patch	float	bin:0x23624	18

## YAW_SPEED
patch	float	bin:0x2363c	0.4

## ASPECT_RATIO
patch	float	bin:0x23618	40
patch	float	bin:0x2361c	40

## STATIC_GRIP
patch	float	bin:0x23628	2.2
patch	float	bin:0x2362c	2.25

## GRIP_SCALE
patch	float	bin:0x23608	1.3
patch	float	bin:0x2360c	1.3

## STEERING
patch	float	bin:0x23638	1.1

##---------------------------------------------------
## Node: transmission/default/sl500
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1e944	2.9
patch	float	bin:0x1e948	0
patch	float	bin:0x1e94c	2.26
patch	float	bin:0x1e950	1.58
patch	float	bin:0x1e954	1.19
patch	float	bin:0x1e958	1
patch	float	bin:0x1e95c	0.77
patch	float	bin:0x1e960	0.63

## 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:0x1e970	0.8
patch	float	bin:0x1e974	0.8
patch	float	bin:0x1e978	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:0x1e984	1
patch	float	bin:0x1e988	1
patch	float	bin:0x1e98c	1
patch	float	bin:0x1e990	1
patch	float	bin:0x1e994	1
patch	float	bin:0x1e998	0.97
patch	float	bin:0x1e99c	0.95
patch	float	bin:0x1e9a0	0.93

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

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

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

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

##---------------------------------------------------
## Node: transmission/default/sl500/sl500_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x1ff70	2.6
patch	float	bin:0x1ff74	0
patch	float	bin:0x1ff78	3.58
patch	float	bin:0x1ff7c	1.9
patch	float	bin:0x1ff80	1.27
patch	float	bin:0x1ff84	1.02
patch	float	bin:0x1ff88	0.85
patch	float	bin:0x1ff8c	0.7

## DIFFERENTIAL
patch	float	bin:0x1ff9c	0.8
patch	float	bin:0x1ffa0	0.8
patch	float	bin:0x1ffa4	0

## GEAR_EFFICIENCY
patch	float	bin:0x1ffb0	1
patch	float	bin:0x1ffb4	1
patch	float	bin:0x1ffb8	1
patch	float	bin:0x1ffbc	1
patch	float	bin:0x1ffc0	1
patch	float	bin:0x1ffc4	1
patch	float	bin:0x1ffc8	1
patch	float	bin:0x1ffcc	1

## TORQUE_CONVERTER
patch	float	bin:0x1ffd4	0.4

## TORQUE_SPLIT
patch	float	bin:0x1ffd8	0

## CLUTCH_SLIP
patch	float	bin:0x1ffdc	0.85

## SHIFT_SPEED
patch	float	bin:0x1ffe4	0.1

## FINAL_GEAR
patch	float	bin:0x1ffe8	3.1