Jump to content
Sign in to follow this  
the unknown

TU-Weapon Ammo Crate Script

Recommended Posts

Well first of all if this is in the wrong section I am sorry, feel free to move it.

Ok I got bored and tought why not make a weapon/ammo crate script with all the weapons of ArmA in it.

The script is started by putting the following in the crates initfield.

[This,#] exec "TU-WeaponAmmoDump.sqs"

You will have to change the # to the Type number of what crate you want.

The Types are,

1 = Weapons and Ammo West

2 = Ammo West

3 = Weapons West

4 = Weapons and Ammo East

5 = Ammo East

6 = Weapons East

7 = Other Universal

The Independed weapons are in the west crates.

Copy Past the following code into a text editor and name it TU-WeaponAmmoDump.sqs

Then put it in the folder of your mission.

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

; ** Armed Assault Script File

; *****************************************************

; Armed Assault Weapons Crate

; Made By The Unknown

; Features

; 7 types of crates.

; Type 1 = Weapons and Ammo West

; Type 2 = Ammo West

; Type 3 = Weapons West

; Type 4 = Weapons and Ammo East

; Type 5 = Ammo East

; Type 6 = Weapons East

; Type 7 = Other Universal

; How To use:

; Place Crate put the Run Code in the Initline.

; Run Code: [This,#] exec "TU-WeaponAmmoDump.sqs"

; # = Type Number

_Dump = _this select 0

_Type = _this select 1

ClearMagazineCargo _Dump

ClearWeaponCargo _Dump

?_Type == 1 : goto "Type 1"

?_Type == 2 : goto "Type 2"

?_Type == 3 : goto "Type 3"

?_Type == 4 : goto "Type 4"

?_Type == 5 : goto "Type 5"

?_Type == 6 : goto "Type 6"

?_Type == 7 : goto "Type 7"

Exit

#Type 1

;Weapons

;AssaultRifles

_Dump AddWeaponCargo ["M16A2",20]

_Dump AddWeaponCargo ["M16A2GL",20]

_Dump AddWeaponCargo ["M4",20]

_Dump AddWeaponCargo ["M4GL",20]

_Dump AddWeaponCargo ["M4AIM",20]

_Dump AddWeaponCargo ["M4A1",20]

_Dump AddWeaponCargo ["M4A1GL",20]

_Dump AddWeaponCargo ["G36K",20]

_Dump AddWeaponCargo ["G36C",20]

_Dump AddWeaponCargo ["G36A",20]

;SubMachinguns

_Dump AddWeaponCargo ["MP5A5",20]

_Dump AddWeaponCargo ["MP5SD",20]

;Machineguns

_Dump AddWeaponCargo ["M249",20]

_Dump AddWeaponCargo ["M240",20]

;SniperRifles

_Dump AddWeaponCargo ["M24",20]

_Dump AddWeaponCargo ["M4SPR",20]

;Pistols

_Dump AddWeaponCargo ["M9",20]

_Dump AddWeaponCargo ["M9SD",20]

;Rockets

_Dump AddWeaponCargo ["M136",20]

_Dump AddWeaponCargo ["JAVELIN",20]

_Dump AddWeaponCargo ["STINGER",20]

;Ammo

;AssaultRifles

_Dump AddMagazineCargo ["30Rnd_556x45_Stanag",700]

_Dump AddMagazineCargo ["30Rnd_556x45_G36",300]

;GrenadeLauncher

_Dump AddMagazineCargo ["FlareWhite_M203",100]

_Dump AddMagazineCargo ["FlareGreen_M203",100]

_Dump AddMagazineCargo ["FlareRed_M203",100]

_Dump AddMagazineCargo ["FlareYellow_M203",100]

_Dump AddMagazineCargo ["1Rnd_HE_M203",100]

;SubMachineguns

_Dump AddMagazineCargo ["30Rnd_9x19_MP5",100]

_Dump AddMagazineCargo ["30Rnd_9x19_MP5SD",100]

;Machineguns

_Dump AddMagazineCargo ["200Rnd_556x45_M249",100]

_Dump AddMagazineCargo ["100Rnd_762x51_M240",100]

;SniperRifles

_Dump AddMagazineCargo ["5Rnd_762x51_M24",100]

_Dump AddMagazineCargo ["20Rnd_556x45_Stanag",100]

;Pistols

_Dump AddMagazineCargo ["15Rnd_9x19_M9",100]

_Dump AddMagazineCargo ["15Rnd_9x19_M9SD",100]

;Rockets

_Dump AddMagazineCargo ["M136",100]

_Dump AddMagazineCargo ["JAVELIN",100]

_Dump AddMagazineCargo ["STINGER",100]

Exit

#Type 2

;Ammo

;AssaultRifles

_Dump AddMagazineCargo ["30Rnd_556x45_Stanag",700]

_Dump AddMagazineCargo ["30Rnd_556x45_G36",300]

;GrenadeLauncher

_Dump AddMagazineCargo ["FlareWhite_M203",100]

_Dump AddMagazineCargo ["FlareGreen_M203",100]

_Dump AddMagazineCargo ["FlareRed_M203",100]

_Dump AddMagazineCargo ["FlareYellow_M203",100]

_Dump AddMagazineCargo ["1Rnd_HE_M203",100]

;SubMachineguns

_Dump AddMagazineCargo ["30Rnd_9x19_MP5",100]

_Dump AddMagazineCargo ["30Rnd_9x19_MP5SD",100]

;Machineguns

_Dump AddMagazineCargo ["200Rnd_556x45_M249",100]

_Dump AddMagazineCargo ["100Rnd_762x51_M240",100]

;SniperRifles

_Dump AddMagazineCargo ["5Rnd_762x51_M24",100]

_Dump AddMagazineCargo ["20Rnd_556x45_Stanag",100]

;Pistols

_Dump AddMagazineCargo ["15Rnd_9x19_M9",100]

_Dump AddMagazineCargo ["15Rnd_9x19_M9SD",100]

;Rockets

_Dump AddMagazineCargo ["M136",100]

_Dump AddMagazineCargo ["JAVELIN",100]

_Dump AddMagazineCargo ["STINGER",100]

Exit

#Type 3

;Weapons

;AssaultRifles

_Dump AddWeaponCargo ["M16A2",20]

_Dump AddWeaponCargo ["M16A2GL",20]

_Dump AddWeaponCargo ["M4",20]

_Dump AddWeaponCargo ["M4GL",20]

_Dump AddWeaponCargo ["M4AIM",20]

_Dump AddWeaponCargo ["M4A1",20]

_Dump AddWeaponCargo ["M4A1GL",20]

_Dump AddWeaponCargo ["G36K",20]

_Dump AddWeaponCargo ["G36C",20]

_Dump AddWeaponCargo ["G36A",20]

;SubMachinguns

_Dump AddWeaponCargo ["MP5A5",20]

_Dump AddWeaponCargo ["MP5SD",20]

;Machineguns

_Dump AddWeaponCargo ["M249",20]

_Dump AddWeaponCargo ["M240",20]

;SniperRifles

_Dump AddWeaponCargo ["M24",20]

_Dump AddWeaponCargo ["M4SPR",20]

;Pistols

_Dump AddWeaponCargo ["M9",20]

_Dump AddWeaponCargo ["M9SD",20]

;Rockets

_Dump AddWeaponCargo ["M136",20]

_Dump AddWeaponCargo ["JAVELIN",20]

_Dump AddWeaponCargo ["STINGER",20]

Exit

#Type 4

;Weapons

;AssaultRifles

_Dump AddWeaponCargo ["AK74",20]

_Dump AddWeaponCargo ["AK74GL",20]

_Dump AddWeaponCargo ["AKS74U",20]

_Dump AddWeaponCargo ["AKS74UN",20]

;MachineGuns

_Dump AddWeaponCargo ["PK",20]

;SniperRifles

_Dump AddWeaponCargo ["SVD",20]

;Rockets

_Dump AddWeaponCargo ["RPG7V",20]

_Dump AddWeaponCargo ["STRELA",20]

;Ammo

;AssaultRifles

_Dump AddMagazineCargo ["30Rnd_545x39_AK",300]

_Dump AddMagazineCargo ["30Rnd_545x39_AKSD",100]

;GrenadeLaunchers

_Dump AddMagazineCargo ["FlareWhite_GP25",50]

_Dump AddMagazineCargo ["FlareGreen_GP25",50]

_Dump AddMagazineCargo ["FlareRed_GP25",50]

_Dump AddMagazineCargo ["FlareYellow_GP25",50]

_Dump AddMagazineCargo ["1Rnd_HE_GP25",50]

;MachineGuns

_Dump AddMagazineCargo ["100Rnd_762x54_PK",100]

;SniperRifles

_Dump AddMagazineCargo ["10Rnd_762x54_SVD",100]

;Rockets

_Dump AddMagazineCargo ["PG7V",100]

_Dump AddMagazineCargo ["PG7VR",100]

_Dump AddMagazineCargo ["STRELA",100]

Exit

#Type 5

;Ammo

;AssaultRifles

_Dump AddMagazineCargo ["30Rnd_545x39_AK",300]

_Dump AddMagazineCargo ["30Rnd_545x39_AKSD",100]

;GrenadeLaunchers

_Dump AddMagazineCargo ["FlareWhite_GP25",50]

_Dump AddMagazineCargo ["FlareGreen_GP25",50]

_Dump AddMagazineCargo ["FlareRed_GP25",50]

_Dump AddMagazineCargo ["FlareYellow_GP25",50]

_Dump AddMagazineCargo ["1Rnd_HE_GP25",50]

;MachineGuns

_Dump AddMagazineCargo ["100Rnd_762x54_PK",100]

;SniperRifles

_Dump AddMagazineCargo ["10Rnd_762x54_SVD",100]

;Rockets

_Dump AddMagazineCargo ["PG7V",100]

_Dump AddMagazineCargo ["PG7VR",100]

_Dump AddMagazineCargo ["STRELA",100]

Exit

#Type 6

;Weapons

;AssaultRifles

_Dump AddWeaponCargo ["AK74",20]

_Dump AddWeaponCargo ["AK74GL",20]

_Dump AddWeaponCargo ["AKS74U",20]

_Dump AddWeaponCargo ["AKS74UN",20]

;MachineGuns

_Dump AddWeaponCargo ["PK",20]

;SniperRifles

_Dump AddWeaponCargo ["SVD",20]

;Rockets

_Dump AddWeaponCargo ["RPG7V",20]

_Dump AddWeaponCargo ["STRELA",20]

Exit

#Type 7

;Ammo

;Put

_Dump AddMagazineCargo ["PipeBomb",100]

_Dump AddMagazineCargo ["TimeBomb",100]

_Dump AddMagazineCargo ["Mine",100]

_Dump AddMagazineCargo ["MineE",100]

;Trow

_Dump AddMagazineCargo ["SmokeShellRed",100]

_Dump AddMagazineCargo ["SmokeShellGreen",100]

_Dump AddMagazineCargo ["SmokeShell",100]

_Dump AddMagazineCargo ["HandGrenadeTimed",100]

_Dump AddMagazineCargo ["HandGrenade",100]

;Equipment

;Weapons

_Dump AddWeaponCargo ["Laserdesignator",20]

_Dump AddWeaponCargo ["NVGoggles",20]

_Dump AddWeaponCargo ["Binocular",20]

;Ammo

_Dump AddMagazineCargo ["Laserbatteries",100]

Exit

If you use this it would be nice if you would give me some credit for the work I put into it.

The Unknown

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  

×