Skip to content

Commit

Permalink
Hexen II Big Mana
Browse files Browse the repository at this point in the history
Uh oh! Big!
  • Loading branch information
Lemon-King committed Aug 27, 2024
1 parent 1f9b3f8 commit 1146361
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 1 deletion.
66 changes: 66 additions & 0 deletions resources/assets/zscript/actors/hxdd/hexen2/pickups/mana.zs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
45 changes: 44 additions & 1 deletion resources/pakdata/modeldef/mana.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,50 @@
<Model file="i_btmana.md3" model="0" />
<Skin file="i_btmana_skin0.png" model="0" />

<Scale value="1 1 1" />
<Scale value="2 2 2" />
<Offset value="0 0 32" />

<Flag name="ROTATING" />
<Flag name="USEACTORPITCH" />
<Flag name="USEACTORROLL" />

<Animation key="0000" frames="1" model="0" comment="Pickup: Mana 3"/>
</Group>
<!-- Large Mana Pickups -->
<Group class="HX2ManaBig1">
<Path folder="models/hexen2" />
<Model file="i_bmana.md3" model="0" />
<Skin file="i_bmana_skin0.png" model="0" />

<Scale value="2 2 2" />
<Offset value="0 0 32" />

<Flag name="ROTATING" />
<Flag name="USEACTORPITCH" />
<Flag name="USEACTORROLL" />

<Animation key="0000" frames="1" model="0" comment="Pickup: Mana 1"/>
</Group>
<Group class="HX2ManaBig2">
<Path folder="models/hexen2" />
<Model file="i_gmana.md3" model="0" />
<Skin file="i_gmana_skin0.png" model="0" />

<Scale value="2 2 2" />
<Offset value="0 0 32" />

<Flag name="ROTATING" />
<Flag name="USEACTORPITCH" />
<Flag name="USEACTORROLL" />

<Animation key="0000" frames="1" model="0" comment="Pickup: Mana 2"/>
</Group>
<Group class="HX2ManaBig3">
<Path folder="models/hexen2" />
<Model file="i_btmana.md3" model="0" />
<Skin file="i_btmana_skin0.png" model="0" />

<Scale value="2 2 2" />
<Offset value="0 0 32" />

<Flag name="ROTATING" />
Expand Down

0 comments on commit 1146361

Please sign in to comment.