Landing Streak 1.0.0 (olds.ro)
==============================
Surf practice: count consecutive landings across a named route. Each landing
inside the next zone of the route adds one to your streak, shown as a DHUD
line ("Landing streak: 3 - next: Ramp 4 landing") with the stock
buttons/blip1 sound.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer (hamsandwich)
Install
1. Compile scripting/olds_landstreak.sma and copy olds_landstreak.amxx to
addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
2. Copy data/lang/olds_landstreak.txt to addons/amxmodx/data/lang/.
3. Copy configs/olds_landstreak/ to addons/amxmodx/configs/ and make a
<mapname>.ini route from _example.ini.
Use
say /streak your best streak on this map, your current streak
and the next zone
olds_landstreak_status the route and everyone's streaks (ADMIN_CFG)
olds_landstreak_reload read this map's route again (ADMIN_CFG)
Settings (addons/amxmodx/configs/plugins/olds_landstreak.cfg, created on first run)
olds_landstreak_reset 1 1 = landing in the wrong zone resets the streak
(landing in zone 1 then starts a new one);
0 = a wrong zone is ignored
Route: configs/olds_landstreak/<map>.ini, one zone per line in route order:
"Zone name" x1 y1 z1 x2 y2 z2
After the last zone the route starts again at the first. A map without a
route registers no frame hook.
Rules
- A landing is the first frame with FL_ONGROUND after being in the air
(ReAPI CBasePlayer::PostThink); the player's origin must be inside a zone.
- Repeated touch-downs in the same zone (bounces) count once.
- The streak resets on a respawn, on touching a trigger_teleport, or when
another plugin calls olds_landstreak_reset(id).
- The best streak is kept for the map while the player stays connected.
Natives (library "olds_landstreak")
olds_landstreak_reset(id) break the player's streak (checkpoints)
olds_landstreak_get(id, &best = 0) current streak; best this map in best
No downloads.