Classes:ArtiPoisonBag2
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
|
| Time bomb fléchette | |||
|---|---|---|---|
| Actor type | Artifact | Game | |
| DoomEd Number | None | Class Name | ArtiPoisonBag2 |
Classes: Inventory→ArtiPoisonBag→ArtiPoisonBag2
The fléchette as used by Hexen's Mage. When used, it is dropped on the spot, and explodes very shortly afterwards.
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 ArtiPoisonBag2 : ArtiPoisonBag
{
Default
{
Inventory.Icon "ARTIPSB2";
Tag "$TAG_ARTIPOISONBAG2";
}
override bool Use (bool pickup)
{
Actor mo = Spawn("FireBomb", Owner.Vec3Offset(
16 * cos(Owner.angle),
24 * sin(Owner.angle),
-Owner.Floorclip + 8), ALLOW_REPLACE);
if (mo)
{
mo.target = Owner;
return true;
}
return false;
}
}
DECORATE definition
| Warning: This is legacy code, kept for archival purposes only. DECORATE is deprecated in GZDoom and is completely superseded by ZScript. GZDoom internally uses the ZScript definition above. |
ACTOR ArtiPoisonBag2 : ArtiPoisonBag native { Inventory.Icon "ARTIPSB2" Tag "$TAG_ARTIPOISONBAG2" }