##---------------------------------------------------
## 1992 Lada 2108 Samara
## Replacement for Fiat Punto
## Attributes.bin patch script
##---------------------------------------------------

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

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

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

## TurboSND[1]
patch	int32	bin:0x3072c	0x9e45f0b2

## TurboSND[2]
patch	int32	bin:0x3073c	0x664ecb21

## TurboSND[3]
patch	int32	bin:0x3074c	0x664ecb21

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

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

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

## engineaudio[1]
patch	int32	bin:0x308a0	0xc8eb0a3b

## engineaudio[2]
patch	int32	bin:0x308ac	0xb2c77a77

## 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:0x306b0	1
patch	float	bin:0x306b4	2
patch	float	bin:0x306b8	1
patch	float	bin:0x306bc	0

## HANDLING_BARS*
patch	float	bin:0x30708	20
patch	float	bin:0x3070c	70

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

## RideHeight; in-race only; visible body height
patch	float	bin:0x3ddcc	0
patch	float	bin:0x3ddc4	0.03

## 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:0x3dce0	1.24
patch	float	bin:0x3dce4	0.78
patch	float	bin:0x3dce8	0
patch	float	bin:0x3dcec	0.29

## front right
patch	float	bin:0x3dcf0	1.24
patch	float	bin:0x3dcf4	-0.78
patch	float	bin:0x3dcf8	0
patch	float	bin:0x3dcfc	0.29

## rear right
patch	float	bin:0x3dd00	-1.23
patch	float	bin:0x3dd04	-0.78
patch	float	bin:0x3dd08	0
patch	float	bin:0x3dd0c	0.29

## rear left
patch	float	bin:0x3dd10	-1.23
patch	float	bin:0x3dd14	0.78
patch	float	bin:0x3dd18	0
patch	float	bin:0x3dd1c	0.29

## 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:0x3ddd8	0
patch	int8	bin:0x3ddd9	0
patch	int8	bin:0x3ddda	0
patch	int8	bin:0x3dddb	0
patch	int8	bin:0x3dddc	0
patch	int8	bin:0x3dddd	0

## 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:0x3dde6	0
patch	int8	bin:0x3dde7	0
patch	int8	bin:0x3dde8	0
patch	int8	bin:0x3dde9	0
patch	int8	bin:0x3ddea	0
patch	int8	bin:0x3ddeb	0

## BodyDive; maximum vector-based movement of front of car body
patch	float	bin:0x3dd88	1
patch	float	bin:0x3dd8c	0
patch	float	bin:0x3dd90	5

## BodySquat; maximum vector-based movement of rear of car body
patch	float	bin:0x3dd7c	1
patch	float	bin:0x3dd80	1
patch	float	bin:0x3dd84	7

## BodyRoll; maximum vector-based movement of entire car body towards left or right
## simply put - car body leaning sideways
patch	float	bin:0x3dd70	2
patch	float	bin:0x3dd74	1
patch	float	bin:0x3dd78	9

## 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:0x3ddc8	0.15

## 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:0x3ddc0	0.15

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

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3ddac	0.175
patch	float	bin:0x3ddb0	0.175
patch	float	bin:0x3ddb4	0.175
patch	float	bin:0x3ddb8	0.175

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

##---------------------------------------------------
## Node: brakes/default/punto
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x244c0	150
patch	float	bin:0x244c4	120

## 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:0x244c8	200

## 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:0x244b8	0.6
patch	float	bin:0x244bc	0.3

##---------------------------------------------------
## Node: brakes/default/punto/punto_1*
##---------------------------------------------------

## BRAKES
patch	float	bin:0x24880	300
patch	float	bin:0x24884	340

## EBRAKE
patch	float	bin:0x24888	400

## BRAKE_LOCK
patch	float	bin:0x24878	0.7
patch	float	bin:0x2487c	1

##---------------------------------------------------
## Node: chassis/default/punto
##---------------------------------------------------

## 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:0x8dc0	2.46

## 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:0x8ddc	0.36

## 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:0x8dac	14
patch	float	bin:0x8db0	14

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x8d84	9
patch	float	bin:0x8d88	9

## 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:0x8d9c	35
patch	float	bin:0x8da0	30

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

## SHOCK_EXT_STIFFNESS; maximum pressure inside shock absorber in pounds per square inch
## common value range is 2x40-2x80; acceleration and mass dependent
patch	float	bin:0x8d94	41
patch	float	bin:0x8d98	40

## 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:0x8db4	180
patch	float	bin:0x8db8	195

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

## TRAVEL; maximum size by which a spring can compress in inches
## common value range is 2x6-2x8; acceleration and mass dependent
patch	float	bin:0x8d7c	7
patch	float	bin:0x8d80	7

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x8da4	300
patch	float	bin:0x8da8	300

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

## SPRING_PROGRESSION; maximum compression distance for spring to achieve maximum stiffness
## common value range is 2x5-2x8
patch	float	bin:0x8d74	5.8
patch	float	bin:0x8d78	6.1

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

## 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:0x8d6c	0.45
patch	float	bin:0x8d70	0.45

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

## AERO_COEFFICIENT; maximum car downforce in pounds per square inch divided by 1000
## common value range is 0.15-0.30
patch	float	bin:0x8dd4	0.2

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

##---------------------------------------------------
## Node: chassis/default/punto/punto_1*
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0x9bcc	2.46

## DRAG_COEFFICIENT
patch	float	bin:0x9be4	0.345

## SHOCK_VALVING
patch	float	bin:0x9bb8	18
patch	float	bin:0x9bbc	18

## RIDE_HEIGHT
patch	float	bin:0x9b90	6.5
patch	float	bin:0x9b94	6.5

## SHOCK_STIFFNESS
patch	float	bin:0x9ba8	50
patch	float	bin:0x9bac	52

## SHOCK_BLOWOUT
patch	float	bin:0x9bd0	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0x9ba0	55
patch	float	bin:0x9ba4	59

## SWAYBAR_STIFFNESS
patch	float	bin:0x9bc0	300
patch	float	bin:0x9bc4	300

## ROLL_CENTER
patch	float	bin:0x9bc8	8

## TRAVEL
patch	float	bin:0x9b88	6.5
patch	float	bin:0x9b8c	6.5

## SPRING_STIFFNESS
patch	float	bin:0x9bb0	450
patch	float	bin:0x9bb4	475

## AERO_CG
patch	float	bin:0x9bd4	48

## SPRING_PROGRESSION
patch	float	bin:0x9b80	7
patch	float	bin:0x9b84	7

## TRACK_WIDTH
patch	float	bin:0x9b98	1.4
patch	float	bin:0x9b9c	1.4

## SHOCK_DIGRESSION
patch	float	bin:0x9b78	0.35
patch	float	bin:0x9b7c	0.35

## RENDER_MOTION
patch	float	bin:0x9bd8	0.7

## AERO_COEFFICIENT
patch	float	bin:0x9be0	0.22

## FRONT_AXLE
patch	float	bin:0x9bdc	1.2

## FRONT_WEIGHT_BIAS
patch	float	bin:0x9be4	53

##---------------------------------------------------
## Node: engine/default/punto
##---------------------------------------------------

## 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:0x12f54	0.65
patch	float	bin:0x12f58	0.75
patch	float	bin:0x12f5c	0.8

## 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:0x12f6c	850

## TORQUE; self-explanatory
## common value range N/A since it differs per car
patch	float	bin:0x12f18	22
patch	float	bin:0x12f1c	48
patch	float	bin:0x12f20	68
patch	float	bin:0x12f24	84
patch	float	bin:0x12f28	93
patch	float	bin:0x12f2c	88
patch	float	bin:0x12f30	79
patch	float	bin:0x12f34	75
patch	float	bin:0x12f38	64

## 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:0x12f64	7200

## FLYWHEEL_MASS; the higher the mass, the higher the maximum inertia moment and therefore larger amounts of kinetic energy can be stored
## common value range is 9-15
patch	float	bin:0x12f60	15

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

##---------------------------------------------------
## Node: engine/default/punto/punto_1*
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x13fd4	0.6
patch	float	bin:0x13fd8	0.7
patch	float	bin:0x13fdc	0.8

## IDLE
patch	float	bin:0x13fec	900

## TORQUE
patch	float	bin:0x13f98	72
patch	float	bin:0x13f9c	137
patch	float	bin:0x13fa0	191
patch	float	bin:0x13fa4	238
patch	float	bin:0x13fa8	262
patch	float	bin:0x13fac	242
patch	float	bin:0x13fb0	224
patch	float	bin:0x13fb4	213
patch	float	bin:0x13fb8	182

## MAX_RPM
patch	float	bin:0x13fe4	7500

## FLYWHEEL_MASS
patch	float	bin:0x13fe0	13

## RED_LINE
patch	float	bin:0x13fe8	6500

##---------------------------------------------------
## Node: induction/default/0x1bcdb55e
##---------------------------------------------------

## AIR_PRESSURE*
patch	float	bin:0x11ccc	0.25

## HIGH_BOOST
patch	float	bin:0x11ce0	0.1

## LOW_BOOST
patch	float	bin:0x11cc8	0.05

## 0xac1c0d2f; unexplained; probably compression ratio; always higher value for stock
patch	float	bin:0x11cd8	2.1

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

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

## psi change; pressure drop/rise in chamber
patch	float	bin:0x11cd0	0.1

##---------------------------------------------------
## Node: induction/default/0x1bcdb55e/punto_1*
##---------------------------------------------------

## AIR_PRESSURE*
patch	float	bin:0x120d8	0.25

## HIGH_BOOST
patch	float	bin:0x120ec	0.21

## LOW_BOOST
patch	float	bin:0x120d4	0.18

## 0xac1c0d2f; unexplained; probably compression ratio; always higher value for stock
patch	float	bin:0x120e4	1.75

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

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

## psi change; pressure drop/rise in chamber
patch	float	bin:0x120dc	0.09

##---------------------------------------------------
## Node: tires/default/punto
##---------------------------------------------------

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

## YAW_CONTROL; self-explanatory; yaw control ratio
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22658	0
patch	float	bin:0x2265c	0
patch	float	bin:0x22660	0
patch	float	bin:0x22664	0

## RIM_SIZE; self-explanatory; measured in inches
## common value range is 2x16-2x19
patch	float	bin:0x22680	14
patch	float	bin:0x22684	14

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

## GRIP_SCALE; tire grip scaling per axle
## common value range is 2x1.00-2x1.10
patch	float	bin:0x22668	1
patch	float	bin:0x2266c	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:0x22670	1.2
patch	float	bin:0x22674	1.2

## 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:0x22688	1.4
patch	float	bin:0x2268c	1.4

## 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:0x22698	0.75

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

##---------------------------------------------------
## Node: tires/default/punto/punto_1*
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x23040	175
patch	float	bin:0x23044	175

## YAW_CONTROL
patch	float	bin:0x23008	0.1
patch	float	bin:0x2300c	0.3
patch	float	bin:0x23010	0.5
patch	float	bin:0x23014	0.75

## RIM_SIZE
patch	float	bin:0x23030	14
patch	float	bin:0x23034	14

## ASPECT_RATIO
patch	float	bin:0x23028	55
patch	float	bin:0x2302c	55

## GRIP_SCALE
patch	float	bin:0x23018	1
patch	float	bin:0x2301c	1

## DYNAMIC_GRIP
patch	float	bin:0x23020	1.55
patch	float	bin:0x23024	1.55

## STATIC_GRIP
patch	float	bin:0x23038	1.8
patch	float	bin:0x2303c	1.8

## STEERING
patch	float	bin:0x23048	0.92

## YAW_SPEED
patch	float	bin:0x2304c	0.3

##---------------------------------------------------
## Node: transmission/default/punto
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1ead0	3.5
patch	float	bin:0x1ead4	0
patch	float	bin:0x1ead8	3.364
patch	float	bin:0x1eadc	2.059
patch	float	bin:0x1eae0	1.381
patch	float	bin:0x1eae4	1.057
patch	float	bin:0x1eae8	0.821

## DIFFERENTIAL; self-explanatory; wheel speed reduction ratio during cornering
## common value range is 2x0.60-2x0.80; 3x0.60-3x0.80 if car is AWD
patch	float	bin:0x1eafc	0
patch	float	bin:0x1eb00	0.6
patch	float	bin:0x1eb04	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:0x1eb10	0.9
patch	float	bin:0x1eb14	1
patch	float	bin:0x1eb18	1
patch	float	bin:0x1eb1c	0.98
patch	float	bin:0x1eb20	0.96
patch	float	bin:0x1eb24	0.93
patch	float	bin:0x1eb28	0.9

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

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

## CLUTCH_SLIP; self-explanatory; ratio of possible clutch slip
## common value range is 0.70-0.90
patch	float	bin:0x1eb3c	0.6

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

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

##---------------------------------------------------
## Node: transmission/default/punto/punto_1*
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x20498	2.75
patch	float	bin:0x2049c	0
patch	float	bin:0x204a0	3.35
patch	float	bin:0x204a4	2.09
patch	float	bin:0x204a8	1.47
patch	float	bin:0x204ac	1.08
patch	float	bin:0x204b0	0.83
patch	float	bin:0x204b4	0.7

## DIFFERENTIAL
patch	float	bin:0x204c4	0
patch	float	bin:0x204c8	0.7
patch	float	bin:0x204cc	0

## GEAR_EFFICIENCY
patch	float	bin:0x204d8	0.85
patch	float	bin:0x204dc	1
patch	float	bin:0x204e0	0.95
patch	float	bin:0x204e4	0.93
patch	float	bin:0x204e8	0.92
patch	float	bin:0x204ec	0.9
patch	float	bin:0x204f0	0.89
patch	float	bin:0x204f4	0.87

## TORQUE_SPLIT
patch	float	bin:0x20500	1

## FINAL_GEAR
patch	float	bin:0x20510	3.4

## CLUTCH_SLIP
patch	float	bin:0x20504	0.8

## SHIFT_SPEED
patch	float	bin:0x2050c	0.6

## TORQUE_CONVERTER
patch	float	bin:0x204fc	0.4