Skip to content
View in the app

A better way to browse. Learn more.

Learn more

longest-kill-record/README.txt

README.txt
61 lines · 2.6 KB · Text
Raw
Longest Kill Record 1.0.0 (olds.ro)
===================================

Keeps the five longest gun kills of each map, in metres. A kill that beats
the map's record is announced to everyone:

  [Longest] New longest kill: 74 m with the AWP by Ann on Bob!

say /longest lists the five longest kills of the map with names, weapons
and distances. The records are saved, so they stay over map changes and
server restarts, and each map has its own.

Requirements
  - ReGameDLL_CS, Metamod-r and ReAPI
  - AMX Mod X 1.10 or newer with the nvault module (it ships with AMX Mod X)
  - Tested on ReGameDLL_CS 5.30.0.814, ReAPI 5.29.0.358 and AMX Mod X
    1.10.0.5490

Install
  1. Compile scripting/olds_longest.sma with amxxpc 1.10 and copy
     olds_longest.amxx to addons/amxmodx/plugins/. The compiler needs
     ReAPI's include files (reapi.inc and reapi_*.inc) in
     addons/amxmodx/scripting/include/.
  2. Copy data/lang/olds_longest.txt to addons/amxmodx/data/lang/.
  3. Copy configs/plugins/olds_longest.cfg to addons/amxmodx/configs/plugins/.
  4. Add olds_longest.amxx to addons/amxmodx/configs/plugins.ini.

What counts
  - Only gun kills: the fatal damage must be the killer's own bullets with a
    gun in their hands. Grenades, the knife, the bomb, falls, suicides and
    kills by the world never count.
  - Only enemies, except on free-for-all servers (mp_freeforall 1), where
    every other player counts.
  - The distance is measured between the killer and the victim at the
    moment of the kill (get_distance_f) and turned into metres with
    olds_longest_scale. With the default 0.0254 one unit is one inch, so
    2900 units are 74 m.
  - A kill is a new record only when it is longer than the map's current
    record; a kill as long as one already listed goes after it.
  - The five longest kills of each map are kept in the nvault file
    olds_longest (addons/amxmodx/data/vault/olds_longest.vault): distance,
    weapon, SteamID and name of the killer. One player can hold several
    places.

Settings (addons/amxmodx/configs/plugins/olds_longest.cfg)
  olds_longest_enable  1       1 = on, 0 = off (nothing is recorded)
  olds_longest_scale   0.0254  metres per game unit

Commands
  say /longest          (also say_team) the five longest kills on this map
  olds_longest_status   (server console) the same list with the distances
                        in units and the SteamIDs

Files
  Texts are in data/lang/olds_longest.txt (English). Nothing is downloaded
  by players.

Credits and licence
  Written from scratch by alexit (olds.ro workshop) for workshop card
  IDEA-2804ED3EE2032BB2.
  Licence: GPL-3.0-or-later.

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.