OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: jphilapy on 02 Jul 2006, 04:21:38

Title: All that extra ammo everywhere on the ground
Post by: jphilapy on 02 Jul 2006, 04:21:38
Some of my missions are set up so that the players can drop their regular weapons and pick up a new one from the ammo crate. The problem is we end up with a great supply of m16s and ammo packs on the ground. Is there anyway to stop this?

Thanks,
Jeff
Title: Re: All that extra ammo everywhere on the ground
Post by: myke13021 on 02 Jul 2006, 10:52:27
not sure about this, but i think this happens on MP when script is executed on every client instead of server only.

but i might be wrong  :(
Title: Re: All that extra ammo everywhere on the ground
Post by: Terox on 02 Jul 2006, 13:05:59


if you mean that using the ammo crates causes the ammo to spill out over the ground, then its a well know bis problem, known as the "Ammo Bug".

It's basically causes by overloading the ammo cargo of a vehicle/ammo box etc.

3 possible methods to stop it

1) Dont overload ammo crates, especially with secondary weapons
2) Use a mod, that has it's ammo crates cargo capacity increased, or use an addon ammo crate that has its cargo space increased
3) implement the "CTI clean up ground" addaction method

Option 1 is the best idea, just place more ammo crates on the ground with less in them and remove all the cargo space in any vehicle

(see comref for how to do)