Jump to content
Sign in to follow this  
Kommiekat

Ammo crate filled with MOD special weapons/ammo

Recommended Posts

Hello, I'm trying to get some ammo/weapons crates filled with goodies that are used in special MODS like:

VME_PLA_CHINESE

http://www.armaholic.com/page.php?id=14099&highlight=CHINESE

...for a SP mission I hope to upload here some time soon.

Later I want to work with:

JSDF_Japanese MOD

http://www.armaholic.com/page.php?id=14301

These mod developers are re-texturing/meshing what seems to be pre-BLUFOR/OPFOR weapons and ammo and building on those, though not sure 100%.

I don't know how to get those weapons and ammo into crates.

Somebody please help me.

The best way is to download the mods and see for yourself what I mean.

Share this post


Link to post
Share on other sites

Hey kat... ;) I was digging around and found the class names for the PLA Mod ;)

I post this here because some people may find it useful too.

I'm not sure if the list is complete though :confused:

Place a crate and put this into its init line:

nul = [this] execVM "Crate.sqf";

Crate.sqf

// VME PLA Crate by BTK
// Maybe incomplete

_Crate = _this select 0;

clearWeaponCargo _Crate;
clearMagazineCargo _Crate;

_WeaponsAmount = 2;
_MagazinesAmount = 20;

_Weapons = [
"VME_PLA_QBZ95",
"VME_PLA_QBZ95B",
"VME_PLA_QBZ95CQB",
"VME_PLA_QBZ95SSN",
"VME_PLA_QBW95CQB",
"VME_PLA_QCZ85",
"VME_PLA_QCW85",
"VME_PLA_QBB95",
"VME_PLA_QJY88",
"VME_PLA_QJY88SSN",
"VME_PLA_KBU88",
"VME_PLA_LR1",
"VME_PLA_js58",
"VME_PLA_js58W",
"VME_PLA_PF69",
"VME_PLA_PF69A",
"VME_PLA_Fn6",
"VME_PLA_QSZ92",
"VME_PLA_QSW06"
];

_Magazines = [
"VME_PLA_30Rnd_58x42_QBZ95",
"VME_PLA_30Rnd_762x25_QCZ85",
"VME_PLA_75Rnd_58x42_QBB95",
"VME_PLA_200Rnd_58x42_QJY88",
"VME_PLA_10Rnd_58x42_KBU88",
"VME_PLA_5Rnd_127x90_LR1",
"VME_PLA_5Rnd_127x90_LR1AT",
"VME_PLA_20Rnd_58x21_Qsz92",
"VME_PLA_69III",
"VME_PLA_69HE",
"VME_PLA_69IIIA",
"VME_PLA_69HEA"
];

{ _Crate addWeaponCargo [_x, _WeaponsAmount]; } forEach _Weapons;
{ _Crate addMagazineCargo [_x, _MagazinesAmount]; } forEach _Magazines;

Share this post


Link to post
Share on other sites

Thanks SX for looking into that!

I'll test that out asap and get back to you on it.

-------------------------------------------------------

Edit: Worked like a Charm!

Exactly what I needed. Thanks for your help.

Edited by Kommiekat

Share this post


Link to post
Share on other sites

These are the Classnames out of the JSDF config. Weapons and magazines are at the bottom:-

Units :

(J.G.S.D.F)

JGSDF_Soldier_noarmor

JGSDF_Soldier

JGSDF_Officer

JGSDF_Soldier_SL

JGSDF_Soldier_TL

JGSDF_Soldier_MG_MINIMI

JGSDF_Soldier_MG_62

JGSDF_Soldier_AT_84RR

JGSDF_Soldier_AT_LMAT

JGSDF_Soldier_AT_110mm

JGSDF_Soldier_Sniper_64

JGSDF_Soldier_Sniper_64nv

JGSDF_Soldier_Sniper_24

JGSDF_Medic

JGSDF_Soldier_Crew_New

JGSDF_Soldier_Crew_Old

JGSDF_Soldier_Pilot

JGSDF_Soldier_AB

JGSDF_Soldier_SL_AB

JGSDF_Soldier_TL_AB

JGSDF_Soldier_MG_MINIMI_AB

JGSDF_Soldier_MG_62_AB

JGSDF_Soldier_AT_84RR_AB

JGSDF_Soldier_AT_LMAT_AB

JGSDF_Soldier_AT_110mm_AB

JGSDF_Soldier_Sniper_24_AB

JGSDF_Medic_AB

(J.M.S.D.F)

JMSDF_Soldier_Crew

JMSDF_Soldier_Pilot

(J.A.S.D.F)

JASDF_Soldier_Crew

JASDF_Soldier_Pilot

Backpack :

JGSDF_Backpack1

JGSDF_Backpack2

Weapon&magazine :

JSDF_W_R_Type89,JSDF_W_R_Type89_F -> JSDF_M_R_Type89_30R,JSDF_M_R_Type89_20R

JSDF_W_R_Type64,JSDF_W_R_Type64s,JSDF_W_R_Type64nv -> JSDF_M_R_Type64

JSDF_W_MG_MINIMI -> JSDF_M_MG_Minimi_200R

JSDF_W_MG_Type62 -> JSDF_M_B_7_62x51_M13_100R

JSDF_W_Throw -> JSDF_M_HG_JM26A1

JSDF_W_P_9mm -> JSDF_M_P_9mm

JSDF_W_RR_84mm -> JSDF_M_RR_84mm_FFV551_HEAT,JSDF_M_RR_84mm_FFV441_HE

JSDF_W_LR_110mmLAM -> JSDF_M_LR_110mmLAM_JM12

JSDF_W_LM_Type01LMAT -> JSDF_M_LM_Type01LMAT

Ammobox :

JSDF_BasicWeapons

EDIT: I used pboView to get to it.

Edited by twirly
Clarity

Share this post


Link to post
Share on other sites

Twirly! Dude! You have my heartfull thanks.

I'll let you in on a little secret:

As soon as I finish my very first mission and get it uploaded, my next mission will be North Korea and Japan, with NK invading the Northern Islands....

These guys have been fighting each other for centuries.

Share this post


Link to post
Share on other sites

Hi guys,

Well, I'm embarssed to ask but...I need satchels and smoke to that crate.

I tried:

_crate addMagazineCargo ["PipeBomb", 5];
_crate addMagazineCargo ["SmokeShell", 16];

but as you can see...it doesn't work...I don't know exactly why.

I think the ...._crate....maybe needs to be changed to ....._this.....

but that didn't work either.

Oh, I placed it down here:

_Magazines = [
"VME_PLA_30Rnd_58x42_QBZ95",
"VME_PLA_30Rnd_762x25_QCZ85",
"VME_PLA_75Rnd_58x42_QBB95",
"VME_PLA_200Rnd_58x42_QJY88",
"VME_PLA_10Rnd_58x42_KBU88",
"VME_PLA_5Rnd_127x90_LR1",
"VME_PLA_5Rnd_127x90_LR1AT",
"VME_PLA_20Rnd_58x21_Qsz92",
"VME_PLA_69III",
"VME_PLA_69HE",
"VME_PLA_69IIIA",
"VME_PLA_69HEA"
_crate addMagazineCargo ["PipeBomb", 5];
_crate addMagazineCargo ["SmokeShell", 16];
]; 

I know, it looks silly..:confused:

I don't know what I'm talking about:eek:

Share this post


Link to post
Share on other sites

You are close. You added a line of code to the array of magazine class names. If you want to let the script do its normal thing then just add the class name, not the whole line.

e.g

_Magazines = [
"VME_PLA_30Rnd_58x42_QBZ95",
"VME_PLA_30Rnd_762x25_QCZ85",
"VME_PLA_75Rnd_58x42_QBB95",
"VME_PLA_200Rnd_58x42_QJY88",
"VME_PLA_10Rnd_58x42_KBU88",
"VME_PLA_5Rnd_127x90_LR1",
"VME_PLA_5Rnd_127x90_LR1AT",
"VME_PLA_20Rnd_58x21_Qsz92",
"VME_PLA_69III",
"VME_PLA_69HE",
"VME_PLA_69IIIA",
"VME_PLA_69HEA",
PipeBomb",
SmokeShell"
];

BUT...per the script, that will add 20 of each to the crate (_MagazinesAmount = 20), and I assume you do not want to do that.

So, just add this code to the bottom of the script (do not alter the arrays or any other part of the script):

_Crate addMagazineCargo ["PipeBomb", 5];
_Crate addMagazineCargo ["SmokeShell", 16];

Edited by Loyalguard
typos

Share this post


Link to post
Share on other sites

Thank you for your help.

Question:

I wrote

_crate addMagazineCargo ["PipeBomb", 5];
_crate addMagazineCargo ["SmokeShell", 16];

You wrote

_Crate addMagazineCargo ["PipeBomb", 5];
_Crate addMagazineCargo ["SmokeShell", 16];

Do capital letters make a difference?

Or is it that I have it in the wrong place? Do you mean "bottom of the script" as in the very bottom?

-----
-----
-----
-----
"VME_PLA_69III",
"VME_PLA_69HE",
"VME_PLA_69IIIA",
"VME_PLA_69HEA"
];

[color="Red"]_Crate addMagazineCargo ["PipeBomb", 5];
_Crate addMagazineCargo ["SmokeShell", 16];[/color]

{ _Crate addWeaponCargo [_x, _WeaponsAmount]; } forEach _Weapons;
{ _Crate addMagazineCargo [_x, _MagazinesAmount]; } forEach _Magazines;

Again, I'm looking silly.:(

Share this post


Link to post
Share on other sites

it should not be the capital vs lowercase, I believe (not tested) that variables are not case sensitive (at least in some circumstances). The important thing is to stay consistent.

The problem was that you put it in the wrong place. Where you have placed it now should be fine. You can put those two lines of code anywhere EXCEPT before the clear... commands, inside the arrays, or inside the forEach blocks.

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  

×