Classes:PowerHighJump

From ZDoom Wiki

Jump to: navigation, search
High jump power
Actor type Power Game
DoomEd Number None Class Name PowerHighJump

Classes: InventoryPowerupPowerHighJump

PowerHighJump is an internal class. An item of this class is placed in the player's inventory while HighJump is active. This powerup doubles the height of which the playclass jumps, until the powerup has expired.

Like all other Powerups, items of this class are never used directly. Instead you have to create a new item that inherits from PowerupGiver to give it to the player.

Example:

This defines ZDoom's High Jump item and is an example for an item that is put in the inventory:

actor HighJump : PowerupGiver
{
 inventory.pickupmessage "High Jump!!"
 inventory.icon "MEGAA0"
 powerup.color DarkSalmon 0.25
 inventory.maxamount 0
 inventory.usesound "pickups/slowmo"
 powerup.type "HighJump"
 powerup.duration 1000
 translation "128:143=144:151"
 +AUTOACTIVATE
 +INVENTORY.FANCYPICKUPSOUND
   states
 {
 Spawn:
   MEGA ABCD 4 bright
   loop
 }
}

DECORATE definition

ACTOR PowerHighJump : Powerup native {}
Personal tools