mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 18:31:43 +00:00
62ffe7e4e2
- Fixed: Heretic and Hexen completely skip all normal Z processing on mobjs with FLOATBOB set. To emulate that, we need to add NOGRAVITY to everything with that flag set.
99 lines
1.8 KiB
Text
99 lines
1.8 KiB
Text
// Blue mana ----------------------------------------------------------------
|
|
|
|
ACTOR Mana1 : Ammo 122
|
|
{
|
|
Game Hexen
|
|
SpawnID 11
|
|
Inventory.Amount 15
|
|
Inventory.MaxAmount 200
|
|
Ammo.BackpackAmount 15
|
|
Ammo.BackpackMaxAmount 200
|
|
Radius 8
|
|
Height 8
|
|
+FLOATBOB
|
|
+NOGRAVITY
|
|
Inventory.Icon "MAN1I0"
|
|
Inventory.PickupMessage "$TXT_MANA_1"
|
|
States
|
|
{
|
|
Spawn:
|
|
MAN1 ABCDEFGHI 4 Bright
|
|
Loop
|
|
}
|
|
}
|
|
|
|
// Green mana ---------------------------------------------------------------
|
|
|
|
ACTOR Mana2 : Ammo 124
|
|
{
|
|
Game Hexen
|
|
SpawnID 12
|
|
Inventory.Amount 15
|
|
Inventory.MaxAmount 200
|
|
Ammo.BackpackAmount 15
|
|
Ammo.BackpackMaxAmount 200
|
|
Radius 8
|
|
Height 8
|
|
+FLOATBOB
|
|
+NOGRAVITY
|
|
Inventory.Icon "MAN2G0"
|
|
Inventory.PickupMessage "$TXT_MANA_2"
|
|
States
|
|
{
|
|
Spawn:
|
|
MAN2 ABCDEFGHIJKLMNOP 4 Bright
|
|
Loop
|
|
}
|
|
}
|
|
|
|
// Combined mana ------------------------------------------------------------
|
|
|
|
ACTOR Mana3 : CustomInventory 8004
|
|
{
|
|
Game Hexen
|
|
SpawnID 75
|
|
Radius 8
|
|
Height 8
|
|
+FLOATBOB
|
|
+NOGRAVITY
|
|
Inventory.PickupMessage "$TXT_MANA_BOTH"
|
|
States
|
|
{
|
|
Spawn:
|
|
MAN3 ABCDEFGHIJKLMNOP 4 Bright
|
|
Loop
|
|
Pickup:
|
|
TNT1 A 0 A_GiveInventory("Mana1", 20)
|
|
TNT1 A 0 A_GiveInventory("Mana2", 20)
|
|
Stop
|
|
}
|
|
}
|
|
|
|
// Boost Mana Artifact Krater of Might ------------------------------------
|
|
|
|
ACTOR ArtiBoostMana : CustomInventory 8003
|
|
{
|
|
Game Hexen
|
|
SpawnID 26
|
|
+FLOATBOB
|
|
+NOGRAVITY
|
|
+COUNTITEM
|
|
+INVENTORY.INVBAR
|
|
+INVENTORY.PICKUPFLASH
|
|
+INVENTORY.FANCYPICKUPSOUND
|
|
Inventory.DefMaxAmount
|
|
Inventory.Icon "ARTIBMAN"
|
|
Inventory.PickupSound "misc/p_pkup"
|
|
Inventory.PickupMessage "$TXT_ARTIBOOSTMANA"
|
|
Tag "$TAG_ARTIBOOSTMANA"
|
|
States
|
|
{
|
|
Spawn:
|
|
BMAN A -1
|
|
Stop
|
|
Use:
|
|
TNT1 A 0 A_GiveInventory("Mana1", 200)
|
|
TNT1 A 0 A_GiveInventory("Mana2", 200)
|
|
Stop
|
|
}
|
|
}
|