Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

Armor Charger Helmet Grant

Plugin
Alexit077f3b84d4Version 1.0: First release.History
addonsVersion 1.0: First release.
README.txtVersion 1.0: First release.
Armor Charger Helmet Grant 1.0.0 (olds.ro) ========================================== Using a wall armor charger (the HEV charger, func_recharge, found on some maps) also gives a helmet once the charger has topped the armor up to 100. - With olds_hc_fullonly 1 (default) the helmet comes when the charger brings the armor to 100. With 0 it comes as soon as the charger gives any armor. - The helmet comes with armor the charger really gives: a player whose armor is already 100, or who uses an empty charger, gets nothing. - A player who already has a helmet is left alone: no second message, the armor type stays the same. - The helmet icon appears on the HUD at once, and the player gets a chat line (olds_hc_msg 1). - Dead players and spectators are never processed. - On a map without chargers the plugin simply does nothing. Requirements - AMX Mod X 1.10.0.5490 or newer, with the hamsandwich, cstrike and fakemeta modules (enabled by default) - Written for ReHLDS, ReGameDLL_CS and Metamod-r; it uses no ReAPI function. Install 1. Compile scripting/olds_chargerhelmet.sma and copy olds_chargerhelmet.amxx to addons/amxmodx/plugins/. 2. Copy data/lang/olds_chargerhelmet.txt to addons/amxmodx/data/lang/. 3. Copy configs/plugins/olds_chargerhelmet.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_chargerhelmet.amxx to addons/amxmodx/configs/plugins.ini. Settings (addons/amxmodx/configs/plugins/olds_chargerhelmet.cfg) olds_hc_enable 1 1 = a wall armor charger also gives a helmet olds_hc_msg 1 1 = the player gets a chat line when the helmet is added olds_hc_fullonly 1 1 = the helmet comes only when the charger brings the armor to 100; 0 = with any armor from the charger Commands None. Chat text "[Charger] Helmet added." The text is in data/lang/olds_chargerhelmet.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-0083, after the idea of "H.E.V. Charger Gives Helmet" on the AlliedModders forums. Licence: GNU General Public License v3.0 or later (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.