Jump to content
Sign in to follow this  
Nexus6

Amount of space in a AI/Players inventory

Recommended Posts

Hi All, I am creating some Nam missions using Seb LRRP rangers.

I want to depict fairly realistic loadouts for the troops so am using the removeallweapons string. My query is, I have added grenades 4, but only two show up on the player, I also want to add 2 smoke grenades, but they don't seem to show up.

Can you only add 1 weapon main, 1 rpg/launcher etc, , and 1 pistol, plus 2 grenades, this seems the norm. Do you have to call the grenade via, addweapon "grenade", add magazine "grenade" and so forth including calling smoke shells the same way, or am I scripting it incorrectly.

Or does all this depend on the unit/addons cpp file.

Thanks again, all help very much appreciated.

All Hail OFP1/2.

wink_o.gif

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

RemoveAllWeapons player; player AddMagazine "M16";player AddMagazine "M16"; player AddMagazine "M16"; player AddMagazine "M16"; player AddMagazine "M16"; player AddMagazine "M16"; player AddMagazine "M16"; player AddMagazine "M16"; player AddWeapon "M16"; player SelectWeapon "M16"; player AddMagazine "HandGrenade"; player AddMagazine "HandGrenade"

This example would be used to first remove all weapons and then to add 1x M16 Rifle, 8x M16 Mags and 2x Handgrenades.

It will work if the unit has 10 mag slots.

I don't think any addon handles it different.

Share this post


Link to post
Share on other sites

Thanks Trapper, thats a good start. I assume it counts Grenades as part of the weapon magazine loadout, so you could have 6 magazines for M16 and 4 Grenades, for the 10 slots.

Thanks again.

Nexus6

Share this post


Link to post
Share on other sites

Don't forget;

Handgun + 4 mags (i think) can also be added

Binocs and NVgoggles of course

smile_o.gif

Share this post


Link to post
Share on other sites

Realistic huh?

in that case, it should be something like 300 M16 rounds, 6 hand grenades, 200 M60 rounds and some other stuff, I can't remember exsactly what it said. I'm reading this book about a guy in the 101st Airborne durring the Vietnam War. He wrote something of that nature in it for when they loaded up (and I mean loaded). but that could only be the 101st, I don't know if it would be regular infantry though.

Share this post


Link to post
Share on other sites

Chances are we would have taken 300 M16 rounds, but only, dunno, 5 magazines, and when they were empty, refilled them using the induvidual rounds

But missions in OFP aren't long enough, and the incentive to keep your own weapon (Incase the one you pick up jams/stops working/blows up when you fire it, for example tounge2.gif) isn't there. So it's a bit pointless implementing this

- Ben

Share this post


Link to post
Share on other sites

Realistic, well yea thats true. The book I have just read about the LRRPS in Vietnam described them as carrying at least 40 m16 a1/car 15 mags, 20 frag grenades, plus Browning HP pistol with around 10 mags, so realistic loadouts are not possible. I suppose I wanted more grenades in the inventory, in case it gets hairy in indian country.

Thanks to all. The book by the way is great, 3 in the series I highly recomend them, its called. SIX SILENT MEN.

Cheers

Nexus6

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×