I have these weapons, that are generated on the map and shown depending on the player class (it is supposed to be a multiplayer map) by an object that spawns them all (depending also on their own strenght) and makes each one shown only to a specific playerclass.
Now, I want the weapons to not disappear after they are picked up and be pickable suddenly by another player, and I can't use the sv_weaponstay command, because the object that is supposed to give you the weapon is just a custominventory item.
Just for example, i'll show you the definition of the object that is to give you the Fighter Axe from Hexen:
Unfortunately, this item just disappears after a player picks it up. I've tried also to make the "axegiver" respawn with the command A_SpawnItem after pickup, but unfortunately, being the player the activator, the item just moves a bit on the floor following the player's movements, causing the object to move a bit on each pickup.ACTOR AxeGiver : CustomInventory
{
SpawnID 27
Game Doom
Inventory.RespawnTics 35
Tag "Timon's Axe"
Inventory.PickupMessage "$TXT_WEAPON_F2"
//$Category Weapons
VisibleToPlayerClass "Fighter"
States
{
Spawn:
WFAX A -1
Stop
Pickup:
TNT1 A 0 A_JumpIfInventory("FWeapAxe", 1, "Failing")
TNT1 A 0 A_JumpIfInventory("ImaFighter", 1, "PickupWeapon")
Fail
Failing:
TNT1 A 0
Fail
PickupWeapon:
TNT1 A 0 A_GiveInventory("FWeapAxe", 1)
goto Spawn
}
}
Any ideas? :(