Classes:TimeFreezer

From ZDoom Wiki

Jump to: navigation, search

Classes: InventoryPowerupPowerTimeFreezer
   (more)


PowerTimeFreezer is an internal class. An item of this class is placed in the player's inventory while time is frozen. This powerup freezes all projectiles, monsters (other players too?) during the given duration of this powerup.

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 Time Freezer item and is an example for an item that is put in the inventory:

actor TimeFreezer : PowerupGiver
{
 inventory.pickupmessage "Time Freezer!!"
 inventory.icon "MEGAA0"
 inventory.maxamount 0
 inventory.usesound "pickups/slowmo"
 powerup.type "TimeFreezer"
 powerup.duration 1000
 translation "128:143=48:63"
 +AUTOACTIVATE
 +INVENTORY.FANCYPICKUPSOUND
   states
 {
 Spawn:
   MEGA ABCD 4 bright
   loop
 }
}
Personal tools