Submunition/Ammo help

I cant get a weapon to use ammo or submunition out to another weapon. For the ammo, i have the ammo feild of the Weap resource to 354. I have that weapon submunition off to ID 211. Please help fast.

------------------
Links:
(url="http://"http://forum.cjb.net:81/cgi-bin/forum.cgi?forum=unrealslair")Unreals Fourms(/url) (url="http://"http://www.unrealslair.cjb.net/")Unreals Lair(/url) (url="http://"mailto:unrealslair@unrealslair.cjb.net")mailto:unrealslair@unrealslair.cjb.net(/url)unrealslair@unrealslair.cjb.net

Okay. If you wanted help spesific to your situation, you need to post more than just what you set those fields to - you would need to post the IDs and relevant data for all the weaps and outfs involved. I've included some examples that you should be able to figure out the general method from,

Ammo and submunitioning are toally different fields.
First, ammo:
The ammo field of a weapon must be set to refer to the weapon resource itself, not the outf that is the ammo.
Ex:
(lets say outf ID's 128-139 are used for something else - this keeps away confusion about what numbers refer to. There is no reason you have to do this, it just makes things a little easier for our purposes)
Outf 140 "Gun" : Modtype1 1 (Weapon), modval1 128 (Weapon 128)
Outf 141 "Gun ammo" : Modtype1 3 (Ammo), modval1 128 (Ammo for weapon 128)
Under novatools: Weap 128 "Gun" : Ammotype 128 (use ammo for weapon RID 128)
Under EVNEW or naked resedid: weap 128 "Gun" : Ammotype 0 (use ammo for weapon index# 0)
The reason for the difference between novatools and more basic editors is that Novatools translates the resource ID you type in into the index number that the plugin format wants, whereas the other editors do not do that. Index number of a resource is it's RID-128.

Submunitioning:
This is pretty simple, actually.
Weap 128: Subcount: 5, subtype: 128, Subtheta 90, sublimit 2
Would make a weapon that would split into 5 copies of itself at the end of it's life, which would scatter to +/- 90 degrees of the origional direction (ie, a half circle). Each of these submuns would do the same, but those submunitions wouldnt split again (because of the sublimit of 2, keeping them from submunitioning infinately)

Another example
Weap 128: Subcount: 6, Subtype: 129, Subtheta 10, sublimit 0.
Weap 129: (nothing special)
This weapon would submunition into 6 weapons of type 129 at the end of it's life, in a +/- 10 degree cone. Since its not recursive, we dont need a sublimit.

Hope this clears things up.
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)

It didnt work. If you want i can send it to you so that you can see what im talking bout.

------------------
Links:
(url="http://"http://forum.cjb.net:81/cgi-bin/forum.cgi?forum=unrealslair")Unreals Fourms(/url) (url="http://"http://www.unrealslair.cjb.net/")Unreals Lair(/url) (url="http://"mailto:unrealslair@unrealslair.cjb.net")mailto:unrealslair@unrealslair.cjb.net(/url)unrealslair@unrealslair.cjb.net

Sure. I would be happy to look at it.
-Az

------------------
It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)

Sorry, i dumped it last night before i could read this. Thanks for helpng.

------------------
Links:
(url="http://"http://forum.cjb.net:81/cgi-bin/forum.cgi?forum=unrealslair")Unreals Fourms(/url) (url="http://"http://www.unrealslair.cjb.net/")Unreals Lair(/url) (url="http://"mailto:unrealslair@unrealslair.cjb.net")mailto:unrealslair@unrealslair.cjb.net(/url)unrealslair@unrealslair.cjb.net

The next time you make a weapon that uses ammo, make sure you're using the index number (RID-128) of the weapon to draw ammo from, not the RID itself. I think it's the same for submunitions.

Quote

Originally posted by PBoat101:
The next time you make a weapon that uses ammo, make sure you're using the index number (RID-128) of the weapon to draw ammo from, not the RID itself. I think it's the same for submunitions.

Well your submunition shouldnt have its own ammo, it would be easier to make the base weapon (whatever you actually fire) have ammo and then the submunition wouldnt use it. otherwise you'd need to buy 2 different types of ammo to fire one weapon. it already requires 2 different weapon resources to make a submunition (or more, I just recently did a multi-warhead plasma weapon that actually ended up using 3 separate weapon resources just to get the effect I wanted.)

------------------
"Well, I've been thinking. How'd you like to steal $750
million worth of illegal equipment from a GENOM subsidiary and put it
to a use that will benefit society?"
Gryphon, Hopelessly Lost Vol. 4

(This message has been edited by KagatoAC (edited 12-10-2003).)

Quote

Originally posted by KagatoAC:
Well your submunition shouldnt have its own ammo,

Not what I was trying to say. I just meant that the SubType field also uses the index number.

Quote

Originally posted by KagatoAC:
Well your submunition shouldnt have its own ammo, it would be easier to make the base weapon (whatever you actually fire) have ammo and then the submunition wouldnt use it. otherwise you'd need to buy 2 different types of ammo to fire one weapon. it already requires 2 different weapon resources to make a submunition (or more, I just recently did a multi-warhead plasma weapon that actually ended up using 3 separate weapon resources just to get the effect I wanted.)

Correction: You needn't buy multiples of anything. Use Gxxx to give the player the extra weapons.

------------------
The programmer's code of entomology: there's always another bug.
Windows users: stop asking for plugins. (url="http://"http://www.aznt.com/EVN/EVNEW/")Make one yourself.(/url)