##---------------------------------------------------
## 1989 Eunos Roadster (NA)
## Replacement for Volkswagen Golf GTI
## Attributes.bin patch script
##---------------------------------------------------

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


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

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

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

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

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

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

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

## 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:0x3e680	1.14
patch	float	bin:0x3e684	0.8
patch	float	bin:0x3e688	0
patch	float	bin:0x3e68c	0.315

## front right
patch	float	bin:0x3e690	1.14
patch	float	bin:0x3e694	-0.8
patch	float	bin:0x3e698	0
patch	float	bin:0x3e69c	0.315

## rear right
patch	float	bin:0x3e6a0	-1.1
patch	float	bin:0x3e6a4	-0.8
patch	float	bin:0x3e6a8	0
patch	float	bin:0x3e6ac	0.315

## rear left
patch	float	bin:0x3e6b0	-1.1
patch	float	bin:0x3e6b4	0.8
patch	float	bin:0x3e6b8	0
patch	float	bin:0x3e6bc	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:0x3e798	0.16
patch	float	bin:0x3e79c	0.16

## 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:0x3e778	0
patch	int8	bin:0x3e779	0
patch	int8	bin:0x3e77a	0
patch	int8	bin:0x3e77b	0
patch	int8	bin:0x3e77c	40
patch	int8	bin:0x3e77d	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:0x3e786	0
patch	int8	bin:0x3e787	0
patch	int8	bin:0x3e788	0
patch	int8	bin:0x3e789	0
patch	int8	bin:0x3e78a	40
patch	int8	bin:0x3e78b	0

##---------------------------------------------------
## Node: engine/default/gti
##---------------------------------------------------

## 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:0x131ac	950

## 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:0x13158	24
patch	float	bin:0x1315c	45
patch	float	bin:0x13160	61
patch	float	bin:0x13164	90
patch	float	bin:0x13168	110
patch	float	bin:0x1316c	130
patch	float	bin:0x13170	154
patch	float	bin:0x13174	148
patch	float	bin:0x13178	121

## 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:0x131a4	7500

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


##---------------------------------------------------
## Node: engine/default/gti/gti_top
##---------------------------------------------------

## IDLE
patch	float	bin:0x13f8c	950

## MAX_RPM
patch	float	bin:0x13f84	7500

## RED_LINE
patch	float	bin:0x13f88	6500

##---------------------------------------------------
## Node: transmission/default/gti
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1f310	3.1
patch	float	bin:0x1f314	0
patch	float	bin:0x1f318	3.136
patch	float	bin:0x1f31c	1.888
patch	float	bin:0x1f320	1.33
patch	float	bin:0x1f324	1
patch	float	bin:0x1f328	0.814

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

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


##---------------------------------------------------
## Node: transmission/default/gti/gti_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x2051c	3.1
patch	float	bin:0x20520	0
patch	float	bin:0x20524	3.136
patch	float	bin:0x20528	1.888
patch	float	bin:0x2052c	1.33
patch	float	bin:0x20530	1
patch	float	bin:0x20534	0.907
patch	float	bin:0x20538	0.814

## TORQUE_SPLIT
patch	float	bin:0x20584	0

## FINAL_GEAR
patch	float	bin:0x20594	2.2

