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

Non-tracking ammo-based weapons?

The general place to discuss MOD''ing Freelancer!

Post Sun Nov 21, 2004 11:43 pm

Non-tracking ammo-based weapons?

Say, I have an interesting idea that I need help with.

I'm going to make a mod that brings a primitive(although deadly) culture into Sirius by accident. All of their weapons are going to have ammo, but none of them (except their missiles) will track, and will be essentially dumb-fire.

I need to know how to engineer the weapon so that it has ammunition(like a missile), but doesn't track at all.

Post Mon Nov 22, 2004 3:10 am

well m8y i've done this before...

do you know the file's needed?

Post Mon Nov 22, 2004 3:20 am

here's a check list for ya

weapon_eqiup.ini

you need to change all "gun"_ammo settings ; change this line
requires_ammo = false
to
requires_ammo = true

and add these
volume = 0.000100
loot_appearance = ammo_crate
units_per_container = 10

to each; next:

weapon_good.ini (parabolix)
you need to add the ammo:
[Good
nickname = "name of the good"
equipment = "name of the ammo"
category = equipment
price = 10
item_icon = equipment\models\commodities\nn_icons\EQUIPICON_"turret or gun".3db
combinable = true
material_library = equipment\models\li_equip.mat
shop_archetype = equipment\models\weapons\"what ever the gun shop arch is".3db

Next:

is the market_misc.ini
now this is where the work be gins...
for each ammo bit you add one
MarketGood = "ammo", 0, -1, 10, 10, 0, 1

and your all done....

if you need more help ask

if any other one finds somthing wrong tell me

Edited by - NightHound on 11/22/2004 3:52:23 PM

Edited by - NightHound on 11/22/2004 3:52:54 PM

Post Mon Nov 22, 2004 2:47 pm

Alrighty, that worked, the guns use ammo and I get free ammo with the guns...but now there's the problem that the ammo doesn't show up in the shops. I'll post the entries I have for the weapon and goods in this post.


[Munition
nickname = ly_gun01_mark01_ammo
hp_type = hp_gun
requires_ammo = true
hit_pts = 2
hull_damage = 40.99999
energy_damage = 0
weapon_type = W_Laser01
one_shot_sound = fire_laser1
munition_hit_effect = li_laser_01_impact
const_effect = li_laser_01_proj
lifetime = 0.800000
force_gun_ori = false
mass = 1
volume = 0.000100
loot_appearance = ammo_crate
units_per_container = 10

[Gun
nickname = ly_gun01_mark01
ids_name = 263357
ids_info = 264357
DA_archetype = equipment\models\weapons\li_laser_beam.cmp
material_library = equipment\models\li_equip.mat
HP_child = HPConnect
hit_pts = 400
explosion_resistance = 1.000000
debris_type = debris_normal
parent_impulse = 20
child_impulse = 80
volume = 0.000000
mass = 10
hp_gun_type = hp_gun_special_1
damage_per_fire = 0
power_usage = 5.090000
refire_delay = 0.120000
muzzle_velocity = 750
use_animation = Sc_fire
toughness = 1.300000
flash_particle_name = li_laser_01_flash
flash_radius = 15
light_anim = l_gun01_flash
projectile_archetype = ly_gun01_mark01_ammo
separation_explosion = sever_debris
auto_turret = false
turn_rate = 90
lootable = true
LODranges = 0, 20, 40, 80, 100


[Good
nickname = ly_gun01_mark01
equipment = ly_gun01_mark01
category = equipment
price = 1
item_icon = equipment\models\commodities\nn_icons\EQUIPICON_missilelauncher.3db
combinable = false
free_ammo = ly_gun01_mark01_ammo, 10
ids_name = 263147
ids_info = 264147
shop_archetype = equipment\models\weapons\li_rad_launcher.cmp
material_library = equipment\models\li_equip.mat

[Good
nickname = ly_gun01_mark01_ammo
equipment = ly_gun01_mark01_ammo
shop_archetype = equipment\models\weapons\li_rad_missile.3db
material_library = equipment\models\li_equip.mat
category = equipment
price = 1
item_icon = equipment\models\commodities\nn_icons\EQUIPICON_missiles.3db
combinable = true

Hope you can find my error...

Post Mon Nov 22, 2004 3:03 pm

the problem might be in the line u wrote in the market file "market_misc.ini"

Post Mon Nov 22, 2004 3:04 pm

Blade,

Nighthound gave you wrong information. I'm surprised it hasn't crashed your game.

You do not, repeat, DO NOT, need to edit the st files. Those are strictly for shields and thrusters. To add weapons the only files you need to edit are weapon_equip.ini and weapon_good.ini (and market_misc.ini to sell them). I suggest you install Freelancer SDK which will restore and decompress all the .ini's.

Your weapon data goes in weapon_equip.ini. The easiest way (if you are adding new guns) is to copy the entry from a missile and paste it at the end. Or copy the entry from a gun, and change requires_ammo = false to requires_ammo = true. The ammo entry also goes in weapon_good. It should be easy to do as it is in all the weapons entries. Like I said, just copy the entry and edit.

Your prices do not go in st_equip.ini. They go in weapon_good.ini. Again, just copy an entry and paste it at the bottom, change the nicknames to yours. And make sure the ids numbers are the same for weapon_equip and weapon_good. Add your prices, and save. Then you add the weapon to market_misc. Don't forget to add your ammo to the file also. If you look in the forums you can find a complete list of base nicknames, and if you cant, you can email me or ask me in the forums to email you a list.

Post Mon Nov 22, 2004 3:50 pm

oooopps, i should redo my script files....so i don't get confused

Edited by - NightHound on 11/22/2004 3:51:09 PM

Post Mon Nov 22, 2004 3:58 pm

i'd just thourght of something, since you can hold only 50 shots are you going the make it bigger, say 500?

if so here's how
goto the constants.ini in the data folder and add this to "[Constants"
MAX_PLAYER_AMMO = 500

that will give you 500 shots, but be warned this goes for every thing that uses ammo....

Note to parabolix, next time can you just tell me i got that tiny little thing woring


Edited by - NightHound on 11/22/2004 4:04:18 PM

Post Tue Nov 23, 2004 2:45 pm

Okay... One, I already knew that the st file was not the right one, so there's one error down. Anyways, its working, lovely excellent...the only problem is, nomatter what I do, IT NEVER SHOWS UP IN THE SHOP! So, I'll keep trying things, see if I can't get it to work...

Post Tue Nov 23, 2004 3:48 pm

are you selling it, in market_misc.ini?

Post Wed Nov 24, 2004 10:12 am

u need to make sure u done every thing ok

ur wepon and the ammo need to be here : weapon_equip.ini
then ull need a good in here : weapon_good.ini
then u put it in the shop in this file : market_misc.ini
and dont forget to put it in the right base lol ,coz u might put it for sell in a base far from NY

Post Fri Nov 26, 2004 10:31 pm

edit=null post, poster skimming info too fast
*ding* (contralto voice)"077t"

Edited by - Chemus on 11/26/2004 10:35:52 PM

Return to Freelancer General Editing Forum