Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Add any Nc-mp ship

The general place to discuss MOD''ing Freelancer!

Post Fri Apr 18, 2003 11:06 pm

Add any Nc-mp ship

Heres my tutorial of how to add any ship (npc ships) to be pilotable. For this tutorial i will do the nomad fighter.

Tutorial is in next post.

---------------
Genius
Writer
Freelancer Software Development Kit

Post Fri Apr 18, 2003 11:33 pm

First open shiparch.ini. Search for your ship. Nomad is no, and fighter is fighter, so you use: no_fighter. Search for it and you get this:


[Ship
ids_name = 237039
ids_info = 66579
nickname = no_fighter
LODranges = 0, 80, 120, 1000
type = FIGHTER
DA_archetype = ships\nomad\no_fighter\no_fighter.3db
material_library = ships\nomad\nomad_fx.txm
nomad = true
cockpit = cockpits\liberty\l_elite.ini
mass = 150.000000
hold_size = 800
linear_drag = 1.000000
explosion_arch = explosion_no_elite
surface_hit_effects = 0, small_hull_hit_light01, small_hull_hit_light02, small_hull_hit_light03
surface_hit_effects = 150, small_hull_hit_medium01, small_hull_hit_medium02, small_hull_hit_medium03
surface_hit_effects = 300, small_hull_hit_heavy01, small_hull_hit_heavy02, small_hull_hit_heavy03
steering_torque = 43000.000000, 43000.000000, 58000.000000
angular_drag = 41000.000000, 41000.000000, 41000.000000
rotation_inertia = 8400.000000, 8400.000000, 8400.000000
nudge_force = 30000.000000
HP_tractor_source = HpMount
num_exhaust_nozzles = 1
hit_pts = 4000

You have to add these lines to make the ship pilotable. They control camera dropping goods, and etc. I will explain what the key ones do.

;This is how far back and up the camera is. If you are adding in a capital ship, these values need to be bigger.
camera_offset = 10, 30
;These are for camera turn rate and angle.
camera_angular_acceleration = 0.050000
camera_horizontal_turn_angle = 23
camera_vertical_turn_up_angle = 5
camera_vertical_turn_down_angle = 30
camera_turn_look_ahead_slerp_amount = 1.000000
;This is the animation of opening and closing the cargo bay.
bay_door_anim = Sc_open baydoor
bay_doors_open_snd = cargo_doors_open
bay_doors_close_snd = cargo_doors_close
HP_bay_surface = HpBayDoor01
HP_bay_external = HpBayDoor02
;nanobot limit... duh
nanobot_limit = 250
;If your ship has a shield, you can also use shield_battery_limit
;These allow you to change what weapons are equipped. Hardpoints differ per ship, and im too lazy to explain how to find hardpoints.
hp_type = hp_gun_special_10, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_9, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_8, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_7, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_6, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_5, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_4, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_3, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_2, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_gun_special_1, HpWeapon01, HpWeapon02, HpWeapon03
hp_type = hp_thruster, HpThruster01
hp_type = hp_torpedo_special_1, HpTorpedo01
hp_type = hp_torpedo_special_2, HpTorpedo01

Next go to goods.ini. You have to add these lines:

[Good
;hulls nickname, used later.
nickname = nf_hull
;type of good
category = shiphull
;The shipname we used earlier
ship = no_fighter
;price... duh
price = 1
;id of ship, used to tell you about the ship. This may be the wrong id, im doing this from memory.
ids_name = 12018
;icon used when sold.
item_icon = Equipment\models\commodities\nn_icons\equipicon_nomadpower..3db

[Good
;nickname, used later
nickname = nf_package
;type of good
category = ship
;which hull we used
hull = nf_hull
;addons
addon = ge_nf_engine_01, internal, 1
addon = infinite_power, internal, 1
addon = ge_s_scanner_02, internal, 1
addon = ge_s_tractor_02, internal, 1
addon = nomad_gun01_mark03, HpWeapon01, 1
addon = nomad_gun01_mark03, HpWeapon02, 1
addon = nomad_gun01_mark03, HpWeapon03, 1
addon = no_thruster, HpThruster01, 1

OK thats done. Now open up market_ships.ini. Scroll down to li01_01_base
Change
marketgood = gf2_package, 4, -1, 0, 0, 1, 1, 1
to
marketgood = nf_package, 4, -1, 0, 0, 1, 1, 1

This is just replacing the startracker (ge2) with the nomad fighter for sale at manhattan. You can do it at any base, but the ship you replace needs to be for sale at that base. The ship is around 50k, the hull was 1, but theres 3 14k guns (near there) on the ship so the price goes up.

I hope this sheds some light on how to add ships, and this will dimenish the amount of requests on the board.



I

---------------
Genius
Writer
Freelancer Software Development Kit

Return to Freelancer General Editing Forum