10 hours ago10 hr Administrator Shows how many meters away the victim was after each kill, to the killer and optionally to the victim. Kill Distance Display 1.0.0 (olds.ro) After every kill the killer sees, in the centre of the screen, how far away the victim was, such as "Kill distance: 34.2 m". The victim can see it too: "Killed by Terry from 34.2 m". The distance can be shown in metres or in feet. Requirements ReHLDS, ReGameDLL_CS, Metamod-R, ReAPIAMX Mod X 1.10 or newer (written for 1.10.0.5490) Install Compile scripting/olds_kdist.sma and copy olds_kdist.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release) next to the stock AMX Mod X includes.Copy data/lang/olds_kdist.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_kdist.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).Add olds_kdist.amxx to addons/amxmodx/configs/plugins.ini. How it works When a player is killed (ReAPI hook RG_CBasePlayer_Killed, post), the distance between the killer's and the victim's origins is measured in game units and converted: 1 unit = 0.0254 m, 12 units = 1 ft. It is rounded to one decimal, so 1000 units read 25.4 m or 83.3 ft.The killer gets the line in the centre of the screen; with olds_kdist_victim 1 the victim gets it too, with the killer's name.A grenade kill shows the distance from where the thrower stands at the moment the grenade kills.Suicides, kills by the world (falls, the bomb, map hazards) and kills by entities that are not players show nothing.With olds_kdist_knife 0 knife kills show nothing. With olds_kdist_min above 0 kills closer than that distance show nothing. Settings (addons/amxmodx/configs/plugins/olds_kdist.cfg) olds_kdist_unit 1 1 = metres, 2 = feet olds_kdist_victim 1 1 = the victim also sees the distance olds_kdist_min 0 kills closer than this (in the chosen unit) show nothing; 0 = every kill olds_kdist_knife 1 1 = knife kills show the distance too, 0 = not The cvars are read at every kill, so a change works at once. No sounds, models or sprites are added. Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2111. Licence: GNU GPL version 3 or later (GPL-3.0-or-later). InstallDownload the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini. Files: addons/amxmodx/scripting/olds_kdist.sma, test/olds_kdist_test.sma Idea: olds.ro workshop library · Plugin: alexit · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-2111). Kill Distance Displayv1.0.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.2 KBUpdated 10 hours agoSign in to downloadolds_kdist.smaPawn (AMX Mod X) · 158 lines4 files/* * Kill Distance Display (olds.ro workshop card LIB-2111) * * After every kill the killer sees, in the centre of the screen, how far * away the victim was, such as "Kill distance: 34.2 m". The victim can see * it too ("Killed by Terry from 34.2 m"). *Show all 158 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.