Trouble getting rid of the wretched jump delay

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
TRONTRON
Posts: 5
Joined: Sun Apr 23, 2023 1:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): windows 11

Trouble getting rid of the wretched jump delay

Post by TRONTRON »

In Gzdoom when you jump there is a horrible delay before your able to jump again. I have seen many people complain about this, but I have seen close to no ways to resolve it. In order to get rid of it I have implemented the below code, but that comes with the strange problem that you jump really high when pressed up against a short wall.

Code: Select all

	Override void Tick(){
		Super.Tick();
		If(player.jumpTics!=0){player.jumpTics=0;} //Reset the jump delay constantly
	}
Is there a fix to this, or am I going about removing the horrendous jump delay completely wrong? Any nudge in the right direction would be useful.

Return to “Scripting”