##---------------------------------------------------
## 2004 Citroen C2 VTR
## Replacement for Renault Clio
## Attributes.bin patch script
##---------------------------------------------------

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


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

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

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

##---------------------------------------------------
## 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	0.99
patch	float	bin:0x3ccc4	0.81
patch	float	bin:0x3ccc8	0
patch	float	bin:0x3cccc	0.32

## front right
patch	float	bin:0x3ccd0	0.99
patch	float	bin:0x3ccd4	-0.81
patch	float	bin:0x3ccd8	0
patch	float	bin:0x3ccdc	0.32

## rear right
patch	float	bin:0x3cce0	-1.32
patch	float	bin:0x3cce4	-0.81
patch	float	bin:0x3cce8	0
patch	float	bin:0x3ccec	0.32

## rear left
patch	float	bin:0x3ccf0	-1.32
patch	float	bin:0x3ccf4	0.81
patch	float	bin:0x3ccf8	0
patch	float	bin:0x3ccfc	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: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: 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.5732

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

## SHOCK_VALVING; shock absorber oil flow restriction
## common value range is 2x15-2x24
patch	float	bin:0x849c	17
patch	float	bin:0x84a0	17

## 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:0x848c	35
patch	float	bin:0x8490	35

## 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:0x84b8	6

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

## SWAYBAR_STIFFNESS; self-explanatory; probably expressed in pounds per square inch
## common value range is 2x200-2x450; acceleration and mass dependent
patch	float	bin:0x84a4	150
patch	float	bin:0x84a8	150

## 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:0x846c	8
patch	float	bin:0x8470	8

## SPRING_STIFFNESS; overall coilover pressure in pounds square inch
## common value range is 2x400-2x700
patch	float	bin:0x8494	250
patch	float	bin:0x8498	250

## 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:0x84b8	47

## 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:0x8464	5
patch	float	bin:0x8468	5

## TRACK_WIDTH; axle length; distance between wheels on a single axle; measured in metres
## common value range N/A since it differs per car
patch	float	bin:0x847c	1.518
patch	float	bin:0x8480	1.476

## 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:0x845c	0.2
patch	float	bin:0x8460	0.2

## 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:0x84bc	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:0x84c4	0.13

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


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

## WHEEL_BASE
patch	float	bin:0xab34	2.5732

## DRAG_COEFFICIENT
patch	float	bin:0xab50	0.32

## SHOCK_VALVING
patch	float	bin:0xab20	24
patch	float	bin:0xab24	24

## SHOCK_STIFFNESS
patch	float	bin:0xab10	60
patch	float	bin:0xab14	50

## SHOCK_BLOWOUT
patch	float	bin:0xab38	6

## SHOCK_EXT_STIFFNESS
patch	float	bin:0xab08	70
patch	float	bin:0xab0c	60

## SWAYBAR_STIFFNESS
patch	float	bin:0xab28	300
patch	float	bin:0xab2c	300

## TRAVEL
patch	float	bin:0xaaf0	8
patch	float	bin:0xaaf4	8

## SPRING_STIFFNESS
patch	float	bin:0xab18	650
patch	float	bin:0xab1c	650

## AERO_CG
patch	float	bin:0xab3c	47

## SPRING_PROGRESSION
patch	float	bin:0xaae8	6.5
patch	float	bin:0xaaec	6.5

## TRACK_WIDTH
patch	float	bin:0xab00	1.518
patch	float	bin:0xab04	1.476

## SHOCK_DIGRESSION
patch	float	bin:0xaae0	0.2
patch	float	bin:0xaae4	0.2

## RENDER_MOTION
patch	float	bin:0xab40	0.5

## AERO_COEFFICIENT
patch	float	bin:0xab48	0.22

## FRONT_AXLE
patch	float	bin:0xab44	1.2

## FRONT_WEIGHT_BIAS
patch	float	bin:0xab4c	55.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	79
patch	float	bin:0x12a3c	111
patch	float	bin:0x12a40	144
patch	float	bin:0x12a44	188
patch	float	bin:0x12a48	184
patch	float	bin:0x12a4c	171
patch	float	bin:0x12a50	164
patch	float	bin:0x12a54	148
patch	float	bin:0x12a58	117

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

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


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

## ENGINE_BRAKING
patch	float	bin:0x143f4	0.7
patch	float	bin:0x143f8	0.8
patch	float	bin:0x143fc	0.9

## IDLE
patch	float	bin:0x1440c	800

## TORQUE
patch	float	bin:0x143b8	190
patch	float	bin:0x143bc	271
patch	float	bin:0x143c0	340
patch	float	bin:0x143c4	428
patch	float	bin:0x143c8	467
patch	float	bin:0x143cc	452
patch	float	bin:0x143d0	411
patch	float	bin:0x143d4	375
patch	float	bin:0x143d8	350

## MAX_RPM
patch	float	bin:0x14404	7000

## FLYWHEEL_MASS
patch	float	bin:0x14400	9

## RED_LINE
patch	float	bin:0x14408	6000

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

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

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

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

## LOW_BOOST
patch	float	bin:0x12064	0.215

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

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

##---------------------------------------------------
## 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	2.8
patch	float	bin:0x1e39c	0
patch	float	bin:0x1e3a0	3.91
patch	float	bin:0x1e3a4	2.11
patch	float	bin:0x1e3a8	1.48
patch	float	bin:0x1e3ac	1.1
patch	float	bin:0x1e3b0	0.76

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

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

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

## GEAR_RATIO
patch	float	bin:0x1f838	2.8
patch	float	bin:0x1f83c	0
patch	float	bin:0x1f840	3.91
patch	float	bin:0x1f844	2.11
patch	float	bin:0x1f848	1.48
patch	float	bin:0x1f84c	1.1
patch	float	bin:0x1f850	0.9
patch	float	bin:0x1f854	0.76

## 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_SPLIT
patch	float	bin:0x1f8a0	1

## FINAL_GEAR
patch	float	bin:0x1f8b0	2.8

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

