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

**Tutorial** - NPCs - Scanning cargo

Here you find the different tutorials on editing and MODing Freelancer

Post Sat Nov 27, 2004 10:53 am

**Tutorial** - NPCs - Scanning cargo

Hi all

i looked round site and i did not find a tut for this so i decided to make 1

2 day as i was making a server side battle ship mod i notices somthing and decided to edit it and what i though would happen did

This is a tut on how to make and remove contriband

What will you need for this?

A InI Decompresser

Ok lets get started.....

Decompress Faction_prop.ini

Now open it

if you look on the factions you will see some stuff like this

Cops will have this

[FactionProps
affiliation = li_n_grp <------
legality = lawful
nickname_plurality = singular
msg_id_prefix = gcs_refer_faction_li_n
jump_preference = jumpgate
npc_ship = li_n_li_elite_d1-3
npc_ship = li_n_li_elite_d4
npc_ship = li_n_li_elite_d5
npc_ship = li_n_li_elite_d6
npc_ship = li_n_li_elite_d7
npc_ship = li_n_li_elite_d8
npc_ship = li_n_li_elite_d9
npc_ship = li_n_li_elite_d10
npc_ship = li_n_li_elite_d11-19
npc_ship = li_n_cruiser_d22
npc_ship = li_n_dreadnought_d25
voice = pilot_f_mil_m01
voice = pilot_f_mil_m02
voice = pilot_f_leg_f01
voice = pilot_f_leg_f01a
mc_costume = mc_li
space_costume = li_captain_head, li_male_elite_body, comm_ge_generic2
space_costume = li_rockford_head, li_male_elite_body, comm_li_hatcher
space_costume = li_sales_head_hat, li_male_elite_body, comm_ge_generic2
space_costume = ge_male4_head, li_male_elite_body, comm_li_hatcher
space_costume = pl_male2_head, li_male_elite_body, comm_ge_generic2
space_costume = ge_male3_head, li_male_elite_body, comm_li_hatcher
space_costume = li_newscaster_head_gen_hat, li_female_elite_body, comm_ge_generic2_female
space_costume = li_newscaster_head_gen_hat, li_female_elite_body, comm_li_hatcher_female
space_costume = br_newscaster_head_gen_hat, li_female_elite_body, comm_ge_generic2_female
space_costume = br_newscaster_head_gen_hat, li_female_elite_body, comm_li_hatcher_female
space_costume = pl_female2_head, li_female_elite_body, comm_ge_generic2_female
space_costume = pl_female2_head, li_female_elite_body, comm_li_hatcher_female
firstname_male = 226608, 226741
firstname_female = 226808, 226952
lastname = 227008, 227307
rank_desig = 197002, 197003, 197004, 6, 9
formation_desig = 197808, 197820
large_ship_desig = 196976
large_ship_names = 202608, 202647
scan_for_cargo = commodity_gold, 1 <---------------
scan_for_cargo = commodity_food, 2 <---------------
scan_announce = true <---------------
scan_chance = 0.300000 <---------------
formation = fighters, fighter_li_n


this is the info on scanning

so lets take a closer look at it

scan_for_cargo = commodity_gold, 1 <--- what thay wont to scan for ( dont know what the 1 is for yet )
scan_for_cargo = commodity_food, 2
scan_announce = true <----- i beleve this is to get them to as you to drop it when thay fin it on you
scan_chance = 0.300000 <---- the chance of you getting scanned

so if you dont wont to be scanned for gold and food do this

scan_announce = true
scan_chance = 0.300000

now thay dont have to look for any thing to scan

but i wont them to scan for water so i do this

scan_for_cargo = commodity_water
scan_announce = true
scan_chance = 0.300000

then now if i am found with water i will be asked to drop it

also note

affiliation = li_n_grp

this will just stop or make the liberty navy scan you

if you wont to be fully free of scanning in liberty you have to do all cop factions,

also i have not tryed it yet but i think you also may be able to get scanned for nano bots or maby weps

here are a list of the cargo codes

ge_s_repair_01, Nanobots
ge_s_battery_01, Shield Battery

commodity_alien_organisms, Alien Organisms
commodity_alien_artifacts, Artifacts
commodity_basic_alloys, Basic Alloy
commodity_beryllium, Beryllium
commodity_boron, Boron
commodity_cardamine, Cardamine
commodity_cobalt, Cobalt
commodity_construction_machinery, Construction Machinery
commodity_consumer_goods, Consumer Goods
commodity_copper, Copper
commodity_diamonds, Diamonds
commodity_engine_components, Engine Components
commodity_fertilizers, Fertilizer
commodity_food, Food Rations
commodity_gold, Gold
commodity_H_fuel, H-Fuel
commodity_high_temp_alloys, High Temperature Alloy
commodity_ship_hull_panels, Hull Panels
commodity_hydrocarbons, Hydrocarbons
commodity_tradelane_parts, Jump Gate / Trade Lane Parts
commodity_sidearms, Light Arms
commodity_luxury_consumer_goods, Luxury Consumer Goods
commodity_luxury_food, Luxury Food
commodity_mining_machinery, Mining Machinery
commodity_mox_fuel, MOX
commodity_niobium, Niobium
commodity_optical_chips, Optical Chips
commodity_optronics, Optronics
commodity_oxygen, Oxygen
commodity_pharm, Pharmaceuticals
commodity_polymers, Polymers
commodity_prisoners, Prisoners
commodity_scrap_metal, Scrap Metal
commodity_silver, Silver
commodity_super_alloys, Super Alloy
commodity_superconductors, Superconductors
commodity_terraforming_gases, Terraforming Gases
commodity_toxic_waste, Toxic Waste
commodity_vips, VIPs
commodity_water, Water

If any 1 tests it with the weps let us know what happenes plz

Thanks and enjoy



Edited by - some guy on 12/24/2004 8:49:39 AM

Post Sat Nov 27, 2004 11:45 am

I personally believe that the 1 and 2 is for the order of preference. If you were carrying water, gold, hydrocarbons and H-fuel, if the H-fuel was 2, the gold was 1 etc, then they would ask for the h-fuel first! I think that is what its about, the 2 are most likely to be asked for, the 1's next likely.

The scan announce is just they let you know. They say 'mind if I scan your hold?'. If that is set to false, you will only hear them say 'Okay - drop it' instead of asking to scan first.

To have silent scanning set scan announce to false, but for no scanning at all - remove all the sections totally!
The chance is a percentage, where 1 = 100% (so they will scan you when they see you), and 0.1 = 10% (scan only 10% of the time).

Post Sun Nov 28, 2004 8:50 am

yes u was right mate i put in fals and changed the 1 an 2 around and it seams u was spot on

tnx

Return to Freelancer Editing Tutorial Forum