Jump Distance Stats 1.0.0 (olds.ro)
===================================
Long jump practice. After each jump the jumper, and anyone spectating them
in first person or chase view, gets one chat line (and a HUD line) with the
type of jump and the distance, for example
[JS] Long Jump: 241.37 units (pre 250, max 276)
Requirements
- AMX Mod X 1.10.0.5490 or newer (fakemeta); no ReAPI needed
Install
Compile scripting/olds_jumpstats.sma and copy olds_jumpstats.amxx to
addons/amxmodx/plugins/.
Use
say /js turn the messages off or on for yourself (on by default);
it also stops what you see while spectating
olds_js_status every player's last jump and its result (ADMIN_CFG)
Settings (addons/amxmodx/configs/plugins/olds_jumpstats.cfg, created on first run)
olds_js_min 200 jumps shorter than this (units) are not shown
olds_js_hud 1 1 = also a HUD line
olds_js_color 1 1 = coloured chat, 0 = plain chat
How a jump is measured
- Every frame (FM_PlayerPreThink) the plugin reads pev_flags & FL_ONGROUND
and pev_origin. The last frame on the ground is the take-off; leaving the
ground with upward speed is a jump (walking off a ledge is not). The first
frame on the ground again is the landing.
- Distance = horizontal distance between take-off and landing origin + 32
(the player's width, so it is measured edge to edge).
- Types, by the take-off: Bunny Hop when the player was on the ground for
less than 0.15 s; Standing Long Jump when the pre-speed (speed on the
last ground frame) is under 50; Duck Jump when ducking; else Long Jump.
- Not counted (nothing shown): landing at a different height from the
take-off (feet, with ducking taken into account), and jumps spoiled by a
teleport, ladder, water or noclip.
No downloads: all messages are text with chat colour codes.