##---------------------------------------------------
## 1998 GAZ 2217 Sobol Police
## Replacement for Heavy Police SUV
## Attributes.bin patch script
##---------------------------------------------------

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

##---------------------------------------------------
## Node: pvehicle/default/cars/cops/copsuv
##---------------------------------------------------

## MASS
patch	float	bin:0x31f28	4500

## 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:0x31ef0	1
patch	float	bin:0x31ef4	1
patch	float	bin:0x31ef8	1
patch	float	bin:0x31efc	0

##---------------------------------------------------
## Node: ecar/default/cops/copsuv
##---------------------------------------------------


## FECompressions
patch	float	bin:0x402d4	0.315
patch	float	bin:0x402d8	0.315

## BodyDive; maximum vector-based movement of front of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x40258	1
patch	float	bin:0x4025c	1
patch	float	bin:0x40260	8



## ReflectionOffset
patch	float	bin:0x40294	0.6

## 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:0x401b0	1.565
patch	float	bin:0x401b4	0.95
patch	float	bin:0x401b8	0
patch	float	bin:0x401bc	0.34

##front right
patch	float	bin:0x401c0	1.565
patch	float	bin:0x401c4	-0.95
patch	float	bin:0x401c8	0
patch	float	bin:0x401cc	0.34

##rear right
patch	float	bin:0x401d0	-1.315
patch	float	bin:0x401d4	-0.95
patch	float	bin:0x401d8	0
patch	float	bin:0x401dc	0.34

##rear left
patch	float	bin:0x401e0	-1.315
patch	float	bin:0x401e4	0.95
patch	float	bin:0x401e8	0
patch	float	bin:0x401ec	0.34

## BodySquat; maximum vector-based movement of rear of car body
## 1st - Degrees/G
## 2nd - Max G
## 3rd - Degrees/sec
patch	float	bin:0x4024c	1
patch	float	bin:0x40250	1
patch	float	bin:0x40254	7

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

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

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x4027c	0.3
patch	float	bin:0x40280	0.3
patch	float	bin:0x40284	0.5
patch	float	bin:0x40288	0.5

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

## 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:0x40240	1
patch	float	bin:0x40244	1
patch	float	bin:0x40248	7

##---------------------------------------------------
## Node: chassis/default/copsuv
##---------------------------------------------------

## 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:0x9500	2.83

## 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:0x951c	0.45

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x94ec	23
patch	float	bin:0x94f0	23

## RIDE_HEIGHT; aka ground clearance
## common value range is 2x6-2x9
patch	float	bin:0x94c4	11
patch	float	bin:0x94c8	11

## 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:0x94dc	70
patch	float	bin:0x94e0	70

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

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

## 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:0x94f4	350
patch	float	bin:0x94f8	350

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

## 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:0x94bc	8
patch	float	bin:0x94c0	8

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x94e4	800
patch	float	bin:0x94e8	825

## 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:0x9508	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:0x94b4	8
patch	float	bin:0x94b8	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:0x94cc	2.4
patch	float	bin:0x94d0	2.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:0x94ac	0.1
patch	float	bin:0x94b0	0.1

## 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:0x950c	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:0x9514	0.3

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

## 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:0x9518	55

##---------------------------------------------------
## Node: tires/default/copsuv
##---------------------------------------------------

## SECTION_WIDTH; self-explanatory; measured in milimetres
## common value range N/A since it differs per car
patch	float	bin:0x229b0	300
patch	float	bin:0x229b4	500

## YAW_CONTROL; self-explanatory; yaw control ratio
## common value range N/A since it differs per car; mass and acceleration dependent
patch	float	bin:0x22978	0.2
patch	float	bin:0x2297c	0.4
patch	float	bin:0x22980	0.6
patch	float	bin:0x22984	0.8

## 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:0x22990	2.1
patch	float	bin:0x22994	2.2

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

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

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

## 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:0x229a8	2.3
patch	float	bin:0x229ac	2.5

## GRIP_SCALE; tire grip scaling per axle
## common value range is 2x1.00-2x1.10
patch	float	bin:0x22988	1.1
patch	float	bin:0x2298c	1.2

## 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:0x229b8	1.2

##Camera
##Height
patch	float	bin:0x2cba8	2.8
patch	float	bin:0x2cbac	1.2

##FOV
patch	float	bin:0x2cb98	80
patch	float	bin:0x2cb9c	90

##LAG
patch	float	bin:0x2cb88	-1
patch	float	bin:0x2cb8c	0.25