Skip to content
View in the app

A better way to browse. Learn more.

Learn more

landing-lab/README.txt

README.txt
51 lines · 2.3 KB · Text
Raw
Landing Lab 1.0.0 (olds.ro)
===========================

Kreedz practice: a player who turned it on with /landlab and lands inside a
training zone gets one short recap of that landing, for example
    Landing: 250 u/s on touch-down, dropped 64 units (fall speed 410)
Nothing is collected outside the zones, during a ranked run, or across a
teleport or checkpoint restore.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  - AMX Mod X 1.10.0.5490 or newer (fakemeta)
  - Any Kreedz core; to keep ranked runs out, the core or a small bridge
    calls the natives below

Install
  1. Compile scripting/olds_landlab.sma and copy olds_landlab.amxx to
     addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  2. Copy data/lang/olds_landlab.txt to addons/amxmodx/data/lang/.
  3. Copy configs/olds_landlab/ to addons/amxmodx/configs/ and make
     <mapname>.ini files from _example.ini.

Use
  say /landlab           turn the recap on or off for yourself (off by default)
  olds_landlab_status    zones, and who has the recap on (ADMIN_CFG)

Settings (addons/amxmodx/configs/plugins/olds_landlab.cfg, created on first run)
  olds_landlab_hud 1     1 = DHUD line, 0 = chat

Zones: configs/olds_landlab/<map>.ini, one box per line:
    "Zone name"  x1 y1 z1  x2 y2 z2
A map without zones registers no frame hook and shows no recap.

How a landing is seen
  - Every frame (FM_PlayerPostThink) the plugin reads pev_flags. Leaving the
    ground starts a jump and records the height (pev_origin z); while in the
    air it keeps the last horizontal speed and fall speed; the first frame
    with FL_ONGROUND again is the landing, and the recap shows that speed and
    the height lost since take-off.
  - A jump is dropped (no recap) when the player leaves the zone, moves further
    in one frame than their speed allows (a teleport or checkpoint restore),
    respawns, or is in a ranked run.

Natives for a KZ core or bridge (library "olds_landlab")
  olds_landlab_set_ranked(id, bool:ranked)   ranked runs show and store nothing
  olds_landlab_teleported(id)                drop the current jump now
Declare them in the calling plugin, for example:
  native olds_landlab_set_ranked(id, bool:ranked)
Without a bridge every run counts as practice.

No downloads: the recap is a DHUD line (or chat).

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.