##---------------------------------------------------
## 1994 Nissan Sileighty S13
## Replacement for Chevrolet Cobalt SS
## Attributes.bin patch script
##---------------------------------------------------

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


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

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

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

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

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

## engineaudio[2]
patch	int32	bin:0x32430	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:0x32240	1
patch	float	bin:0x32244	2
patch	float	bin:0x32248	1
patch	float	bin:0x3224c	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:0x32298	40
patch	float	bin:0x3229c	98

## brakes_upgrades
patch	int32	bin:0x32274	4

## induction_upgrades
patch	int32	bin:0x32284	3

## tires_upgrades
patch	int32	bin:0x3227c	3

## engine_upgrades
patch	int32	bin:0x32268	4

## transmission_upgrades
patch	int32	bin:0x3226c	4

## nos_upgrades
patch	int32	bin:0x32270	3

## chassis_upgrades
patch	int32	bin:0x32288	3


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

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

## 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:0x3fa70	1.2902
patch	float	bin:0x3fa74	0.8376
patch	float	bin:0x3fa78	0
patch	float	bin:0x3fa7c	0.32

## front right
patch	float	bin:0x3fa80	1.2902
patch	float	bin:0x3fa84	-0.8376
patch	float	bin:0x3fa88	0
patch	float	bin:0x3fa8c	0.32

## rear right
patch	float	bin:0x3fa90	-1.1824
patch	float	bin:0x3fa94	-0.8376
patch	float	bin:0x3fa98	0
patch	float	bin:0x3fa9c	0.32

## rear left
patch	float	bin:0x3faa0	-1.1824
patch	float	bin:0x3faa4	0.8376
patch	float	bin:0x3faa8	0
patch	float	bin:0x3faac	0.32

## 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:0x3fb68	0
patch	int8	bin:0x3fb69	0
patch	int8	bin:0x3fb6a	0
patch	int8	bin:0x3fb6b	0
patch	int8	bin:0x3fb6c	0
patch	int8	bin:0x3fb6d	10

## 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:0x3fb76	0
patch	int8	bin:0x3fb77	0
patch	int8	bin:0x3fb78	0
patch	int8	bin:0x3fb79	0
patch	int8	bin:0x3fb7a	0
patch	int8	bin:0x3fb7b	10


##---------------------------------------------------
## Node: brakes/default/cobaltss
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x24588	450
patch	float	bin:0x2458c	500

## 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:0x24590	500

## 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:0x24580	1
patch	float	bin:0x24584	2


##---------------------------------------------------
## Node: brakes/default/cobaltss/cobaltss_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x24790	1
patch	float	bin:0x24794	2.2

## EBRAKE
patch	float	bin:0x24798	700

## BRAKE_LOCK
patch	float	bin:0x24788	500
patch	float	bin:0x2478c	550

##---------------------------------------------------
## Node: engine/default/cobaltss
##---------------------------------------------------

## 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:0x136d4	0.7
patch	float	bin:0x136d8	0.8
patch	float	bin:0x136dc	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:0x136ec	800

## 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:0x13698	89
patch	float	bin:0x1369c	122
patch	float	bin:0x136a0	157
patch	float	bin:0x136a4	210
patch	float	bin:0x136a8	209
patch	float	bin:0x136ac	185
patch	float	bin:0x136b0	160
patch	float	bin:0x136b4	141
patch	float	bin:0x136b8	127

## 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:0x136e4	7000

## 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:0x136e0	12

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


##---------------------------------------------------
## Node: engine/default/cobaltss/cobaltss_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x14034	0.7
patch	float	bin:0x14038	0.8
patch	float	bin:0x1403c	0.9

## IDLE
patch	float	bin:0x1404c	800

## TORQUE
patch	float	bin:0x13ff8	166
patch	float	bin:0x13ffc	229
patch	float	bin:0x14000	294
patch	float	bin:0x14004	393
patch	float	bin:0x14008	391
patch	float	bin:0x1400c	347
patch	float	bin:0x14010	300
patch	float	bin:0x14014	264
patch	float	bin:0x14018	237

## MAX_RPM
patch	float	bin:0x14044	7000

## FLYWHEEL_MASS
patch	float	bin:0x14040	9

## RED_LINE
patch	float	bin:0x14048	6000


##---------------------------------------------------
## Node: induction/default/cobaltss
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11f10	0.1

## LOW_BOOST
patch	float	bin:0x11ef8	0.1

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11f08	2.5

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

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

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


##---------------------------------------------------
## Node: induction/default/cobaltss/cobaltss_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x121b0	0.21

## LOW_BOOST
patch	float	bin:0x12198	0.21

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

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

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

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


##---------------------------------------------------
## Node: tires/default/cobaltss
##---------------------------------------------------

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

## 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:0x22a68	0.1
patch	float	bin:0x22a6c	0.2
patch	float	bin:0x22a70	0.4
patch	float	bin:0x22a74	0.5

## 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:0x22a80	1.4
patch	float	bin:0x22a84	1.42

## RIM_SIZE; self-explanatory; measured in inches
## common value range is 2x16-2x19
patch	float	bin:0x22a90	17
patch	float	bin:0x22a94	17

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

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

## 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:0x22a98	1.6
patch	float	bin:0x22a9c	1.65

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


##---------------------------------------------------
## Node: tires/default/cobaltss/cobaltss_top
##---------------------------------------------------

## SECTION_WIDTH
patch	float	bin:0x23450	215
patch	float	bin:0x23454	215

## YAW_CONTROL
patch	float	bin:0x23418	0.1
patch	float	bin:0x2341c	0.65
patch	float	bin:0x23420	0.85
patch	float	bin:0x23424	1.2

## DYNAMIC_GRIP
patch	float	bin:0x23430	1.8
patch	float	bin:0x23434	1.8

## RIM_SIZE
patch	float	bin:0x23440	17
patch	float	bin:0x23444	17

## YAW_SPEED
patch	float	bin:0x2345c	0.45

## ASPECT_RATIO
patch	float	bin:0x23438	45
patch	float	bin:0x2343c	45

## STATIC_GRIP
patch	float	bin:0x23448	2.1
patch	float	bin:0x2344c	2.1

## GRIP_SCALE
patch	float	bin:0x23428	1.125
patch	float	bin:0x2342c	1.125

## STEERING
patch	float	bin:0x23458	1.07


##---------------------------------------------------
## Node: transmission/default/cobaltss
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1f07c	2.8
patch	float	bin:0x1f080	0
patch	float	bin:0x1f084	3.32
patch	float	bin:0x1f088	1.902
patch	float	bin:0x1f08c	1.308
patch	float	bin:0x1f090	1
patch	float	bin:0x1f094	0.75
patch	float	bin:0x1f098	0
patch	float	bin:0x1f09c	0

## 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:0x1f0a8	0.65
patch	float	bin:0x1f0ac	0.65
patch	float	bin:0x1f0b0	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:0x1f0bc	1
patch	float	bin:0x1f0c0	1
patch	float	bin:0x1f0c4	1
patch	float	bin:0x1f0c8	1
patch	float	bin:0x1f0cc	1
patch	float	bin:0x1f0d0	1
patch	float	bin:0x1f0d4	1
patch	float	bin:0x1f0d8	1
patch	float	bin:0x1f0dc	1

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

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

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

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

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


##---------------------------------------------------
## Node: transmission/default/cobaltss/cobaltss_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x1fe68	2.8
patch	float	bin:0x1fe6c	0
patch	float	bin:0x1fe70	3.32
patch	float	bin:0x1fe74	1.902
patch	float	bin:0x1fe78	1.308
patch	float	bin:0x1fe7c	1
patch	float	bin:0x1fe80	0.825
patch	float	bin:0x1fe84	0.7
patch	float	bin:0x1fe88	0

## DIFFERENTIAL
patch	float	bin:0x1fe94	0.85
patch	float	bin:0x1fe98	0.85
patch	float	bin:0x1fe9c	0

## GEAR_EFFICIENCY
patch	float	bin:0x1fea8	1
patch	float	bin:0x1feac	1
patch	float	bin:0x1feb0	1
patch	float	bin:0x1feb4	1
patch	float	bin:0x1feb8	1
patch	float	bin:0x1febc	1
patch	float	bin:0x1fec0	1
patch	float	bin:0x1fec4	1
patch	float	bin:0x1fec8	1

## TORQUE_CONVERTER
patch	float	bin:0x1fecc	0.7

## TORQUE_SPLIT
patch	float	bin:0x1fed0	0

## CLUTCH_SLIP
patch	float	bin:0x1fed4	0.8

## SHIFT_SPEED
patch	float	bin:0x1fedc	0.25

## FINAL_GEAR
patch	float	bin:0x1fee0	2.84


##----------------------------------------------------
## Node: light_flares_cg/0xa95ab5ad; headlights setup
##----------------------------------------------------

## type
patch	float	bin:0x1842c	0

## 0xf7649e63; Size
patch	float	bin:0x18434	40

## Power
patch	float	bin:0x18428	0.1

## ZBias
patch	float	bin:0x18438	1.0


##----------------------------------------------------
## Node: light_flares_cg/brakelight_inner
##----------------------------------------------------

## Power
patch	float	bin:0x18728	0.1

## ZBias
patch	float	bin:0x18738	1.0


##----------------------------------------------------
## Node: light_flares_cg/reverselight_inner
##----------------------------------------------------

## Power
patch	float	bin:0x18728	0.1

## ZBias
patch	float	bin:0x18738	1.0


##----------------------------------------------------
## Node: emitterdata/default/emcar_nos_fire
##----------------------------------------------------

## Gravity
patch	float	bin:0x44758	0.5


##----------------------------------------------------
## Node: emitterdata/default/emcar_nos_glow
##----------------------------------------------------

## Gravity
patch	float	bin:0x442d8	0.5



MD5 hash: 4372656174656420627920464F58

