Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Weapon Speed HUD

Featured Replies

  • Administrator

A small HUD line shows the maximum run speed allowed by the weapon the player is holding, so players can compare weapon mobility.

Weapon Speed HUD 1.0.0 (olds.ro)

A small line in the bottom left corner of the screen shows the highest running speed the game allows you right now: 250 with the knife, 210 with the AWP, 150 with the AWP scoped, 1 during freeze time, and so on. It is the speed the game really uses for you, read again at every update, so it is right for every weapon (also when another plugin changes the speed).

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
  • AMX Mod X 1.10 or newer (written for 1.10.0.5490), with the fun module (part of every AMX Mod X install)

Install

  • Compile scripting/olds_wspeed.sma and copy olds_wspeed.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_wspeed.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_wspeed.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).
  • Add olds_wspeed.amxx to addons/amxmodx/configs/plugins.ini.

Commands

  say /speedhud   (also in team chat) Hides or shows your own speed line. The
                  choice stays until you leave the server (also over new
                  rounds and restarts).

How it works

  • Every olds_wspd_period seconds each living player gets the line "Max speed: <value>". Dead players and spectators do not get it, so the line disappears soon after death.
  • The value is the player's maxspeed, which the game sets for the weapon in hand (and its scope), the VIP, and freeze time (1, as nobody may move).
  • The line uses a free HUD channel chosen by AMX Mod X (channel -1).

Settings (addons/amxmodx/configs/plugins/olds_wspeed.cfg)

  olds_wspd_show 1       1 = show the speed line, 0 = off for everyone
  olds_wspd_period 0.5   seconds between two updates of the line (0.1 - 5)

Some stock values: knife 250, pistols 250, M4A1 230, AK-47 221, AWP 210 (150 scoped), M249 220, Scout 260.

No sounds, models or sprites are added.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2034. Licence: GNU GPL version 3 or later (GPL-3.0-or-later).

Install

Download 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_wspeed.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-2034).

Weapon Speed HUD
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.2 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 169 lines
/*
 * Weapon Speed HUD (olds.ro workshop card LIB-2034)
 *
 * A small HUD line in the bottom left corner shows the highest running speed
 * the game allows the player right now: 250 with the knife, 210 with the AWP,
 * 150 with the AWP scoped, 1 during freeze time, and so on. The value is the
 * player's own maxspeed, read again at every update, so it is always the one
Show all 169 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.