Fan
Thing type 540, Fan, is a type of Thing which slowly lifts players into mid-air in their falling frames. When the player is over the area that the fan affects, they start to float, going as high as the fan's maximum height allows. They fall when they leave the area that the fan affects.
Other notes:
- If the player is currently flying as Tails or another character that can fly, they will remain in their flying animation but are still lifted by the fan.
- If the player is currently gliding/climbing as Knuckles or another character with the same abilities, they will not be affected at all by the fan.
- The player will also not be affected by fans if they have just been hurt by an enemy or other hazard, or they are currently in a slide.
- Pushables can also be lifted up by fans.
The fan's maximum height is determined by its Angle value, measured in fracunits. When its value is 0, it defaults to a preset height of 3/4 of the total height of the sector it is in. The value can be above 360.
When underwater, the fan generates a great amount of bubbles to signify its presence. The amount of bubbles spawned depends on the distance of the nearest player, similar to the Air Bubble Patch. This behavior can be disabled by giving the fan the Ambush flag, which will make the fan always spawn the full amount of bubbles. Checking the Special flag will make the fan invisible (it will still spawn bubbles underwater even in this state).
|
States – MT_FAN | |||||||||
---|---|---|---|---|---|---|---|---|---|
State | Sprite prefix | Frame | Duration (tics) | Action | Var 1 | Var 2 | Next state | Full brightness? | Translucency |
S_FAN | FANS | A | 1 | A_FanBubbleSpawn | 2048 | 0 | S_FAN2 | No | 0% |
S_FAN2 | FANS | B | 1 | A_FanBubbleSpawn | 1024 | 0 | S_FAN3 | No | 0% |
S_FAN3 | FANS | C | 1 | A_FanBubbleSpawn | 512 | 0 | S_FAN4 | No | 0% |
S_FAN4 | FANS | D | 1 | A_FanBubbleSpawn | 1024 | 0 | S_FAN5 | No | 0% |
S_FAN5 | FANS | E | 1 | A_FanBubbleSpawn | 512 | 0 | S_FAN | No | 0% |
Thing types – Springs and fans | [view] | |
Fan • Gas Jet • Bumper • Balloon • Yellow Boost Panel • Red Boost Panel • Yellow Spring • Red Spring • Blue Spring • Diagonal Yellow Spring • Diagonal Red Spring • Diagonal Blue Spring • Horizontal Yellow Spring • Horizontal Red Spring • Horizontal Blue Spring • Yellow Spring Ball • Red Spring Ball |