Air control property for players

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

Moderator: GZDoom Developers

User avatar
Marrub
 
 
Posts: 1193
Joined: Tue Feb 26, 2013 2:48 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Arch Linux
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Air control property for players

Post by Marrub »

This movement code could easily be extended to allow for a variable, either in PlayerPawn or in PlayerInfo. Would also be useful to have an APROP for it:

Code: Select all

			if (!player.onground && !bNoGravity && !waterlevel)
			{
				// [RH] allow very limited movement if not on ground.
				movefactor *= level.aircontrol;
				bobfactor*= level.aircontrol;
			}
Could be something like:

Code: Select all

			if (!player.onground && !bNoGravity && !waterlevel)
			{
				// [RH] allow very limited movement if not on ground.
				movefactor *= level.aircontrol * player.aircontrol;
				bobfactor *= level.aircontrol * player.aircontrol;
			}
ZippeyKeys12
Posts: 111
Joined: Wed Jun 15, 2016 2:49 pm

Re: Air control property for players

Post by ZippeyKeys12 »

I need this, desperately.
Post Reply

Return to “Feature Suggestions [GZDoom]”