demoparser
demoparser copied to clipboard
How to detect when the player presses the jump key? I tried to get the jump related fields, but I couldn't detect the jump.
I'm working on the script to visualize mouse / keyboard strokes,The only problem now is that the jump key cannot be detected. I used the function parseTicks to try to get the following fields such as jump_until jump_velo jump_time_ms old_jump_pressed The only one that has some effect is old_jump_pressed, but it can only detect whether jump is pressed. After pressing it once, its value is always true
@LaihoE bumping, in case you missed it Same issue here, tried everything @L1mit1337 did, cannot parse a tick/event when a player jumps
@L1mit1337
parser.parse_events_with_player_props(
demo_path,
&["player_jump"],
&["X", "Y", "Z"],
)