##---------------------------------------------------
## 1995 Nismo GT-R LM
## Replacement for Mazda RX8
## Attributes.bin patch script
##---------------------------------------------------

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


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

## TurboSND[0]
patch	int32	bin:0x30b5c	0xaa6ba0b0

## TurboSND[1]
patch	int32	bin:0x30b6c	0xaa6ba0b0

## TurboSND[2]
patch	int32	bin:0x30b7c	0x3f333115

## TurboSND[3]
patch	int32	bin:0x30b8c	0x3f333115

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

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

## engineaudio[0]
patch	int32	bin:0x30c94	0x8d18f209

## engineaudio[1]
patch	int32	bin:0x30ca0	0x8d18f209

## engineaudio[2]
patch	int32	bin:0x30cac	0x8d18f209

## 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:0x30ad0	1
patch	float	bin:0x30ad4	2
patch	float	bin:0x30ad8	1
patch	float	bin:0x30adc	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:0x30b48	60
patch	float	bin:0x30b4c	100

## brakes_upgrades
patch	int32	bin:0x30b04	4

## induction_upgrades
patch	int32	bin:0x30b14	3

## tires_upgrades
patch	int32	bin:0x30b0c	3

## engine_upgrades
patch	int32	bin:0x30af8	4

## transmission_upgrades
patch	int32	bin:0x30afc	4

## nos_upgrades
patch	int32	bin:0x30b00	3

## chassis_upgrades
patch	int32	bin:0x30b18	3


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

## 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:0x3fce0	1.396
patch	float	bin:0x3fce4	0.93
patch	float	bin:0x3fce8	0
patch	float	bin:0x3fcec	0.37

## front right
patch	float	bin:0x3fcf0	1.396
patch	float	bin:0x3fcf4	-0.93
patch	float	bin:0x3fcf8	0
patch	float	bin:0x3fcfc	0.37

## rear right
patch	float	bin:0x3fd00	-1.317
patch	float	bin:0x3fd04	-0.94
patch	float	bin:0x3fd08	0
patch	float	bin:0x3fd0c	0.37

## rear left
patch	float	bin:0x3fd10	-1.317
patch	float	bin:0x3fd14	0.94
patch	float	bin:0x3fd18	0
patch	float	bin:0x3fd1c	0.37

## ReflectionOffset
patch	float	bin:0x3fdc4	-0.04

## 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:0x3fdd8	0
patch	int8	bin:0x3fdd9	0
patch	int8	bin:0x3fdda	0
patch	int8	bin:0x3fddb	0
patch	int8	bin:0x3fddc	0
patch	int8	bin:0x3fddd	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:0x3fde6	0
patch	int8	bin:0x3fde7	0
patch	int8	bin:0x3fde8	0
patch	int8	bin:0x3fde9	0
patch	int8	bin:0x3fdea	0
patch	int8	bin:0x3fdeb	0


##---------------------------------------------------
## Node: brakes/default/rx8
##---------------------------------------------------

## BRAKES; overall braking power per axle
## common value range is 300/400-650/700; mass dependent
patch	float	bin:0x244e8	475
patch	float	bin:0x244ec	575

## 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:0x244f0	850

## 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:0x244e0	1
patch	float	bin:0x244e4	3.3


##---------------------------------------------------
## Node: brakes/default/rx8/rx8_top
##---------------------------------------------------

## BRAKES
patch	float	bin:0x24678	585
patch	float	bin:0x2467c	675

## EBRAKE
patch	float	bin:0x24680	975

## BRAKE_LOCK
patch	float	bin:0x24670	1
patch	float	bin:0x24674	3.3


##---------------------------------------------------
## Node: engine/default/rx8
##---------------------------------------------------

## 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:0x13554	0.7
patch	float	bin:0x13558	0.8
patch	float	bin:0x1355c	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:0x1356c	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:0x13518	145
patch	float	bin:0x1351c	145
patch	float	bin:0x13520	189
patch	float	bin:0x13524	256
patch	float	bin:0x13528	305
patch	float	bin:0x1352c	290
patch	float	bin:0x13530	257
patch	float	bin:0x13534	230
patch	float	bin:0x13538	203

## 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:0x13564	7800

## 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:0x13560	9

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


##---------------------------------------------------
## Node: engine/default/rx8/rx8_top
##---------------------------------------------------

## ENGINE_BRAKING
patch	float	bin:0x14514	0.7
patch	float	bin:0x14518	0.8
patch	float	bin:0x1451c	0.9

## IDLE
patch	float	bin:0x1452c	800

## TORQUE
patch	float	bin:0x144d8	200
patch	float	bin:0x144dc	241
patch	float	bin:0x144e0	274
patch	float	bin:0x144e4	320
patch	float	bin:0x144e8	399
patch	float	bin:0x144ec	378
patch	float	bin:0x144f0	335
patch	float	bin:0x144f4	299
patch	float	bin:0x144f8	263

## MAX_RPM
patch	float	bin:0x14524	7800

## FLYWHEEL_MASS
patch	float	bin:0x14520	7.5

## RED_LINE
patch	float	bin:0x14528	6800


##---------------------------------------------------
## Node: induction/default/rx8_base
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x11d50	0.15

## LOW_BOOST
patch	float	bin:0x11d38	0.15

## PSI_ARROW_MOVE_SPEED*; always higher value for stock
patch	float	bin:0x11d48	2.5

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

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

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


##---------------------------------------------------
## Node: induction/default/rx8_base/rx8_top
##---------------------------------------------------

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

## HIGH_BOOST
patch	float	bin:0x12044	0.225

## LOW_BOOST
patch	float	bin:0x1202c	0.225

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

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

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

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

##---------------------------------------------------
## Node: transmission/default/rx8
##---------------------------------------------------

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

## GEAR_RATIO; drivetrain power transfer ratios
## common value range N/A since it differs per car
patch	float	bin:0x1ebd8	2.625
patch	float	bin:0x1ebdc	0
patch	float	bin:0x1ebe0	3.75
patch	float	bin:0x1ebe4	2.36
patch	float	bin:0x1ebe8	1.685
patch	float	bin:0x1ebec	1.312
patch	float	bin:0x1ebf0	1.07
patch	float	bin:0x1ebf4	0.85
patch	float	bin:0x1ebf8	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:0x1ec04	0.85
patch	float	bin:0x1ec08	0.85
patch	float	bin:0x1ec0c	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:0x1ec18	1
patch	float	bin:0x1ec1c	1
patch	float	bin:0x1ec20	1
patch	float	bin:0x1ec24	1
patch	float	bin:0x1ec28	1
patch	float	bin:0x1ec2c	1
patch	float	bin:0x1ec30	1
patch	float	bin:0x1ec34	1
patch	float	bin:0x1ec38	1

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

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

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

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

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


##---------------------------------------------------
## Node: transmission/default/rx8/rx8_top
##---------------------------------------------------

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

## GEAR_RATIO
patch	float	bin:0x1f6ac	2.8
patch	float	bin:0x1f6b0	0
patch	float	bin:0x1f6b4	3.75
patch	float	bin:0x1f6b8	2.36
patch	float	bin:0x1f6bc	1.685
patch	float	bin:0x1f6c0	1.312
patch	float	bin:0x1f6c4	1.07
patch	float	bin:0x1f6c8	0.85
patch	float	bin:0x1f6cc	0

## DIFFERENTIAL
patch	float	bin:0x1f6d8	0.85
patch	float	bin:0x1f6dc	0.85
patch	float	bin:0x1f6e0	0

## GEAR_EFFICIENCY
patch	float	bin:0x1f6ec	1
patch	float	bin:0x1f6f0	1
patch	float	bin:0x1f6f4	1
patch	float	bin:0x1f6f8	1
patch	float	bin:0x1f6fc	1
patch	float	bin:0x1f700	1
patch	float	bin:0x1f704	1
patch	float	bin:0x1f708	1
patch	float	bin:0x1f70c	1

## TORQUE_CONVERTER
patch	float	bin:0x1f710	0.4

## TORQUE_SPLIT
patch	float	bin:0x1f714	0

## CLUTCH_SLIP
patch	float	bin:0x1f718	0.85

## SHIFT_SPEED
patch	float	bin:0x1f720	0.25

## FINAL_GEAR
patch	float	bin:0x1f724	2.2


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

