From 11463612f8ef562138aba4f52487a56d24a91849 Mon Sep 17 00:00:00 2001 From: Lemon-King Date: Tue, 27 Aug 2024 01:30:48 -0400 Subject: [PATCH] Hexen II Big Mana Uh oh! Big! --- .../actors/hxdd/hexen2/pickups/mana.zs | 66 +++++++++++++++++++ resources/pakdata/modeldef/mana.xml | 45 ++++++++++++- 2 files changed, 110 insertions(+), 1 deletion(-) diff --git a/resources/assets/zscript/actors/hxdd/hexen2/pickups/mana.zs b/resources/assets/zscript/actors/hxdd/hexen2/pickups/mana.zs index bf07d40..7b37103 100644 --- a/resources/assets/zscript/actors/hxdd/hexen2/pickups/mana.zs +++ b/resources/assets/zscript/actors/hxdd/hexen2/pickups/mana.zs @@ -58,6 +58,72 @@ class HX2Mana3 : Mana3 { override void Tick() { Super.Tick(); + self.lightlevel = LemonActor.HX2RenderPickupGlow(self); + } +} + +// Big (2x Amount) +class HX2ManaBig1 : CustomInventory { + Default { + Radius 8; + Height 8; + + +FLOATBOB + Inventory.PickupMessage "$TXT_MANA_1"; + } + States { + Spawn: + 0000 A -1 Bright; + Loop; + Pickup: + TNT1 A 0 A_GiveInventory("Mana1", 30); + Stop; + } + + override void Tick() { + Super.Tick(); + + self.lightlevel = LemonActor.HX2RenderPickupGlow(self); + } + +} +class HX2ManaBig2 : CustomInventory { + Default { + Radius 8; + Height 8; + + +FLOATBOB + Inventory.PickupMessage "$TXT_MANA_2"; + } + States { + Spawn: + 0000 A -1 Bright; + Loop; + Pickup: + TNT1 A 0 A_GiveInventory("Mana2", 30); + Stop; + } + + override void Tick() { + Super.Tick(); + + self.lightlevel = LemonActor.HX2RenderPickupGlow(self); + } +} +class HX2ManaBig3 : Mana3 { + States { + Spawn: + 0000 A -1 Bright; + Loop; + Pickup: + TNT1 A 0 A_GiveInventory("Mana1", 40); + TNT1 A 0 A_GiveInventory("Mana2", 40); + Stop; + } + + override void Tick() { + Super.Tick(); + self.lightlevel = LemonActor.HX2RenderPickupGlow(self); } } \ No newline at end of file diff --git a/resources/pakdata/modeldef/mana.xml b/resources/pakdata/modeldef/mana.xml index 178637f..2a003c8 100644 --- a/resources/pakdata/modeldef/mana.xml +++ b/resources/pakdata/modeldef/mana.xml @@ -34,7 +34,50 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +