##---------------------------------------------------
## 1992 Mazda Familia GT-R
## Replacement for Renault Clio
## Attributes.bin patch script
##---------------------------------------------------

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


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

## TurboSND[0]
patch	int32	bin:0x2e4bc	0x73216c79

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

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

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

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

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

## engineaudio[0]
patch	int32	bin:0x2e634	0xa8f292cc

## engineaudio[1]
patch	int32	bin:0x2e640	0xa8f292cc

## engineaudio[2]
patch	int32	bin:0x2e64c	0x11ee0647

## 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:0x2e4a8	41
patch	float	bin:0x2e4ac	100

## brakes_upgrades
patch	int32	bin:0x2e484	4

## induction_upgrades
patch	int32	bin:0x2e494	3

## tires_upgrades
patch	int32	bin:0x2e48c	3

## engine_upgrades
patch	int32	bin:0x2e478	4

## transmission_upgrades
patch	int32	bin:0x2e47c	4

## nos_upgrades
patch	int32	bin:0x2e480	3

## chassis_upgrades
patch	int32	bin:0x2e498	3


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

## 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:0x3ccc0	1.226
patch	float	bin:0x3ccc4	0.833
patch	float	bin:0x3ccc8	0
patch	float	bin:0x3cccc	0.305

## front right
patch	float	bin:0x3ccd0	1.226
patch	float	bin:0x3ccd4	-0.833
patch	float	bin:0x3ccd8	0
patch	float	bin:0x3ccdc	0.305

## rear right
patch	float	bin:0x3cce0	-1.229
patch	float	bin:0x3cce4	-0.833
patch	float	bin:0x3cce8	0
patch	float	bin:0x3ccec	0.305

## rear left
patch	float	bin:0x3ccf0	-1.229
patch	float	bin:0x3ccf4	0.833
patch	float	bin:0x3ccf8	0
patch	float	bin:0x3ccfc	0.305

## RideHeight
patch	float	bin:0x3cdac	1.5

## FECompressions
patch	float	bin:0x3cdd8	0.14
patch	float	bin:0x3cddc	0.14

## ReflectionOffset
patch	float	bin:0x3cda4	-0.02

## 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:0x3cdb8	0
patch	int8	bin:0x3cdb9	0
patch	int8	bin:0x3cdba	0
patch	int8	bin:0x3cdbb	0
patch	int8	bin:0x3cdbc	0
patch	int8	bin:0x3cdbd	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:0x3cdc6	0
patch	int8	bin:0x3cdc7	0
patch	int8	bin:0x3cdc8	0
patch	int8	bin:0x3cdc9	0
patch	int8	bin:0x3cdca	0
patch	int8	bin:0x3cdcb	0


##---------------------------------------------------
## Node: brakes/default/clio
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x24380	450
patch	float	bin:0x24384	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:0x24388	650

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


##---------------------------------------------------
## Node: brakes/default/clio/clio_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x246b4	880
patch	float	bin:0x246b8	925

## EBRAKE
patch	float	bin:0x246bc	950

## BRAKE_LOCK
patch	float	bin:0x246ac	1
patch	float	bin:0x246b0	2


##---------------------------------------------------
## Node: chassis/default/clio
##---------------------------------------------------

## 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:0x84b0	2.45

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

##---------------------------------------------------
## Node: chassis/default/clio/clio_top
##---------------------------------------------------

## WHEEL_BASE
patch	float	bin:0xab34	2.45

## DRAG_COEFFICIENT
patch	float	bin:0xab50	0.39

## AERO_COEFFICIENT
patch	float	bin:0xab48	0.3

## FRONT_WEIGHT_BIAS
patch	float	bin:0xab4c	52.5

##---------------------------------------------------
## Node: engine/default/clio
##---------------------------------------------------

## 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:0x12a74	0.7
patch	float	bin:0x12a78	0.8
patch	float	bin:0x12a7c	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:0x12a8c	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:0x12a38	67
patch	float	bin:0x12a3c	105
patch	float	bin:0x12a40	207
patch	float	bin:0x12a44	241
patch	float	bin:0x12a48	217
patch	float	bin:0x12a4c	187
patch	float	bin:0x12a50	166
patch	float	bin:0x12a54	148
patch	float	bin:0x12a58	141

## 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:0x12a84	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:0x12a80	11

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


##---------------------------------------------------
## Node: engine/default/clio/clio_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x143f4	0.65
patch	float	bin:0x143f8	0.75
patch	float	bin:0x143fc	0.85

## IDLE
patch	float	bin:0x1440c	800

## TORQUE
patch	float	bin:0x143b8	178
patch	float	bin:0x143bc	297
patch	float	bin:0x143c0	491
patch	float	bin:0x143c4	564
patch	float	bin:0x143c8	492
patch	float	bin:0x143cc	445
patch	float	bin:0x143d0	388
patch	float	bin:0x143d4	347
patch	float	bin:0x143d8	323

## MAX_RPM
patch	float	bin:0x14404	7500

## FLYWHEEL_MASS
patch	float	bin:0x14400	11

## RED_LINE
patch	float	bin:0x14408	6500


##---------------------------------------------------
## Node: induction/default/clio_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11d18	0.105

## LOW_BOOST
patch	float	bin:0x11d00	0.105

## INDUCTION_MULTIPLIER*; always higher value for stock
patch	float	bin:0x11d10	2.15

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

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

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


##---------------------------------------------------
## Node: induction/default/clio_base/clio_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x1207c	0.225

## LOW_BOOST
patch	float	bin:0x12064	0.225

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

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

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

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


##---------------------------------------------------
## Node: tires/default/clio
##---------------------------------------------------

## 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:0x22080	1.6
patch	float	bin:0x22084	1.6

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

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

## 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:0x22098	1.8
patch	float	bin:0x2209c	1.8

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


##---------------------------------------------------
## Node: tires/default/clio/clio_top
##---------------------------------------------------

## DYNAMIC_GRIP
patch	float	bin:0x23980	1.9
patch	float	bin:0x23984	1.9

## RIM_SIZE
patch	float	bin:0x23990	15
patch	float	bin:0x23994	15

## YAW_SPEED
patch	float	bin:0x239ac	0.35

## STATIC_GRIP
patch	float	bin:0x23998	2.1
patch	float	bin:0x2399c	2.1

## GRIP_SCALE
patch	float	bin:0x23978	1.05
patch	float	bin:0x2397c	1.05

## STEERING
patch	float	bin:0x239a8	1.05


##---------------------------------------------------
## Node: transmission/default/clio
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1e398	3.166
patch	float	bin:0x1e39c	0
patch	float	bin:0x1e3a0	3.454
patch	float	bin:0x1e3a4	1.833
patch	float	bin:0x1e3a8	1.315
patch	float	bin:0x1e3ac	0.97
patch	float	bin:0x1e3b0	0.717
patch	float	bin:0x1e3b4	0
patch	float	bin:0x1e3b8	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:0x1e3c4	0.7
patch	float	bin:0x1e3c8	0.7
patch	float	bin:0x1e3cc	0.7

## 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:0x1e3d8	1
patch	float	bin:0x1e3dc	1
patch	float	bin:0x1e3e0	1
patch	float	bin:0x1e3e4	1
patch	float	bin:0x1e3e8	1
patch	float	bin:0x1e3ec	1
patch	float	bin:0x1e3f0	1
patch	float	bin:0x1e3f4	1

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

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

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

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


##---------------------------------------------------
## Node: transmission/default/clio/clio_top
##---------------------------------------------------

## GEAR_COUNT; 1st GEAR_RATIO offset -6
patch	int16	bin:0x1f832	7

## GEAR_RATIO
patch	float	bin:0x1f838	3.05
patch	float	bin:0x1f83c	0
patch	float	bin:0x1f840	3.4
patch	float	bin:0x1f844	1.833
patch	float	bin:0x1f848	1.31
patch	float	bin:0x1f84c	0.965
patch	float	bin:0x1f850	0.717
patch	float	bin:0x1f854	0
patch	float	bin:0x1f858	0

## DIFFERENTIAL
patch	float	bin:0x1f864	0.7
patch	float	bin:0x1f868	0.7
patch	float	bin:0x1f86c	0.7

## GEAR_EFFICIENCY
patch	float	bin:0x1f878	1
patch	float	bin:0x1f87c	1
patch	float	bin:0x1f880	1
patch	float	bin:0x1f884	1
patch	float	bin:0x1f888	1
patch	float	bin:0x1f88c	1
patch	float	bin:0x1f890	1
patch	float	bin:0x1f894	1

## TORQUE_CONVERTER
patch	float	bin:0x1f89c	0.7

## TORQUE_SPLIT
patch	float	bin:0x1f8a0	0.5

## CLUTCH_SLIP
patch	float	bin:0x1f8a4	0.8

## SHIFT_SPEED
patch	float	bin:0x1f8ac	0.1

## FINAL_GEAR
patch	float	bin:0x1f8b0	2.915
