Inventory flags
Jump to navigation
Jump to search
- INVENTORY.QUIET
- When this item is picked up, its pickup sound is not played. Additionally, neither its pickup message nor the pickup palette flash are displayed.
- INVENTORY.AUTOACTIVATE
- This item activates automatically when being picked up.
- INVENTORY.UNDROPPABLE
- This item cannot be dropped once it has been picked up. Note that this also prevents the actor from being removed when ClearInventory or ClearActorInventory is called.
- INVENTORY.UNCLEARABLE
- This item cannot be removed by ClearInventory or ClearActorInventory, but can be dropped/tossed.
- INVENTORY.INVBAR
- This item is placed into the visible inventory when picked up.
- INVENTORY.HUBPOWER
- This item is kept when travelling between levels of the same hub.
- INVENTORY.PERSISTENTPOWER
- This item is kept when travelling between levels, even outside of a hub.
- INVENTORY.INTERHUBSTRIP (deprecated)
- This item is taken away when traveling between hubs or single levels. Replaced by the more flexible Inventory.InterHubAmount property.
- INVENTORY.PICKUPFLASH (deprecated)
- When being picked up a PickupFlash actor is spawned. This is the blue effect you can observe on Heretic and Hexen. This flag has been deprecated and it is recommended that you use the Inventory.PickupFlash property instead.
- INVENTORY.ALWAYSPICKUP
- This item is always picked up no matter whether the player can use it or not. This only applies to items that activate automatically.
- INVENTORY.FANCYPICKUPSOUND (deprecated)
- The pickup sound is supposed to be played in surround mode. This flag does not actually have any effect.
- INVENTORY.NOATTENPICKUPSOUND
- The pickup sound is played with no attenuation, which means it is played at full volume and is heard clearly regardless of distance.
- INVENTORY.BIGPOWERUP
- Marks this item as a 'powerful' item which is controlled by the 'mega powerups respawn' dmflag option.
- INVENTORY.NEVERRESPAWN
- An item with this flag will never respawn in any circumstance.
- INVENTORY.KEEPDEPLETED
- This item will remain in the player's inventory bar even after the last one is used. If the item also has an inventory icon, it will be drawn darkened when the quantity is 0.
- INVENTORY.IGNORESKILL
- Normally, the amount of ammo picked up from an inventory item is doubled on the easiest and hardest skill levels. If this flag is set, the item will ignore the skill setting and only give the specified ammo amount. This flag is typically used on a magazine for reloading weapons so that only one round is inserted into the magazine per round of ammunition depleted from the main ammo pool.
- INVENTORY.ADDITIVETIME
- If set, when a player picks up a second powerup of this type before the first has worn off, the new powerup's duration will be added to the old, rather than overwriting it. For example, if a powerup has a duration of 60 seconds, and a player who currently has the powerup with 21 seconds left picks up a second one, normally the new powerup will override the old and the duration will be reset to 60 seconds. With this flag set, the duration would be extended to 81 seconds instead. This flag can either be set directly on a powerup or its giver.
- INVENTORY.UNTOSSABLE
- If set, the item cannot be tossed with the drop console command.
- INVENTORY.RESTRICTABSOLUTELY
- If set, the Inventory.ForbiddenTo and Inventory.RestrictedTo will prevent player classes not allowed to pick up a weapon from attempting to pick it up for ammo. This function prevents the item's TryPickupRestricted virtual from running.
- INVENTORY.NOSCREENFLASH
- Upon picking up an item with this flag, the associated pickup palette flash will not be displayed.
- INVENTORY.TOSSED
- An item with this flag is treated as being dropped.
- INVENTORY.ALWAYSRESPAWN
- An item with this flag will always respawn, regardless of the dmflag option. Note, this flag is different from the regular ALWAYSRESPAWN flag (without prefix): the latter one is for monsters, while this one is for items. In ZScript, where flag prefixes are not optional, you have to use +INVENTORY.ALWAYSRESPAWN, not +ALWAYSRESPAWN to make it work for Inventory items. Also, if dealing with a non-Inventory pointer, you will need to cast to Inventory first in order to access this flag.
- INVENTORY.TRANSFER
- An item with this flag will transfer all items in its inventory to the acquiring actor's own.
- INVENTORY.NOTELEPORTFREEZE
- Normally, a teleporting player loses the ability to move for about half a second before regaining it; an active power with this flag overrides this behavior.This flag can either be set directly on a powerup or its giver.
- INVENTORY.NOSCREENBLINK
- Powerups will never show the fade blinking every 1/4 of a second, which serves as an expiration warning. Useful when using scripting to allow special effects to happen without the blinking causing visual interference.
- INVENTORY.ISHEALTH
- An item with this flag set does not spawn if the sv_nohealth console variable is true.
- INVENTORY.ISARMOR
- An item with this flag set does not spawn if the sv_noarmor console variable is true.