1. Maak de map vehicle met daar in truck en daar weer in definition.
2. Pak een originele mercedes_actros_traffic.sii, renault_magnum_traffic.sii, scania_rcab_traffic.sii of volvo_fh16_traffic.sii. En zet deze in de definiton map.
3. Open het gekozen .sii bestand.
4. Open de definition van je mod truck.
5. Kijk wat er veranderd is in de mod truck aan parameters.
Voorbeeld van een originele mercedes_actros_traffic.sii
Code: Selecteer alles
traffic_vehicle_data: traffic.mercedes.actros
{
attachable: 1
model: "/vehicle/truck/mercedes_actros/truck.pmd"
lod: "/vehicle/truck/mercedes_actros/lod.pmd"
collision: "/vehicle/truck/mercedes_actros/truck.pmc"
fwheel_model: "/vehicle/wheel/steel/front.pmd"
rwheel_model: "/vehicle/wheel/steel/rear.pmd"
speed: 15.0
speed_class: 1
}
Code: Selecteer alles
driveable_vehicle_data: vehicle.mercedes.actros.b
{
name: "Daf 95XF 430 SC 4x2"
price: 90500
tank_size:800
avg_consumption:40
#--------
# models
#--------
model: "/vehicle/truck/faf/faf.pmd"
lod: "/vehicle/truck/mercedes_actros/lod.pmd"
collision: "/vehicle/truck/faf/faf.pmc"
variant: b
fwheel_model: "/vehicle/wheel/daf/front.pmd"
rwheel_model: "/vehicle/wheel/daf/rear.pmd"
#----------------
# physics params
#----------------
wheel_mass: 50.0
#-------------
# Child units
#-------------
chasis_data: chasis.0
sdata_ext: sound.1.ext
sdata_int: sound.1.int
preview: "volvo"
game_points: 4
vehicle_class: 1
behind_camera: camera.behind.basic
interior_camera: camera.interior.mercedes.actros
bumper_camera: camera.bumper.basic
cabin_camera: camera.cabin.basic
cabin_cam_off: (0.0, 4.5, -0.1)
wheel_camera: camera.wheel.basic
top_camera: camera.top.basic
tv_camera: camera.tv.basic
interior_data: interior.mercedes.actros.standard
sleeper: true
# Red Green Blue Alpha
default_colors[]:(198, 13, 24, 255)
default_colors[]:(101, 101, 101, 255)
default_colors[]:( 6, 90, 77, 255)
default_colors[]:( 23, 36, 73, 255)
default_colors[]:(178, 166, 150, 255)
default_colors[]:(253, 253, 253, 255)
default_colors[]:(131, 148, 167, 255)
# used for UI truck rendering
reflection_offset: (0.0, 2.50, 0.0)
# upgrade prices
upgrade_power1:6000
upgrade_power2:8000
upgrade_handling1:8000
upgrade_handling2:10000
upgrade_consumption1:1500
upgrade_consumption2:1900
upgrade_consumption3:3500
facts[]: "@@ui_engine@@: 323 kW (440 @@ui_hp@@) 2100 Nm, V6 16l"
facts[]: "@@ui_transmission@@: 12-@@ui_speeds@@"
facts[]: "@@ui_fuel_tank@@: 950 l"
}
7. Sluit alle geopende .sii bestanden.
8. Maak een .scs van de map vehicle. Volg hier eventueel de handleiding .scs maken.
9. Plaats de .scs in de mod folder, en je zult zien dat je onderweg ook jou eigen truck tegen zult komen.