If there are 2x randomspawners on map; i would like 1st to spawn weapon1 and 2nd to spawn weapon2.
to avoid situation when you have 2x the same weapons, and no chance to get another.
edit: I was trying to go around it by dispalying different sprite for pickup, but THE SPAWN sprite only change after player pickup the weapon
Code: Select all
Actor Mace3 : CustomInventory
{
Inventory.PickupMessage "Mace"
Inventory.Icon "hmceA0"
States
{
pickup:
TNT1 A 0 A_JumpIfInventory("Mace2", 1, "pickup_gauntlets", AAPTR_PLAYER1)
TNT1 A 0 A_GiveInventory("MaceAmmo2") //need to not pickup mace more than 1 mace
TNT1 A 0 A_GiveInventory("Mace2")
Stop
pickup_gauntlets:
TNT1 A 0 A_GiveInventory("gauntletspickup")
Stop
Spawn:
TNT1 A 0
TNT1 A 0 A_JumpIfInventory("Mace2", 1, "Spawn2", AAPTR_PLAYER1)
hmce A -1
Stop
Spawn2:
WGNT A -1
Stop
}
}
here is summon mace3 two times before picking it up. Second summon its not gauntlets... but if you pick more than one, then next spawn would be looklike gauntlets.
