SetAirControl

From ZDoom Wiki
Jump to: navigation, search

void SetAirControl (int amount)

Usage

Sets how well the player can move while in the air.

Parameters

  • amount: How much control the player should have while in the air. Amount is a fixed-point value. The default is 0.00390625.

Air control is multiplied (using FixedMul) to the default “movement factor” when the player is not on the ground in an area that has gravity, and is not underwater. This gives the player very limited mobility while in the air. The “movement factor” is calculated based on the type of floor the player is on, such as icy or muddy.

Air control is also multipied to the default bob factor so that the player does not bob up and down as much when in the air.

(If you know more about this function, please edit this description)

Examples

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.
Personal tools
Namespaces

Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox