Classes:Plat

From ZDoom Wiki
Jump to navigation Jump to search

Classes: Plat

Plat is the generic sector effect for all sector platforms in the game. They use MoveFloor to move the sector.

Enums

  • EPlatState
All available statuses of the platform.
  • up
  • down
  • waiting
    • The platform is waiting for m_Count to reach 0 before going either up or down again.
  • in_stasis
    • The platform is in stasis, awaiting reactivation to do anything again.
  • EPlateState
All the available platform types, a more detailed list of all of them can be found here.
  • platPerpetualRaise
  • platDownWaitUpStay
  • platDownWaitUpStayStone
    • Same as platDownWaitUpStay, except that it makes the platform thinker use the Floor sound sequence assigned to the sector its' in, instead of the default platform sequence type.
  • platUpWaitDownStay
  • platUpNearestWaitDownStay
  • platDownByValue
  • platUpByValue
  • platUpByValueStay
  • platRaiseAndStay
  • platToggle
  • platDownToNearestFloor
  • platDownToLowestCeiling
  • platRaiseAndStayLockout

Variables

  • native readonly double m_Speed
The movement speed of the platform, in map units per tic.
  • native readonly double m_Low
The bottom Z coordinate that the platform moves towards. The lowest point.
  • native readonly double m_High
Ditto, but for the top destination height.
  • native readonly int m_Wait
The delay time in tics before the platform is allowed to move again, this is passed to the below variable.
  • native readonly int m_Count
How many tics before the platform can move again.
  • native readonly EPlatState m_Status
The current status of the platform.
  • native readonly EPlateState m_OldStatus
The previous status of the platform.
  • native readonly int m_Crush
The crushing damage, if any. That the platform does to any actors blocking its' movement.
  • native readonly int m_Tag
The tag of the sector the platform thinker is meant for.
  • native readonly EPlatType m_Type
What type of platform the thinker is.

Methods

  • bool const IsLift()
Returns if the platforms' type is platDownWaitUpStay or platDownWaitUpStayStone.