Wed Nov 12, 2003 4:29 pm by LV38_Eagle
Chips, here is what I have so far ~
There are two types of reference for loot drops in the lootprops.ini file, [mLootProps and [PhantomLoot.
[PhantomLoot is very easy to understand, hence the reason I have been able to work it out. Here is an example ~
[PhantomLoot
nickname = commodity_niobium
toughness_range = 10, 12
percent_chance = 5.980000
num_to_drop = 7, 10
So the workings are ~
nickname = commodity_niobium
This is the reference for WHAT is dropped, if it’s a commodity, it requires an [mLootProps entry, (see later), otherwise, this can be the nickname of any item sold or already lootable in Freelancer, i.e. ~
nickname = missile01_mark01_ammo
nickname = br_gun02_mark03
nickname = shield01_mark10_hf
toughness_range = 10, 12
This is the range of npc levels, at which the loot is dropped, i.e. in this case npc’s at level 10 through to 12 will drop the loot. If a single level is required something like toughness_range = 10, 10 can be used.
percent_chance = 5.980000
This is the probability of the loot being dropped. In experimentation though, it always ends up being about half of what I thought it was. You would think that 10% would give a one in ten chance of the loot drop, in practice, it is always more often.
num_to_drop = 7, 10
Umm, not too much info needed I hope, num_to_drop = 7, 10 will drop a random number between seven and ten of the item. Obviously for guns or other valuable items, this should = 1, 1
[mLootProps, this goes from very simple to unintelligible quite quickly, but this is what I know, (or am guessing at wildly). Here are a few examples ~
[mLootProps
nickname = special_nomad_gun02
drop_properties = 10, 646965, 646965, 0, 2, 1
[mLootProps
nickname = shield03_mark10_hf
drop_properties = 6, 646965, 646965, 0, 2, 1
The first one of these, (denoted by the nickname), is the Nomad Cannon, most of us know by now that this is dropped, but most of the numbers in the drop_properties are still unknown quantities. The one’s that make some sense are the second and third numbers, which in this case, though not always, correlate to one of the level requirements in ptough.ini, ptough_graph_pt = 646965, 28
For loot drops that are governed by npc level only, you can just use a [PhantomLoot entry, for faction setting, the faction name is often referred to in the type of weapon, as in the Nomad Cannon entry above, and then a Phantomloot entry to give the drop 'stats' I have once used a copied mLootProps entry from something that I know is droped by the right faction, with varying degrees of succses.
Hope this helps, but I am sorry to say that this is as far as I am at the moment, I am still working on it.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If there is anything more important than my ego around here, I want it caught and shot immediately ~ (Zaphod Beeblebrox - Hitchhikers Guide to the Galaxy)
Edited by - LV38_Eagle on 12-11-2003 16:57:06