BG: One of the mods I'm on the process of making is a ship (I tried out making a couple, one based on Freespace2 "Ulysses" and the other invented) and one of the weapons that I loved from freespace was the Swarm missile. It fires four missiles on a target or dumbfire ahead. There's that long laser thingy as well...
Problem/Questions:
1) I wanted to simulate the four missiles and got around to it by putting the initial missile ammo lifetime=0, then fragment into four. However, ammo count only deducts one from current inventory. I've been looking for a virtual weapon/ammo tut and the best one I got so far was that one with Artalost's comment: "Use aWeaponType as your weapon UNID when creating shots unless you have multiple weapons using the same ammo, in which case you'll need a virtual weapon for each ammo type. Returning nil will fire the normal shot, which you may or may not want depending on what you're doing." I've also been trying to study refs such as digdugs weapon extended mod to see how he coded the dragonfly (great mod digdug

So the question for this would be: "what would be the possible codes to put in here? i reckon there's the <onfireweapon> branches and the <createweaponfire> codes for this to work, and item counts?
2) Thinking for another set, a disposable launchers (am i right in assuming putting charges here is the way) for say, Battletech style salvos like the SRM20 or LRM20 (firing 20 shots per weapon fire). So would this be almost the same encoding as question 1?
3) I saw a lightsaber mod somewhere here (I ought to study those codes as well), and was thinking of such laser weapons say, a continual press means that the weapon fires (obviously) but the sound would come out as lots of weapons firing.
What i mean here is this: The first one I coded was at a very fast fire rate, and that's where the problem arose. I coded another with a repeating trait and a slow fire rate, but this only proves even more or less wrong, as you cant control the actual length of the beam. Any ideas how to get around this? Temperature count or charges?
Thanks guys for a response to this. Also, I don't have the intention of stealing the codes I am studying this things from, I just wanted to get an idea how the things should function and I would ask permission first to those who made the first mods/codings for such things and give them due credit if I would be able to put/base from those codes onto my own mod.
