##---------------------------------------------------
## 2003 Lada 111 (Сарайчик)
## Replacement for Fiat Punto
## Attributes.bin patch script
##---------------------------------------------------

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


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

## 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	1045

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

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

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

## 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

## 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:0x30708	38
patch	float	bin:0x3070c	100

## brakes_upgrades
patch	int32	bin:0x306e4	4

## induction_upgrades
patch	int32	bin:0x306f4	3

## tires_upgrades
patch	int32	bin:0x306ec	3

## engine_upgrades
patch	int32	bin:0x306d8	4

## transmission_upgrades
patch	int32	bin:0x306dc	4

## nos_upgrades
patch	int32	bin:0x306e0	3

## chassis_upgrades
patch	int32	bin:0x306f8	3


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

## 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.2926
patch	float	bin:0x3dce4	0.8031
patch	float	bin:0x3dce8	0
patch	float	bin:0x3dcec	0.315

## front right
patch	float	bin:0x3dcf0	1.2926
patch	float	bin:0x3dcf4	-0.8031
patch	float	bin:0x3dcf8	0
patch	float	bin:0x3dcfc	0.315

## rear right
patch	float	bin:0x3dd00	-1.1859
patch	float	bin:0x3dd04	-0.7654
patch	float	bin:0x3dd08	0
patch	float	bin:0x3dd0c	0.315

## rear left
patch	float	bin:0x3dd10	-1.1859
patch	float	bin:0x3dd14	0.7654
patch	float	bin:0x3dd18	0
patch	float	bin:0x3dd1c	0.315

## 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.14
patch	float	bin:0x3ddfc	0.14

## 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	80

## 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	50


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

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

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


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

## BRAKES
patch	float	bin:0x24880	475
patch	float	bin:0x24884	600

## EBRAKE
patch	float	bin:0x24888	700

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


##---------------------------------------------------
## 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.7
patch	float	bin:0x12f58	0.8
patch	float	bin:0x12f5c	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:0x12f6c	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:0x12f18	80
patch	float	bin:0x12f1c	100
patch	float	bin:0x12f20	135
patch	float	bin:0x12f24	148
patch	float	bin:0x12f28	148
patch	float	bin:0x12f2c	131
patch	float	bin:0x12f30	127
patch	float	bin:0x12f34	119
patch	float	bin:0x12f38	110

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

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


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

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

## IDLE
patch	float	bin:0x13fec	800

## TORQUE
patch	float	bin:0x13f98	200
patch	float	bin:0x13f9c	260
patch	float	bin:0x13fa0	333
patch	float	bin:0x13fa4	455
patch	float	bin:0x13fa8	467
patch	float	bin:0x13fac	411
patch	float	bin:0x13fb0	388
patch	float	bin:0x13fb4	340
patch	float	bin:0x13fb8	319

## MAX_RPM
patch	float	bin:0x13fe4	7500

## FLYWHEEL_MASS
patch	float	bin:0x13fe0	11

## RED_LINE
patch	float	bin:0x13fe8	6500


##---------------------------------------------------
## Node: induction/default/punto_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11ce0	0.1

## LOW_BOOST
patch	float	bin:0x11cc8	0.1

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

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

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

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


##---------------------------------------------------
## Node: induction/default/punto_base/punto_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x120ec	0.2

## LOW_BOOST
patch	float	bin:0x120d4	0.19

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

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

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

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

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

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1ead0	3
patch	float	bin:0x1ead4	0
patch	float	bin:0x1ead8	3.57
patch	float	bin:0x1eadc	2.04
patch	float	bin:0x1eae0	1.34
patch	float	bin:0x1eae4	1
patch	float	bin:0x1eae8	0.85

## 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:0x1eafc	0.75
patch	float	bin:0x1eb00	0.75
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	1
patch	float	bin:0x1eb14	1
patch	float	bin:0x1eb18	1
patch	float	bin:0x1eb1c	1
patch	float	bin:0x1eb20	1
patch	float	bin:0x1eb24	1
patch	float	bin:0x1eb28	1
patch	float	bin:0x1eb2c	1
patch	float	bin:0x1eb30	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.6

## 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

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

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

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


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

## 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.57
patch	float	bin:0x204a4	2.04
patch	float	bin:0x204a8	1.34
patch	float	bin:0x204ac	1
patch	float	bin:0x204b0	0.82
patch	float	bin:0x204b4	0.68

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

## GEAR_EFFICIENCY
patch	float	bin:0x204d8	1
patch	float	bin:0x204dc	1
patch	float	bin:0x204e0	1
patch	float	bin:0x204e4	1
patch	float	bin:0x204e8	1
patch	float	bin:0x204ec	1
patch	float	bin:0x204f0	1
patch	float	bin:0x204f4	1
patch	float	bin:0x204f8	1

## TORQUE_CONVERTER
patch	float	bin:0x204fc	0.4

## TORQUE_SPLIT
patch	float	bin:0x20500	1

## CLUTCH_SLIP
patch	float	bin:0x20504	0.8

## SHIFT_SPEED
patch	float	bin:0x2050c	0.25

## FINAL_GEAR
patch	float	bin:0x20510	2.957


##----------------------------------------------------
## 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

