Page 1 of 1

Is it possible [ammo resupply]?

Posted: 2008-02-21 14:17
by Farks
Is it possible to set what kind of ammo certain ammo sources will give? In that case, objects like rally points could give bullets only (no grenades, explosives, etc). A fair way to get more ammo sources back.

Posted: 2008-02-21 14:22
by Expendable Grunt
Nop.

Posted: 2008-02-21 14:35
by zangoo
umm, there is diffrent types of ammo, like the apache wouldnt get missiles off a rally as far as i know. i will look into it i know there is something that is in controll of what type of ammo gets reload, how fast and how muhc it gets reloaded.

Posted: 2008-02-21 14:42
by nedlands1
I tried coding this but with no success. I could get it to give X amount of ammo type Y but not in conjunction with A amount of ammo type B.

Posted: 2008-02-21 15:11
by Alex6714
Well tanks can now not re arm from crates but infantry can etc... How is the ammo divided?

Posted: 2008-02-21 15:11
by Rhino
put it this way, if it was possible we would have done it a long time ago ;)

Posted: 2008-02-21 15:12
by Rhino
Alex6714 wrote:Well tanks can now not re arm from crates but infantry can etc... How is the ammo divided?
there are preset groups in vBF2, like only jets can rearm at a air filed, and choppers can only rearm at heli pads etc and tanks etc cant rearm on them. we have just tweaked them as much as we can.

Posted: 2008-02-21 15:35
by gclark03
There's no way to say that, for example, the AT, AA, and Engineer kits can only resupply at Commander structures and crates?

Posted: 2008-02-21 17:16
by Expendable Grunt
[R-CON]nedlands1 wrote:I tried coding this but with no success. I could get it to give X amount of ammo type Y but not in conjunction with A amount of ammo type B.
You've intrigued me.

Does this mean you can give, for example, Rifleman Ammo a bag that resupplies a small amount of X, and a second bag with a small amount of Y, where X is <all rifles, or just certain types>, and y is <LAT rockets>?

Posted: 2008-02-21 23:18
by AnRK
Yeah that sounds damn useful. At least we could keep AT missle separate from rifle rounds etc.

Posted: 2008-02-22 01:18
by nedlands1
Expendable Grunt wrote:You've intrigued me.

Does this mean you can give, for example, Rifleman Ammo a bag that resupplies a small amount of X, and a second bag with a small amount of Y, where X is <all rifles, or just certain types>, and y is <LAT rockets>?
I could. Another possibility would be to make it supply everything but several things (eg H-AT rockets) and of course vehicle ammo.

To expand on what Rhino said, "ObjectTemplate.workOnVehicles 0" in the right spot makes ammo supplies work on infantry only and "ObjectTemplate.workOnSoldiers 0" makes it only work on vehicles. You can also team lock ammo supplies too.

Posted: 2008-02-22 01:23
by Rhino
[R-CON]nedlands1 wrote:To expand on what Rhino said, "ObjectTemplate.workOnVehicles 0" in the right spot makes ammo supplies work on infantry only and "ObjectTemplate.workOnSoldiers 0" makes it only work on vehicles. You can also team lock ammo supplies too.
you can do more than that..

ObjectTemplate.teamFromClosestCP 1 = only supplys team that has the CP closest to it.
ObjectTemplate.addVehicleType 2 = diffrent vehicle type, 2 I think is choppers, 3 is Jets, cant remember them all off the top of my head.

Posted: 2008-02-22 03:13
by Expendable Grunt
[R-CON]nedlands1 wrote:I could. Another possibility would be to make it supply everything but several things (eg H-AT rockets) and of course vehicle ammo.

To expand on what Rhino said, "ObjectTemplate.workOnVehicles 0" in the right spot makes ammo supplies work on infantry only and "ObjectTemplate.workOnSoldiers 0" makes it only work on vehicles. You can also team lock ammo supplies too.
I love you. If you manage to make all the ammo sidelocked (representing not finding NATO rounds in a PLA ammo bag, etc) and specify what bag gives what ammo, we're in business.

Posted: 2008-02-22 04:07
by nedlands1
Expendable Grunt wrote:I love you. If you manage to make all the ammo sidelocked (representing not finding NATO rounds in a PLA ammo bag, etc) and specify what bag gives what ammo, we're in business.
I imagine there will be problems "sidelocking" ammo, which I assume is done with "ObjectTemplate.team". If you pick up an enemy kit and try to resupply off an enemy's ammo bag I suspect it will fail. Also, ammo which both teams use (eg 7.62x51mm NATO which is used by both the MEC and USMC), won't be able to be gathered from enemy stores.

Posted: 2008-02-22 05:49
by Expendable Grunt
[R-CON]nedlands1 wrote:I imagine there will be problems "sidelocking" ammo, which I assume is done with "ObjectTemplate.team". If you pick up an enemy kit and try to resupply off an enemy's ammo bag I suspect it will fail. Also, ammo which both teams use (eg 7.62x51mm NATO which is used by both the MEC and USMC), won't be able to be gathered from enemy stores.
If you set MEC bags to reload all MEC 7.62x51/54 weapons, and the M14, maybe?

Posted: 2008-02-22 05:55
by nedlands1
Expendable Grunt wrote:If you set MEC bags to reload all MEC 7.62x51/54 weapons, and the M14, maybe?
The "sidelocking" option doesn't allow for that.

Posted: 2008-02-22 17:03
by Expendable Grunt
[R-CON]nedlands1 wrote:The "sidelocking" option doesn't allow for that.
This would replace side locking, sorry. It would be psuedo-sidelocked -- only reloading similar rounds.