#####################################################
## Dacia Logan 1.6v16 replacement for RX8 ###########
## Attributes.bin patch script ######################
#####################################################

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

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

## wheel position
#   in format x,y,z,w (z=0, w=height?)
patch	float	bin:0x3fce0	1.32
patch	float	bin:0x3fce4	0.86
patch	float	bin:0x3fce8	0.0
patch	float	bin:0x3fcec	0.33

patch	float	bin:0x3fcf0	1.32
patch	float	bin:0x3fcf4	-0.86
patch	float	bin:0x3fcf8	0.0
patch	float	bin:0x3fcfc	0.33

patch	float	bin:0x3fd00	-1.27
patch	float	bin:0x3fd04	-0.86
patch	float	bin:0x3fd08	0.0
patch	float	bin:0x3fd0c	0.33

patch	float	bin:0x3fd10	-1.27
patch	float	bin:0x3fd14	0.86
patch	float	bin:0x3fd18	0.0
patch	float	bin:0x3fd1c	0.33

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

### This is where you setup the position on the wheels when bodykits are changed
## 0xccc484dc
patch	byte	bin:0x3fdd8     0
patch	byte	bin:0x3fdd9	90
patch	byte	bin:0x3fdda	0
patch	byte	bin:0x3fddb	0
patch	byte	bin:0x3fddc	0
patch	byte	bin:0x3fddd	0

## 0xfd3077e8
patch	byte	bin:0x3fde6	0
patch	byte	bin:0x3fde7	70
patch	byte	bin:0x3fde8	0
patch	byte	bin:0x3fde9	0
patch	byte	bin:0x3fdea	0
patch	byte	bin:0x3fdeb	0

###################################
######### Lights setup ############

##---------------------------------------------------
## Node: lights_setup/headlights_set
##---------------------------------------------------
##Headlights setup

## type
patch	float bin:0x1842c	0

## Size
patch	float bin:0x18434	40

## Power (intensity)
patch	float bin:0x18428	0.1

## ZBias (the distance at which lights disapears)
patch	float bin:1x18438	1.0

##---------------------------------------------------
## Node: lights_setup/taillights_set
##---------------------------------------------------
## Taillights setup

## Power (intensity)
patch	float bin:0x18548	0.1

## ZBias (the distance at which lights disapears)
patch	float bin:0x18558	0.9

##---------------------------------------------------
## Node: lights_setup/reverselights_set
##---------------------------------------------------
## Reverselights Setup

## Power (intensity)
patch	float bin:0x18728	0.1

## ZBias (the distance at which lights disapears)
patch	float bin:0x18738	1.0
