//////////////////////////
/////// CRATES ///////////
//////////////////////////

Actor WeaponCrate : CustomInventory
{
-NOGRAVITY
+NOTARGET
+SHOOTABLE
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
+BRIGHT
+CANPASS
+SOLID
Inventory.PickupMessage ""
gravity 0.6
health 1
height 12
radius 24
xscale 1.0
yscale 0.5
DeathSound "weapons/rocklx"

states
{
Spawn:
WCRT ABCDEFGHIJIHGFEDCB 2
LOOP
Pickup:
Use:
WCRT A 1
WCRT A 1 ACS_Execute(979, 0, 1)
stop
Death:
TNT1 A 1 A_Scream
TNT1 A 0 A_SpawnItem("BarrelFireScript", 0, 16, 0)
TNT1 A 0 A_SpawnItemEx("Explosion_Spawner_M", 0, 0, 0, 0, 0, 0, 0, 0, 0)
TNT1 A 0 A_Explode(96, 128, 1)
stop
}}

Actor ToolCrate : CustomInventory
{
-NOGRAVITY
+SHOOTABLE
+NOTARGET
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
+BRIGHT
+CANPASS
+SOLID
Inventory.PickupMessage ""
gravity 0.6
health 1
height 12
radius 24
xscale 1.0
yscale 0.5
DeathSound "weapons/rocklx"

states
{
Spawn:
TCRT ABCDEFGHIJIHGFEDCB 2
LOOP
Pickup:
Use:
TCRT A 1
TCRT A 1 ACS_Execute(979, 0, 2)
stop
Death:
TNT1 A 1 A_Scream
TNT1 A 0 A_SpawnItem("BarrelFireScript", 0, 16, 0)
TNT1 A 0 A_SpawnItemEx("Explosion_Spawner_M", 0, 0, 0, 0, 0, 0, 0, 0, 0)
TNT1 A 0 A_Explode(96, 128, 1)
stop
}}

Actor Stimpack2 : CustomInventory replaces Stimpack 
{
-NOGRAVITY
+SHOOTABLE
+NOTARGET
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
+BRIGHT
+CANPASS
+SOLID
Inventory.PickupMessage ""
gravity 0.6
health 1
height 12
radius 24
xscale 1.0
yscale 0.5
DeathSound "weapons/rocklx"
Scale 0.7
States
{
Spawn:
MKIT ABCDEFGHIJIHGFEDCB 3
loop
Use:
TCRT A 1
TCRT A 1 ACS_Execute(979, 0, 3, 25)
stop
Death:
TNT1 A 1 A_Scream
TNT1 A 0 A_SpawnItem("BarrelFireScript", 0, 16, 0)
TNT1 A 0 A_SpawnItemEx("Explosion_Spawner_M", 0, 0, 0, 0, 0, 0, 0, 0, 0)
TNT1 A 0 A_Explode(96, 128, 1)
stop
}}

Actor Medikit2 : CustomInventory replaces Medikit 
{
-NOGRAVITY
+SHOOTABLE
+NOTARGET
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
+BRIGHT
+CANPASS
+SOLID
States
{
Spawn:
MKIT ABCDEFGHIJIHGFEDCB 3
loop
Use:
TCRT A 1
TCRT A 1 ACS_Execute(979, 0, 3, 50)
stop
Death:
TNT1 A 1 A_Scream
TNT1 A 0 A_SpawnItem("BarrelFireScript", 0, 16, 0)
TNT1 A 0 A_SpawnItemEx("Explosion_Spawner_M", 0, 0, 0, 0, 0, 0, 0, 0, 0)
TNT1 A 0 A_Explode(96, 128, 1)
stop
}}

//////////////////////////////////////////////////////////
///////////////// INVENTORY ITEMS ////////////////////////
//////////////////////////////////////////////////////////


Actor RopeAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WSKPA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor NapalmStrikeAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WSKPA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor SkipTurnAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WSKPA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor ParachuteAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WPARA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor KickAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WKIKA0"
states
{
Spawn:
TNT1 A -1
stop
}}


Actor BazookaAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WRCKA0"
states
{
Spawn:
TNT1 A -1
stop
}}


Actor GrenadeAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WGRNA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor ClusterAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WCLSA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor WeaponShotgun : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WSHTA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor WeaponUzi : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WUZIA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor MolotovAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WBOTA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor MineAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WMINA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor DemonAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WDEMA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor ClusterDemonAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WCDMA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor BatAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WBATA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor PlasmaAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WPLSA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor BFGAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WBFGA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor TeleportAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WTELA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor AirStrikeAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WAIRA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor RailgunAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WRALA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor JetpackAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WJETA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor HomingMissileAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WHOMA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor KamikazeBomberAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WKMBA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor GirderAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WGIRA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor GirderKitAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WGR2A0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor BananaAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WBANA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor DynamiteAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WBANA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor FlamethrowerAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WFLMA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor BarrierAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WBRXA0"
states
{
Spawn:
TNT1 A -1
stop
}}

Actor SentryGunAmmo : Inventory
{
inventory.Amount 1
Inventory.MaxAmount 100
+INVENTORY.KEEPDEPLETED
Inventory.Icon "WSENA0"
states
{
Spawn:
TNT1 A -1
stop
}}