+FLOAT Actor Height Control

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

XLightningStormL
Posts: 384
Joined: Mon May 09, 2016 1:38 am
Location: Anywhere but here
Contact:

+FLOAT Actor Height Control

Post by XLightningStormL »

Currently Floating Actors are a bit limited, and need an expansion via limiting, and control their float behavior, such as:

- Minimum Height - The minimum height the actor can float from the floor.
- Maximum Height - The Maximum height the actor can float from the floor if the sector allows.
- (optional) Desired Height - Preferred height the actor "wishes to maintain" (this actor wishes to maintain the distance of 64 units from the floor, unless targetting/fighting enemies)

If in a sector where it can't meet the desired height, it will limit it self to the minimum float value. If a sector is too short (obstruction of the actor, or +MAXHEIGHTTOCEIL float), self explanatory clipping.

Example: A Drone enemy that prefers to maintain a height of 64, but will float with a minimum of 32 units to the ground, but upto 128 units from thefloor if in combat.

Code Example:

Code: Select all

MinFloatHeight 32;
MaxFloatHeight 1024;
DesiredFloatHeight 64;
It's a dumb example, obviously such an actor with those constraints would dive into stupid levels since 128 is a pretty baseline height in doom mapping. Of course with "actor distance from ceiling" would be controlled with standard height, and ProjectilePassHeight properties.

Return to “Feature Suggestions [GZDoom]”