addonsVersion 1.0: First release.
README.txtVersion 1.0: First release.
README.txt2.7 KB
No file matches.
Ammo Status Alerts 1.0.0 (olds.ro)
==================================
Short texts under the crosshair warn when the magazine is low, when it is
empty and the player should reload, and when the weapon is out of ammo
altogether. Each player can switch them off and on with /ammotext.
- "Low ammo": the magazine holds olds_as_low (20) percent of a full one
or less (AK-47: 6 of 30). It is shown once, not on every shot; again
only after a reload or with another weapon.
- "Reload": the magazine is empty and there is ammo left. It stays until
the reload starts.
- "No ammo": the magazine and the reserve are both empty. It stays until
the player gets ammo or switches weapons.
- With olds_as_flash 1, "Reload" and "No ammo" blink; with 0 they stay
steady.
- The knife, grenades and the C4 never show a text, nor does a dead
player. Switching weapons shows the state of the new weapon.
- The texts are director HUD texts, which cannot be cleared. So "Reload"
and "No ammo" are drawn again every 0.5 s with a short life and are
gone at most 0.5 s after the reason; "Low ammo" lives 1 s.
- /ammotext is remembered until the player leaves the server.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer
Install
1. Compile scripting/olds_ammoalerts.sma and copy olds_ammoalerts.amxx
to addons/amxmodx/plugins/. The compiler needs ReAPI's include files
(reapi.inc and the reapi_*.inc files from the ReAPI release, in
addons/amxmodx/scripting/include/) next to the stock AMX Mod X includes.
2. Copy data/lang/olds_ammoalerts.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_ammoalerts.cfg to
addons/amxmodx/configs/plugins/ and change the values you want.
(If the file is missing, the plugin writes one with the defaults the
first time it starts.)
4. Add olds_ammoalerts.amxx to addons/amxmodx/configs/plugins.ini.
Settings (addons/amxmodx/configs/plugins/olds_ammoalerts.cfg)
olds_as_low 20 "Low ammo" at this percent of a full magazine or
less (1-99)
olds_as_flash 1 1 = "Reload" and "No ammo" blink; 0 = steady
Commands
say /ammotext, say_team /ammotext switch the texts off or on for
yourself
Texts
"Low ammo", "Reload", "No ammo", and the /ammotext chat line. They are in
data/lang/olds_ammoalerts.txt and can be translated there.
Tested on
ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149,
AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card
LIB-0076. Licence: GNU General Public License v3.0 or later
(GPL-3.0-or-later).