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

coding questions

The general place to discuss MOD''ing Freelancer!

Post Thu Jan 05, 2006 1:09 pm

coding questions

I am trying to make a mod that adds buyable upgrades, it also means that ships when bought, do not come with an engine. I know how to do this, but would it speed up the process if i just altered the goods.ini entry from:

addon (engine)

to

; addon (engine)

In other words, does a semicolon make an entry "invisible".

Also, can a ship launch without a power supply or scanner?

Post Thu Jan 05, 2006 1:22 pm

your - ; addon (engine) means it leaves out the item, in this case the engine. Just make it possible to bu one and acivate it.

As to power supply, you have to have it, though it to is an upgradeable item as a couple of mods have had it. Scanner is not needed, though your "View" is limited without it. There are a couple mods out there that do this already, so it is possible.

Post Thu Jan 05, 2006 3:04 pm

Thanks.
One more question, what does shield_link do. And do I have to do something to it to add another shield?

Post Thu Jan 05, 2006 3:43 pm

If your asking of the Hard Point, I have seen a mod with 2 shields. you just need another internal HP for it. There was rumered of multi Shield group of hard points,sho certain shied could be taken down, while others remained up.

Post Thu Jan 05, 2006 6:58 pm

Ok, i managed to make it work with the HpCloak01 hardpoint(any theories to why that is in all of the ships?).
I now have another problem. When I jettison an unmounted engine, i can't blow it up, my shots just go off to the top of the screen, missing it. I have set indestructible as false.
Here's the code for one of them:

[Engine
nickname = standard_engine
ids_name = 458753
volume = 0.000000
mass = 10
max_force = 48000
linear_drag = 599
power_usage = 0
reverse_fraction = 0.200000
flame_effect = gf_li_smallengine01_fire
trail_effect = gf_li_smallengine01_trail
trail_effect_player = gf_li_smallengine01_playtrail
cruise_charge_time = 5
cruise_power_usage = 20
character_start_sound = engine_bw_fighter_start
character_loop_sound = engine_bw_fighter_loop
character_pitch_range = -50, 25
rumble_sound = rumble_bw_h_fighter
rumble_atten_range = -5, 0
rumble_pitch_range = -25, 25
engine_kill_sound = engine_bw_fighter_kill
cruise_start_sound = engine_bw_cruise_start
cruise_loop_sound = engine_bw_cruise_loop
cruise_stop_sound = engine_bw_cruise_stop
cruise_disrupt_sound = cruise_disrupt
cruise_backfire_sound = cruise_backfire
indestructible = false
outside_cone_attenuation = -3
inside_sound_cone = 60
outside_sound_cone = 180

Return to Freelancer General Editing Forum