Hi Argh
Wanting to creat loot myself so I have found your post. Having made scaners, tractor and powerplants saleable at bases I want to make them lootable as well.
Decided to use the shield loot as a template. A shield generator being like a powerplant.
[mLootProps
nickname = shield01_mark01_lf
drop_properties = 6, 5000, 5000, 0, 2, 1
[mLootProps
nickname = shield01_mark10_lf
drop_properties = 6, 646965, 646965, 0, 2, 1
This means that all I need to determine is the purpose of 5000, 5000. Looking at all the shield loots these values do increase as the shield worth increases. There is not a consistant ratio though. The first shield price is 1000 (5000 / 1000 = 5). The last shield price is 289150 (646965 / 289150 = 2.24)
To test I am setting the first number to 100 to ensure they get droped. I am then setting the second and third numbers to a mean ratio value (I think mean is the right word). Namely ((5 - 2.24) / 2) + 2.24 = 3.62. The second and third numbers will be powerplant price * 3.62. I will then go hunting and hopefully looting.
OK. Nothing happend. Penny drops. NPCs don't have ordinary power plants so made infinite_power lootable and added loot_crate to misc_equip.ini. Still nothing.
[mLootProps
nickname = commodity_boron
drop_properties = 100, 0, 3333, 1, 150, 150
Commodities do drop so took 1, 150, 150 from the end. Ran test and infinite_power is now being dropped. So is the 1 an on/off switch. Changed to 1 back to a 0 and ran test. Still being dropped so on/off switch it is not. Study LootProp.ini and discover that all equipment is set to 0 and all commodities are set to 1. So it appears that the 0/1 value is a equipment/commodity switch. This means that the 150, 150 values allowed the dropping and having those values at 2, 1 meant nothing happened, during testing anyway.
Conclusion:
drop_properties = [assumed percent chance to drop, [something to do with value, [something to do with value, [equipment/commodity switch, [pos. rate of drop, [pos. rate of drop
I hope the above test results will help. I have had a late night and an early morning. I now have to walk the dog and then put away XML scipts and do some propper work with VB. It just doesn't stop.
----------------------------------------
Keep violence virtual - bring it on!