20#include <glm/vec2.hpp>
21#include <glm/vec3.hpp>
Visible / replicated half of the player locomotion state.
Read-only counterpart of PlayerStateRef, for const consumers.
Definition PlayerSimState.hpp:120
const PlayerSimState & sim
Definition PlayerSimState.hpp:122
const PlayerVisState & vis
Definition PlayerSimState.hpp:121
Server-only locomotion bookkeeping.
Definition PlayerSimState.hpp:29
float exitWallTimer
Remaining exit-wall grace time (s).
Definition PlayerSimState.hpp:60
float wallRunTimer
Time on current wall (s).
Definition PlayerSimState.hpp:58
bool canEnterSlide
Cleared when in air, set on landing.
Definition PlayerSimState.hpp:53
bool wasGroundedLastTick
Definition PlayerSimState.hpp:38
bool jumpHeldLastTick
Was jump key held on the previous tick (edge detection).
Definition PlayerSimState.hpp:33
bool canDoubleJump
Reset on land / wallrun / climb.
Definition PlayerSimState.hpp:31
bool jumpLurchEnabled
True during the lurch grace window after jumping.
Definition PlayerSimState.hpp:44
float wallBlacklistHeight
Definition PlayerSimState.hpp:65
int slideFatigueDecayAccum
Tick accumulator for fatigue recovery.
Definition PlayerSimState.hpp:52
float jumpCooldown
Minimum time before double jump is available (s).
Definition PlayerSimState.hpp:34
int slideFatigueCounter
Diminishing returns on consecutive slidehops.
Definition PlayerSimState.hpp:50
float climbBlacklistHeight
Definition PlayerSimState.hpp:86
float exitLedgeTimer
Definition PlayerSimState.hpp:94
float climbTimer
Time on current climb (s).
Definition PlayerSimState.hpp:80
glm::vec3 wallNormal
Normal of the wall being run on.
Definition PlayerSimState.hpp:56
float slideTimer
How long the current slide has lasted (s).
Definition PlayerSimState.hpp:49
bool wallBlacklistActive
Definition PlayerSimState.hpp:66
bool jumpedThisTick
Set during the tick a jump occurs (for lurch setup).
Definition PlayerSimState.hpp:32
bool climbBlacklistActive
Definition PlayerSimState.hpp:87
float jumpLurchTimer
Time elapsed since the jump that enabled lurch (s).
Definition PlayerSimState.hpp:45
float groundedDuration
Time continuously grounded (s); resets on leaving ground.
Definition PlayerSimState.hpp:39
float ledgeHoldTimer
Time spent holding the ledge (s).
Definition PlayerSimState.hpp:92
glm::vec3 climbBlacklistNormal
Definition PlayerSimState.hpp:85
float grapplePullTimer
Time spent being pulled (s).
Definition PlayerSimState.hpp:99
bool exitingLedge
Definition PlayerSimState.hpp:93
glm::vec3 wallBlacklistNormal
Definition PlayerSimState.hpp:64
glm::vec3 climbWallNormal
Normal of the wall being climbed.
Definition PlayerSimState.hpp:79
bool wallJumpLocked
Wall-jump autobhop lock.
Definition PlayerSimState.hpp:76
glm::vec3 grapplePullDir
Cached pull direction (toward anchor at fire time).
Definition PlayerSimState.hpp:100
bool grappleInputLastTick
Edge detection on the grapple key.
Definition PlayerSimState.hpp:101
float slideBoostCooldown
Remaining cooldown before next slide boost (s).
Definition PlayerSimState.hpp:51
glm::vec3 ledgeNormal
Wall normal at the ledge.
Definition PlayerSimState.hpp:91
glm::vec2 moveInputsOnJump
WASD direction when jump started (for direction-change detection).
Definition PlayerSimState.hpp:46
glm::vec3 ledgePoint
World-space position of the grabbed ledge.
Definition PlayerSimState.hpp:90
bool wasWallRunning
Set briefly after leaving wallrun (coyote wall jump).
Definition PlayerSimState.hpp:61
float exitClimbTimer
Definition PlayerSimState.hpp:81
float wallRunSpeedTimer
Timer for the speed-loss delay.
Definition PlayerSimState.hpp:59
glm::vec3 wallForward
Direction of travel along the wall.
Definition PlayerSimState.hpp:57
bool wasClimbing
Definition PlayerSimState.hpp:82
float coyoteTimer
Remaining grace time after leaving ground/wall (s).
Definition PlayerSimState.hpp:37
bool grappleCooldownActive
True during cooldown between uses.
Definition PlayerSimState.hpp:97
float grappleCooldownTimer
Remaining cooldown time (s).
Definition PlayerSimState.hpp:98
Combined-reference helper for code that needs both halves.
Definition PlayerSimState.hpp:113
PlayerSimState & sim
Definition PlayerSimState.hpp:115
PlayerVisState & vis
Definition PlayerSimState.hpp:114
Replicated subset of player locomotion state.
Definition PlayerVisState.hpp:39