Classes:ShellBox
Jump to navigation
Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
|
| Shell box | |||
|---|---|---|---|
| Actor type | Ammo | Game | |
| DoomEd Number | 2049 | Class Name | ShellBox |
| Spawn ID | 143 | Identifier | T_SHELLBOX |
Classes: Inventory→Ammo→Shell→ShellBox
A box of shells, for use with the Shotgun or SuperShotgun. Gives five times the amount of ammo from the smaller shell pickup.
ZScript definition
| Note: The ZScript definition below is for reference and may be different in the current version of UZDoom. The most up-to-date version of this code can be found on UZDoom GitHub. |
class ShellBox : Shell
{
Default
{
Inventory.PickupMessage "$GOTSHELLBOX";
Inventory.Amount 20;
}
States
{
Spawn:
SBOX A -1;
Stop;
}
}
DECORATE definition
|
Warning: This is legacy code, kept for archival purposes only. DECORATE was effectively deprecated with the introduction of ZScript. UZDoom internally uses the ZScript definition above. |
ACTOR ShellBox : Shell { Inventory.PickupMessage "$GOTSHELLBOX" // "Picked up a box of shotgun shells." Inventory.Amount 20 States { Spawn: SBOX A -1 Stop } }
