;Porsche Cayman S
;Converted by Sam Jigga 01-2007
;
;INI Beta (mrwhippy)

car
{
name=Porsche Cayman S
year=2006
id=porschecaymansv01
credits=Model by EA, converted by Sam Jigga, body texture by Kevin West
comments=INI V0.1 by Mr. Whippy, Sounds by EngineOfDarkness
version=050f
wheels=4

ff_factor=0.34

skid
{
sample=skid.wav
}

shadow
{
texture=shadow.tga
width=2.25
length=4.55
offset_z=0.15
intensity_dark=0.4
intensity_light=0.1
}

cg
{
x=0 ;109mm ground clearance (PASM rides 10mm lower)
y=0.346 ;~38% of roof height ~ 496mm
z=-0.315 ;46/54 f/r
}
}

graphics
{
shadow
{
model
{
;file=shadow.dof
;use_shaders=0
}
}
}

body
{
mass=1317 ;1350kg - 160kg (unsprung) = 1190kg + 47kg fuel + 80kg driver + 0kg passenger + 0kg luggage
;1350kg Unladen weight (DIN)
;1425kg Unladen weight (EU) includes 68kg driver and 7kg luggage (75kg)
;petrol ~ 740kg/cu.m, 0.064cu.m tank ~ 47kg full tank
inertia
{
x=2130
y=2491
z=424
}
restitution_coeff=0.1
width=1.801 ;1801mm
height=1 ;1305mm
length=4.341 ;4341mm
manual_box=1

model
{
file=body.dof
;lod0_z=0
;lod1_z=50
;lod2_z=100
}
model_incar
{
file=int.dof
}
model_braking_l
{
file=bl.dof
}
model_light_l
{
;file=litb.dof
}
}
;----------------------steering----------------------

steer
{
x=0.3638
y=0.593
z=0.116
radius=10
xa=17
lock=936
linearity=0.96 ;2.6 turns (linearity = pc wheel lock / real lock)
;17.1:1 - 13.8:1 ratio (17.1 > 15 deg steer, then biases to 13.8 for manoeuvreing, used 17.1)
;11.1m turning circle

model
{
file=volan.dof
;lods on steering wheel do not work yet remove the ; when Ruud will fix that
;lod0_z=15
;lod1_z=30
lod_out=100
}
}

;----------------------engine----------------------

engine
{
mass=0
idle_rpm=900
max_rpm=7000
max_torque=0.87
curve_torque=torque.crv
autoclutch_rpm=1500
stall_rpm=500
starter=1
starter_torque=80
start_stalled=1
start_rpm=1250
torque_reaction=0

shifting
{
automatic=0
shift_up_rpm=6800
shift_down_rpm=3000
time_to_declutch=275
time_to_clutch=25
time_in_neutral=0
time_to_declutch_down=325
time_to_clutch_down=25
time_in_neutral_down=0
}

inertia
{
engine=0.25
final_drive=0.1
}

braking_coeff=2.6
rolling_friction_coeff=1
friction=0
sample=a5000.wav
sanple_rpm=5000
}

;----------------------drivetrain----------------------

gearbox
{
gears=7

gear0
{
ratio=-3.00
inertia=0.02
linearity=1
}

gear1
{
ratio=3.31
inertia=0.03
linearity=1
}

gear2
{
ratio=1.95
inertia=0.04
linearity=1
}

gear3
{
ratio=1.41
inertia=0.05
linearity=1
}

gear4
{
ratio=1.13
inertia=0.06
linearity=1
}

gear5
{
ratio=0.97
inertia=0.08
linearity=1
}

gear6
{
ratio=0.82
inertia=0.1
linearity=1
}
}

differential
{
type=0
ratio=3.87
inertia=0.1
locking_coeff=0
output0=2
output1=3
}

clutch
{
max_torque=390
}

;----------------------aerodynamics----------------------

aero
{
body
{
center=0 0.345 0
cx=0.29
area=1.8
}

wings=1

wing0
{
name=overall body lift
span=1
cord=1
coeff_drag=0
coeff_down=-0 ;0kg lift @ 200 km/h
center=0 0 0.0
angle=0
angle_offset=1
}
}

;----------------------suspension----------------------

antirollbar
{
count=2
arb0
{
susp_left=0
susp_right=1
k=46000
}
arb1
{
susp_left=2
susp_right=3
k=21000
}
}

;2415mm wheelbase
;1486mm front track
;1528mm rear track
:Front MacPherson struts and lateral control arms
:Rear MacPherson struts and lateral control arms

susp_front
{
y=0.5
z=0.9975
restlen=0.407 ;327mm, 273.7kg, 2684Nm
minlen=0.218 ;bump stop 218mm1190
maxlen=0.41
k=33156 ;NF ~ 1.75
bump_rate=1650 ;6025*0.3 ~ 1808, unsprung/2 ~ 1649
rebound_rate=4450 ;6025*0.7 ~ 4218
bump_function=0
bump_max=1500
rebound_function=0
anti_pitch=0.05
camber_change_per_m=0
roll_center
{
x=0
y=-0.119 ;30mm
z=0
}
}

susp_rear
{
y=0.5
z=-1.4175
restlen=0.39 ;317mm, 321.3kg, 3151Nm
minlen=0.208 ;bump stop 208mm
maxlen=0.4
k=43497 ;NF ~ 1.85
bump_rate=2225 ;7477*0.3 ~ 2243, unsprung/2 ~ 1892
rebound_rate=5150 ;7477*0.7 ~ 5234
bump_function=0
bump_max=1500
rebound_function=0
anti_pitch=0.15
camber_change_per_m=0
roll_center
{
x=0
y=-0.071 ;50mm
z=0
}
}

susp0~susp_front
{
x=0.775
camber_change_steering=0.147 ;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
caster_offset=-0.0235 ;8 degrees static caster -0.0235 
toe_change_per_m=0
}

susp1~susp_front
{
x=-0.775
camber_change_steering=-0.147 ;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
caster_offset=-0.0235 ;5.78 degrees static caster -0.0235
toe_change_per_m=0
}

susp2~susp_rear
{
x=0.8
toe_change_per_m=0
}

susp3~susp_rear
{
x=-0.8
toe_change_per_m=0
}

;----------------------tyres----------------------

tire_model_front
{
damping_predict_lat=0
damping_predict_long=0
}
tire_model_rear
{
damping_predict_lat=0
damping_predict_long=0
}
pacejka
{
a0=1.15
a1=-26
a2=1225
a3=2200
a4=7
a5=0.015
a6=-0.25
a7=0.1
a8=-0.03
a9=-0.001
a10=-0.15
a111=-8.5
a112=-0.29
a12=17.8
a13=-2.4
b0=1.35
b1=-40
b2=1225
b3=20
b4=325
b5=0.08
b6=0
b7=0.05
b8=-0.025
b9=0.015
b10=0.4
b11=-50
b12=0
c0=2.2
c1=-4
c2=-3
c3=-1
c4=-7
c5=0.0
c6=0.0
c7=0.044
c8=-0.58
c9=0.18
c10=0.043
c11=0.048
c12=-0.0035
c13=-0.18
c14=0.14
c15=-1.029
c16=0.27
c17=-1.1

optimal_slipratio=0.12
optimal_slipangle=0.152
}

skidding_default
{
long_start=0.1
long_max=1.0
long_start_n=0.1
long_max_n=1.0
lat_start=0.1
lat_max=1.0
}

;----------------------wheels----------------------

; Front: 8J 18, 235/40 ZR18, N3 Michelin Pilot Sport 2
; Rear: 9J 18, 265/40 ZR18, N3 Michelin Pilot Sport 2

; Front: Real data. Wheel (stock 18") 22lb, Tyre (Michelin PS2) 23.4lb = 20.6kg
; Rear: Real data. Wheel (stock 18") 23.6lb, Tyre (Michelin PS2) 25.4lb = 22.3kg

; Front: Real data. Wheel (19" Carrera Classic, PS2(235)) 45lb = 20.5kg
; Rear: Real data. Wheel (19" Carrera Classic, PS2(265)) 50lb = 22.7kg

; Alignment

; Front
; Camber = -1.0
; Toe = 0.15

; Rear
; Camber = -1.25
; Toe = 0.15

wheel_front
{
y=0
z=0
steering=1
lock=54.74
mass=41 ;21kg (wheel/tyre) + 20kg (brakes/hub and suspension component)
inertia=1.2
radius=0.3226
rolling_coeff=0.0185
max_braking=1680
braking_factor=1
tire_rate=175000

powered=0
power_gearing=0

pacejka~pacejka
{
}
}

wheel_rear
{
y=0
z=0
steering=0
lock=0
mass=39 ;23kg (wheel/tyre) + 16kg (brakes/hub and suspension component)
inertia=1.2
radius=0.3346
rolling_coeff=0.0195
max_braking=640
braking_factor=1
tire_rate=185000

powered=0
power_gearing=0

pacejka~pacejka
{
a0=1.2
a1=-30
a2=1300
a3=2100
a4=8
b0=1.4
b1=-45
b2=1300

optimal_slipratio=0.11
optimal_slipangle=0.154
}
}

wheel0~wheel_front
{
x=0
ackerman=1.15
toe=-0
camber=0
model
{
file=fwl.dof
;lod0_z=0
;lod1_z=10
}
model_brake
{
file=fbl.dof
}
}

wheel1~wheel_front
{
x=0
ackerman=-1.15
toe=0
camber=0
model
{
file=fwr.dof
;lod0_z=0
;lod1_z=10
}
model_brake
{
file=fbr.dof
}
}

wheel2~wheel_rear
{
x=0
toe=-0
camber=0
model
{
file=bwl.dof
;lod0_z=0
;lod1_z=10
}
model_brake
{
file=bbl.dof
}
}

wheel3~wheel_rear
{
x=0
toe=0
camber=0
model
{
file=bwr.dof
;lod0_z=0
;lod1_z=10
}
model_brake
{
file=bbr.dof
}
}

handbrakes
{
wheels=23
}

;----------------------cameras----------------------


camera1
{
  offset
  {
    x=-0.006250
    y=3.
    z=-7.495010
  }
  angle
  {
    x=15.138849
    y=180.173615
    z=180.000000
  }
  name=Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  ; Source/target inertia
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera0
{
  offset
  {
    x=0
    y=1.513334
    z=-5.045006
  }
  angle
  {
    x=21
    y=180
    z=50
  }
  name=Chase Close
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  ; Source/target inertia
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera8
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.3720
    y=-0.869
    z=-0.57
  }
  angle
  {
    x=-0.
    y=-180.694473
    z=0.000000
  }
   fov=70
   ;Type of model to use; 0=outside, 1=inside, 2=none
   model=1
   wheels=0
   view=1
   name=Inside pssngr
}
camera2
{
  offset
  {
    x=0
    y=-0.4
    z=2.100000
  }
  angle
  {
    x=0.000000
    y=180.000000
    z=0.000000
  }
  name=Bumper
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  fov=60
  model=2
  wheels=0
  view=2
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.962501
    z=0.7
  }
  angle
  {
    x=9.027775
    y=180
    z=0.000000
  }
  name=Hood
  fov=60
  model=1
  wheels=0
  view=0
}
camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Rear Side
}
camera6
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.121874
    y=-0.064583
    z=-5.590004
  }
  angle
  {
    x=35.555546
    y=-83.159645
    z=16.579861
  }
  name=Side High
  fov=40
  model=0
  wheels=1
  view=0
}
camera7
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=-0.001563
    y=-0.179167
    z=-12.000000
  }
  angle
  {
    x=44.000000
    y=0.000000
    z=0.000000
  }
  fov=26
  model=0
  wheels=1
  view=0
  name=Front High
}
camera9
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0.3720
    y=0.869
    z=-0.37
  }
  offset_to
  {
    x=0.356
    y=0
    z=10
  }
  angle
  {
    x=0
    y=0
    z=0
  }
   fov=75
   model=1
   wheels=0
   view=1
   name=Inside Driver
  src
  {
    mass=5
    k=750
    damping=85
    maxdist=0.25
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera5
{
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0.000000
    y=-1.000000
    z=-8.185002
  }
  angle
  {
    x=21.666662
    y=-105.555519
    z=2.430554
  }
  name=High
}

;----------------------audio----------------------

audio
{
skid
{
sample=skid.wav
}
acc_all
{
attack=2600
decay=2600
}

accelerate_out
{
smp0~audio.acc_all
{
sample=2000-a.wav
min=1
max=2001
natural=2000
volume=2.1
attack=2000
decay=2000
}
smp1~audio.acc_all
{
sample=4000-a.wav
min=3999
max=4001
natural=4000
volume=2.1
attack=2000
decay=2000
}
smp2~audio.acc_all
{
sample=6000-a.wav
min=5999
max=6001
natural=6000
volume=2.1
attack=2000
decay=1000
}
smp3~audio.acc_all
{
sample=7000-a.wav
min=6999
max=7001
natural=7000
volume=2.1
attack=1000
decay=1000
}
}

decelerate_out
{
smp0~audio.acc_all
{
sample=2000.wav
min=1
max=2001
natural=2000
volume=2.2
attack=2000
decay=2000
}
smp1~audio.acc_all
{
sample=4000.wav
min=3999
max=4001
natural=4000
volume=2.2
attack=2000
decay=2000
}
smp2~audio.acc_all
{
sample=6000.wav
min=5999
max=6001
natural=6000
volume=2.2
attack=2000
decay=1000
}
smp3~audio.acc_all
{
sample=7000.wav
min=6999
max=7001
natural=7000
volume=2.2
attack=1000
decay=1000
}
}

wind
{
pitch_scale=0
pitch_offset=50
smp0
{
sample=wind1.wav
min=25
max=26
attack=33
decay=33
natural=80
volume=1
}
smp1
{
sample=wind2.wav
min=50
max=51
attack=33
decay=33
natural=80
volume=2
}
smp2
{
sample=wind3.wav
min=75
max=76
attack=33
decay=33
natural=80
volume=3
}
}
}

;----------------------driving aids----------------------

traction_control
{
max_velocity_ratio=1.2
min_velocity_ratio=1.1
enable=0
}

abs
{
max_velocity_ratio=1.2
min_velocity_ratio=1.1
enable=1
}