Gun Needing Ammo
I just made a custom gun and I need it to use ammunition (similar to missiles) - the gun is still a regular plasma gun, I only want it to use ammunition so the player has to dock to resupply.
I got the gun working (that is, it is in the equipment dealer, I can buy it, mount it, fly with it, but can't use it because there is no ammo).
My problem is the ammo. Whatever I do, it just does not show up in the equipment dealer. I tried everything, but it just won't show up.
My weapon_equip.ini entries:
"nickname" = "pell_ammo01"
"loot_appearance" = "ammo_crate"
"units_per_container" = 10
"hp_type" = "hp_gun"
"requires_ammo" = "true"
"hit_pts" = 2
"hull_damage" = 332.600006
"energy_damage" = 0
"weapon_type" = "W_Plasma01"
"one_shot_sound" = "fire_plasma2"
"munition_hit_effect" = "li_plasma_03_impact"
"const_effect" = "pell_laser_01_proj"
"lifetime" = 1.285714
"force_gun_ori" = "false"
"DA_archetype" = "equipment\\models\\weapons\\li_rad_missile.3db"
"material_library" = "equipment\\models\\li_equip.mat"
"ids_name" = 198082
"ids_info" = 67013
"mass" = 1
"volume" = 0.000100
["Gun"
"nickname" = "pell_gun01_mark01"
"ids_name" = 198081
"ids_info" = 67012
"DA_archetype" = "equipment\\models\\weapons\\li_plasma_blaster.cmp"
"material_library" = "equipment\\models\\li_equip.mat"
"HP_child" = "HPConnect"
"hit_pts" = 450
"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_4"
"damage_per_fire" = 0
"power_usage" = 47.500000
"refire_delay" = 0.357142
"muzzle_velocity" = 450
"use_animation" = "Sc_fire"
"toughness" = 3.800000
"flash_particle_name" = "li_plasma_03_flash"
"flash_radius" = 15
"light_anim" = "l_gun01_flash"
"projectile_archetype" = "pell_ammo01"
"separation_explosion" = "sever_debris"
"auto_turret" = "false"
"turn_rate" = 90
"lootable" = "true"
"LODranges" = 0, 20, 60, 100
(IDS numbers match).
My weapon_good.ini entries:
["Good"
"nickname" = "pell_gun01_mark01"
"equipment" = "pell_gun01_mark01"
"category" = "equipment"
"price" = 8929
"item_icon" = "equipment\\models\\commodities\\nn_icons\\EQUIPICON_gun.3db"
"combinable" = "false"
"ids_name" = 198081
"ids_info" = 67012
"shop_archetype" = "equipment\\models\\weapons\\li_plasma_blaster.cmp"
"material_library" = "equipment\\models\\li_equip.mat"
["Good"
nickname = "pell_ammo01"
equipment = "pell_ammo01"
shop_archetype = equipment\models\weapons\li_rad_missile.3db
material_library = equipment\models\li_equip.mat
category = equipment
price = 175
item_icon = equipment\models\commodities\nn_icons\EQUIPICON_missiles.3db
combinable = true
And my market_mic.ini entry:
["BaseGood"
"base" = "Li03_05_base"
"marketgood" = "missile01_mark01", 0, 0.400000, 10, 10, 0, 1
"marketgood" = "missile01_mark01_ammo", 0, 0.400000, 50, 50, 0, 1
"marketgood" = "missile01_mark02", 0, 0.400000, 10, 10, 0, 1.200000
"marketgood" = "missile01_mark02_ammo", 0, 0.400000, 50, 50, 0, 1
"marketgood" = "missile01_mark03", 0, 0.400000, 10, 10, 0, 1.400000
"marketgood" = "missile01_mark03_ammo", 0, 0.400000, 50, 50, 0, 1
...
and so on
...
"MarketGood" = "pell_gun01_mark01", 10, 0, 10, 10, 0, 1
"MarketGood" = "pell_ammo01", 2, 0, 50, 50, 0, 1
I hope someone can help me out on this one, I have absolutely no idea why the ammo does not show up at the dealer. The gun does and it would even work, if it had the ammo. When flying, I get the little 0 beside the gun's name, so the "requires_ammo" = "true" line is also recognised.
Any ideas?