Forum Jump :

Author Message


Posts: 3
Rank:


Level: Member

Country: se
Location:
Occupation:
Age:
In-game name: TAW_mcFlaw

 
#1 Posted at 2014-02-25 05:40        
     
Ever been annoyed that those technicals come with only 4 boxes of ammo for their machine guns and no way to rearm? I sure have.

In fact, I was so annoyed that I decided to try my hand at scripting and threw this little thing together.
Any feedback would be much appreciated. Especially feedback on performance in MP and tips on how to make the search-for-ammo action be an active action for the gunner (currently it is done in the background, allowing the gunner to fire while searching etc).

Writing this script made me want to learn more, so feedback on code structure and such is also very welcome!

Current features:
* Mission makers can initialize any vehicle with extra ammo in a virtual cargo space
* Gunners can search through said cargo space for the ammo they need
* If ammo is found, it's added to their gun's inventory
* If no ammo is found, the action is removed and the gunner has wasted his time. Better keep count next time!
* Any compatible ammo for a gun can be stored, allowing for the technical to carry the 500 round AA magazines for instance.

Possible future features (if I ever get around to improving this):
* Ability to add more ammo from ammo boxes and trucks
* Max size for virtual storage
* Ability to put ammo back into storage from the gun, and move ammo between vehicles
* Ability for gunner to take stocks on current supplies in virtual cargo

Hope this can be of some help to all of you trigger happy gunner friends out there!

Version 1.0 of the script can be found here:
FLAW_reloadfromcargo.sqf v1.0

See you on the battlefield,
mcFlaw

========
mcFlaw
2nd Battalion
Arma 3 Division
The Art of Warfare

Author Message


Posts: 20277
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#2 Posted at 2014-02-25 10:17        
     
Thanks for posting your first script here! :-)
News is up on the frontpage and you can find our mirror here:



Visit my family webshop desteigerhoutshop.nl.

Advertisement


Author Message


Posts: 1
Rank:


Level: Member

Country: uk
Location:
Occupation:
Age:
In-game name: TAW_MaverickSabre

 
#3 Posted at 2014-02-25 15:41        
     
Nice work mcFlaw :)