Is it possible [ammo resupply]?
-
Farks
- Posts: 2069
- Joined: 2007-01-20 00:08
Is it possible [ammo resupply]?
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.
-
Expendable Grunt
- Posts: 4730
- Joined: 2007-03-09 01:54
-
Alex6714
- Posts: 3900
- Joined: 2007-06-15 22:47
-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
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.Alex6714 wrote:Well tanks can now not re arm from crates but infantry can etc... How is the ammo divided?
-
Expendable Grunt
- Posts: 4730
- Joined: 2007-03-09 01:54
You've intrigued me.[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.
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>?

Former [DM] captain.
The fact that people are poor or discriminated against doesn't necessarily endow them with any special qualities of justice, nobility, charity or compassion. - Saul Alinsky
-
nedlands1
- Posts: 1467
- Joined: 2006-05-28 09:50
I could. Another possibility would be to make it supply everything but several things (eg H-AT rockets) and of course vehicle ammo.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>?
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.

-
Rhino
- Retired PR Developer
- Posts: 47909
- Joined: 2005-12-13 20:00
you can do more than that..[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.
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.
-
Expendable Grunt
- Posts: 4730
- Joined: 2007-03-09 01:54
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.[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.

Former [DM] captain.
The fact that people are poor or discriminated against doesn't necessarily endow them with any special qualities of justice, nobility, charity or compassion. - Saul Alinsky
-
nedlands1
- Posts: 1467
- Joined: 2006-05-28 09:50
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.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.

-
Expendable Grunt
- Posts: 4730
- Joined: 2007-03-09 01:54
If you set MEC bags to reload all MEC 7.62x51/54 weapons, and the M14, maybe?[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.

Former [DM] captain.
The fact that people are poor or discriminated against doesn't necessarily endow them with any special qualities of justice, nobility, charity or compassion. - Saul Alinsky
-
Expendable Grunt
- Posts: 4730
- Joined: 2007-03-09 01:54
This would replace side locking, sorry. It would be psuedo-sidelocked -- only reloading similar rounds.[R-CON]nedlands1 wrote:The "sidelocking" option doesn't allow for that.

Former [DM] captain.
The fact that people are poor or discriminated against doesn't necessarily endow them with any special qualities of justice, nobility, charity or compassion. - Saul Alinsky

