mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-05 20:40:30 +00:00
ae54e13428
- Removed AT_GAME_SET because it's no longer used anywhere. - Converted the last remaining global classes to DECORATE. - Fixed: Inventory.PickupFlash requires an class name as parameter not an integer. Some Hexen definitions got it wrong. - Converted Hexen's Pig to DECORATE. - Replaced the ActorInfo definitions of all internal inventory classes with DECORATE definitions. - Added option to specify a powerup's duration in second by using a negative number. SVN r1137 (trunk)
168 lines
3.1 KiB
Text
168 lines
3.1 KiB
Text
|
|
// Poison Bag (Flechette used by Cleric) ------------------------------------
|
|
|
|
ACTOR PoisonBag
|
|
{
|
|
Game Hexen
|
|
Radius 5
|
|
Height 5
|
|
+NOBLOCKMAP +NOGRAVITY
|
|
|
|
action native A_PoisonBagInit();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
PSBG A 18 Bright
|
|
PSBG B 4 Bright
|
|
PSBG C 3
|
|
PSBG C 1 A_PoisonBagInit
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Fire Bomb (Flechette used by Mage) ---------------------------------------
|
|
|
|
ACTOR FireBomb
|
|
{
|
|
DamageType "Fire"
|
|
+NOGRAVITY
|
|
+FOILINVUL
|
|
RenderStyle Translucent
|
|
Alpha 0.6
|
|
DeathSound "FlechetteExplode"
|
|
|
|
action native A_TimeBomb();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
PSBG A 20
|
|
PSBG AA 10
|
|
PSBG B 4
|
|
PSBG C 4 A_Scream
|
|
XPL1 A 4 Bright A_TimeBomb
|
|
XPL1 BCDEF 4 Bright
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Throwing Bomb (Flechette used by Fighter) --------------------------------
|
|
|
|
ACTOR ThrowingBomb
|
|
{
|
|
Game Hexen
|
|
Health 48
|
|
Speed 12
|
|
Radius 8
|
|
Height 10
|
|
DamageType "Fire"
|
|
+NOBLOCKMAP +DROPOFF +MISSILE
|
|
+HEXENBOUNCE
|
|
SeeSound "FlechetteBounce"
|
|
DeathSound "FlechetteExplode"
|
|
|
|
action native A_CheckThrowBomb();
|
|
action native A_CheckThrowBomb2();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
THRW A 4 A_CheckThrowBomb
|
|
THRW BCDE 3 A_CheckThrowBomb
|
|
THRW F 3 A_CheckThrowBomb2
|
|
Loop
|
|
THRW G 6 A_CheckThrowBomb
|
|
THRW F 4 A_CheckThrowBomb
|
|
THRW H 6 A_CheckThrowBomb
|
|
THRW F 4 A_CheckThrowBomb
|
|
THRW G 6 A_CheckThrowBomb
|
|
THRW F 3 A_CheckThrowBomb
|
|
Wait
|
|
Death:
|
|
CFCF Q 4 Bright A_NoGravity
|
|
CFCF R 3 Bright A_Scream
|
|
CFCF S 4 Bright A_Explode
|
|
CFCF T 3 Bright
|
|
CFCF U 4 Bright
|
|
CFCF W 3 Bright
|
|
CFCF X 4 Bright
|
|
CFCF Z 3 Bright
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Poison Bag Artifact (Flechette) ------------------------------------------
|
|
|
|
ACTOR ArtiPoisonBag : Inventory 8000 native
|
|
{
|
|
Game Hexen
|
|
SpawnID 72
|
|
+FLOATBOB
|
|
Inventory.DefMaxAmount
|
|
Inventory.PickupFlash "PickupFlash"
|
|
+INVBAR +FANCYPICKUPSOUND
|
|
Inventory.Icon "ARTIPSBG"
|
|
Inventory.PickupSound "misc/p_pkup"
|
|
Inventory.PickupMessage "$TXT_ARTIPOISONBAG"
|
|
States
|
|
{
|
|
Spawn:
|
|
PSBG A -1
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Poison Bag 1 (The Cleric's) ----------------------------------------------
|
|
|
|
ACTOR ArtiPoisonBag1 : ArtiPoisonBag native
|
|
{
|
|
Inventory.Icon "ARTIPSB1"
|
|
}
|
|
|
|
// Poison Bag 2 (The Mage's) ------------------------------------------------
|
|
|
|
ACTOR ArtiPoisonBag2 : ArtiPoisonBag native
|
|
{
|
|
Inventory.Icon "ARTIPSB2"
|
|
}
|
|
|
|
// Poison Bag 3 (The Fighter's) ---------------------------------------------
|
|
|
|
ACTOR ArtiPoisonBag3 : ArtiPoisonBag native
|
|
{
|
|
Inventory.Icon "ARTIPSB3"
|
|
}
|
|
// Poison Cloud -------------------------------------------------------------
|
|
|
|
ACTOR PoisonCloud native
|
|
{
|
|
Radius 20
|
|
Height 30
|
|
Mass 0x7fffffff
|
|
+NOBLOCKMAP +NOGRAVITY +DROPOFF
|
|
+NODAMAGETHRUST
|
|
+DONTSPLASH +FOILINVUL +CANBLAST +BLOODLESSIMPACT
|
|
RenderStyle Translucent
|
|
Alpha 0.6
|
|
DeathSound "PoisonShroomDeath"
|
|
DamageType PoisonCloud
|
|
|
|
action native A_PoisonBagDamage();
|
|
action native A_PoisonBagCheck();
|
|
|
|
States
|
|
{
|
|
Spawn:
|
|
PSBG D 1
|
|
PSBG D 1 A_Scream
|
|
PSBG DEEEFFFGGGHHHII 2 A_PoisonBagDamage
|
|
PSBG I 2 A_PoisonBagCheck
|
|
PSBG I 1 A_PoisonBagCheck
|
|
Goto Spawn + 3
|
|
Death:
|
|
PSBG HG 7
|
|
PSBG FD 6
|
|
Stop
|
|
}
|
|
}
|