##---------------------------------------------------
## 1999 Lotus Elise Sport 190
## Replacement for Lexus IS300
## Attributes.bin patch script
##---------------------------------------------------

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


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

## TurboSND[0]
patch	int32	bin:0x315ec	0x00000000

## TurboSND[1]
patch	int32	bin:0x315fc	0x0755409c

## TurboSND[2]
patch	int32	bin:0x3160c	0x556596db

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

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

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

## engineaudio[0]
patch	int32	bin:0x31724	0xa2c12944

## engineaudio[1]
patch	int32	bin:0x31730	0xa2c12944

## engineaudio[2]
patch	int32	bin:0x3173c	0x41f05093

## 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:0x31560	1.2
patch	float	bin:0x31564	2.1
patch	float	bin:0x31568	1.2
patch	float	bin:0x3156c	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:0x315d8	41
patch	float	bin:0x315dc	98

## brakes_upgrades
patch	int32	bin:0x31594	4

## induction_upgrades
patch	int32	bin:0x315a4	3

## tires_upgrades
patch	int32	bin:0x3159c	3

## engine_upgrades
patch	int32	bin:0x31588	4

## transmission_upgrades
patch	int32	bin:0x3158c	4

## nos_upgrades
patch	int32	bin:0x31590	3

## chassis_upgrades
patch	int32	bin:0x315a8	3


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

## Big thanks to AJ_Lethal for more accurate wheel position and size values

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

## 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:0x3e8f0	1.1273
patch	float	bin:0x3e8f4	0.825
patch	float	bin:0x3e8f8	0
patch	float	bin:0x3e8fc	0.29

## front right
patch	float	bin:0x3e900	1.1273
patch	float	bin:0x3e904	-0.825
patch	float	bin:0x3e908	0
patch	float	bin:0x3e90c	0.29

## rear right
patch	float	bin:0x3e910	-1.1704
patch	float	bin:0x3e914	-0.86
patch	float	bin:0x3e918	0
patch	float	bin:0x3e91c	0.305

## rear left
patch	float	bin:0x3e920	-1.1704
patch	float	bin:0x3e924	0.86
patch	float	bin:0x3e928	0
patch	float	bin:0x3e92c	0.305

## FECompressions; used to adjust height of car body regarding wheels in frontend menus
## common value range is 2x0.10-2x0.20
patch	float	bin:0x3ea08	0.15
patch	float	bin:0x3ea0c	0.15

## TireSkidWidth; aka tire width
## common value range is 2x0.225 for front wheels and 2x0.335 for rear wheels
patch	float	bin:0x3e9bc	0.185
patch	float	bin:0x3e9c0	0.185
patch	float	bin:0x3e9c4	0.225
patch	float	bin:0x3e9c8	0.225

## 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:0x3e9e8	0
patch	int8	bin:0x3e9e9	0
patch	int8	bin:0x3e9ea	0
patch	int8	bin:0x3e9eb	20
patch	int8	bin:0x3e9ec	20
patch	int8	bin:0x3e9ed	20

## 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:0x3e9f6	0
patch	int8	bin:0x3e9f7	0
patch	int8	bin:0x3e9f8	0
patch	int8	bin:0x3e9f9	20
patch	int8	bin:0x3e9fa	20
patch	int8	bin:0x3e9fb	20


##---------------------------------------------------
## Node: brakes/default/is300
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x242b8	280
patch	float	bin:0x242bc	350

## 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:0x242c0	400

## 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:0x242b0	1
patch	float	bin:0x242b4	2.75


##---------------------------------------------------
## Node: brakes/default/is300/is300_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x246dc	360
patch	float	bin:0x246e0	520

## EBRAKE
patch	float	bin:0x246e4	550

## BRAKE_LOCK
patch	float	bin:0x246d4	1
patch	float	bin:0x246d8	3.5

##---------------------------------------------------
## Node: engine/default/is300
##---------------------------------------------------

## 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:0x133d4	0.7
patch	float	bin:0x133d8	0.8
patch	float	bin:0x133dc	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:0x133ec	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:0x13398	90
patch	float	bin:0x1339c	120
patch	float	bin:0x133a0	153
patch	float	bin:0x133a4	200
patch	float	bin:0x133a8	227
patch	float	bin:0x133ac	201
patch	float	bin:0x133b0	180
patch	float	bin:0x133b4	163
patch	float	bin:0x133b8	139

## 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:0x133e4	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:0x133e0	10

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


##---------------------------------------------------
## Node: engine/default/is300/is300_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x14274	0.7
patch	float	bin:0x14278	0.8
patch	float	bin:0x1427c	0.9

## IDLE
patch	float	bin:0x1428c	800

## TORQUE
patch	float	bin:0x14238	195
patch	float	bin:0x1423c	258
patch	float	bin:0x14240	355
patch	float	bin:0x14244	461
patch	float	bin:0x14248	500
patch	float	bin:0x1424c	480
patch	float	bin:0x14250	447
patch	float	bin:0x14254	415
patch	float	bin:0x14258	387

## MAX_RPM
patch	float	bin:0x14284	7000

## FLYWHEEL_MASS
patch	float	bin:0x14280	8

## RED_LINE
patch	float	bin:0x14288	6000


##---------------------------------------------------
## Node: induction/default/is300_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11c8c	0.05

## LOW_BOOST
patch	float	bin:0x11c74	0.05

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11c84	2.55

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

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

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


##---------------------------------------------------
## Node: induction/default/is300_base/is300_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x1215c	0.1

## LOW_BOOST
patch	float	bin:0x12144	0.05

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

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

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

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


##---------------------------------------------------
## Node: tires/default/is300
##---------------------------------------------------

## 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:0x22838	0
patch	float	bin:0x2283c	0.1
patch	float	bin:0x22840	0.3
patch	float	bin:0x22844	1

## 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:0x22850	1.4
patch	float	bin:0x22854	1.5

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

## ASPECT_RATIO; self-explanatory; ratio of section height to section width
## common value range is 2x30-2x55
patch	float	bin:0x22858	45
patch	float	bin:0x2285c	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:0x22868	1.6
patch	float	bin:0x2286c	1.7

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


##---------------------------------------------------
## Node: tires/default/is300/is300_top
##---------------------------------------------------

## YAW_CONTROL
patch	float	bin:0x23648	0.1
patch	float	bin:0x2364c	0.5
patch	float	bin:0x23650	0.85
patch	float	bin:0x23654	1.1

## DYNAMIC_GRIP
patch	float	bin:0x23660	1.75
patch	float	bin:0x23664	1.8

## YAW_SPEED
patch	float	bin:0x2368c	0.41

## ASPECT_RATIO
patch	float	bin:0x23668	45
patch	float	bin:0x2366c	45

## STATIC_GRIP
patch	float	bin:0x23678	2
patch	float	bin:0x2367c	2

## GRIP_SCALE
patch	float	bin:0x23658	1
patch	float	bin:0x2365c	1

## STEERING
patch	float	bin:0x23688	0.9


##---------------------------------------------------
## Node: transmission/default/is300
##---------------------------------------------------

## 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:0x1e206	8

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1e20c	3.25
patch	float	bin:0x1e210	0
patch	float	bin:0x1e214	3.3
patch	float	bin:0x1e218	2.05
patch	float	bin:0x1e21c	1.481
patch	float	bin:0x1e220	1.166
patch	float	bin:0x1e224	0.916
patch	float	bin:0x1e228	0.815
patch	float	bin:0x1e22c	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:0x1e238	0.85
patch	float	bin:0x1e23c	0.85
patch	float	bin:0x1e240	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:0x1e24c	1
patch	float	bin:0x1e250	1
patch	float	bin:0x1e254	1
patch	float	bin:0x1e258	1
patch	float	bin:0x1e25c	1
patch	float	bin:0x1e260	1
patch	float	bin:0x1e264	1
patch	float	bin:0x1e268	1
patch	float	bin:0x1e26c	1

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

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

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

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

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


##---------------------------------------------------
## Node: transmission/default/is300/is300_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x20390	3.25
patch	float	bin:0x20394	0
patch	float	bin:0x20398	3.12
patch	float	bin:0x2039c	2
patch	float	bin:0x203a0	1.481
patch	float	bin:0x203a4	1.166
patch	float	bin:0x203a8	0.95
patch	float	bin:0x203ac	0.835
patch	float	bin:0x203b0	0

## DIFFERENTIAL
patch	float	bin:0x203bc	0.85
patch	float	bin:0x203c0	0.85
patch	float	bin:0x203c4	0

## GEAR_EFFICIENCY
patch	float	bin:0x203d0	1
patch	float	bin:0x203d4	1
patch	float	bin:0x203d8	1
patch	float	bin:0x203dc	1
patch	float	bin:0x203e0	1
patch	float	bin:0x203e4	1
patch	float	bin:0x203e8	1
patch	float	bin:0x203ec	1
patch	float	bin:0x203f0	1

## TORQUE_CONVERTER
patch	float	bin:0x203f4	0.5

## TORQUE_SPLIT
patch	float	bin:0x203f8	0

## CLUTCH_SLIP
patch	float	bin:0x203fc	0.7

## SHIFT_SPEED
patch	float	bin:0x20404	0.25

## FINAL_GEAR
patch	float	bin:0x20408	2.5


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

