PlayerPawn property
Player.RejumpDelay tics
RejumpDelay
Availability
Zandronum's, from Q-Zandronum. Not in UZDoom.
Works in netgames. The server and every client wait the same tics, and a change made from ACS reaches every client.
Usage
Player.RejumpDelay sets how many tics a player who has landed waits before jumping again.
-1, the default, keeps the engine's own rules: no jump until landing, then 7 tics (with Skulltag jumping, 18 tics from taking off).0or more: taking off sets no wait, and landing sets this wait. Walking up a step waits at least 2 tics, so a step does not double a jump.
ACS
APROP_RejumpDelay (150) reads and sets it with GetActorProperty, SetActorProperty and
CheckActorProperty, on a player only. BCC's zcommon.bcs has it:
SetActorProperty(0, APROP_RejumpDelay, 0);
Example
// A marine who can jump again the tic he lands.
actor PogoMarine : DoomPlayer
{
Player.RejumpDelay 0
}
Implementation notes
src/zandronum/src/computation/rejumpdelay_compute.h, ported from zandronum@f6f2e6ee1991123e36a712985f37df73bf1e1ace.