player's physical kPuppetactor
related classes:
- ScriptObjectPlayer – script object associated with kPuppet
- kPlayer – meta object for managing player state
Methods
float& ViewHeight()
player view height, relative to player's location
automatically moves back toward default over time
float LandingViewOffset()
player view height offset caused by hitting the ground
float& RecoilPitch()
player view pitch offset, in radians
automatically moves back toward 0 over time
uint& PlayerFlags()
bit field of player state flags:
- PF_NOCLIP – noclip is enabled
- PF_FLY – fly mode is enabled
- PF_DEAD
-
PF_GOD
–
god mode or invincibility is enabled
(spiritual invincibility does not affect this flag) - PF_JUMPING – it's the first few frames of a jump, and the jump button is still pressed
- PF_HASJUMPED – in the air from jumping (not from walking off a ledge)
- PF_INWARPAREA – player is in a teleport sector (but not necessarily teleporting)
-
PF_CLIMBTHRUST
–
player is moving up a climbable surface
(includes pause at the end before the next motion) - PF_NOAIRFRICTION
- PF_CRAWLING – in a crawl space, like the small passages in the catacombs
-
PF_PREVENTDEATHCAM
–
when the player dies, do not fall to ground, lose life, or respawn/end game
normal death procedure can be resumed with
kPlayLoop::HandlePlayerDeath()
- PF_FIREDPROJECTILE
- 4096 – bottomless pit death cutscene