Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Health Regeneration

Featured Replies

  • Administrator

Slowly regenerates health over time, with a faster rate inside the buy zone and a delay after taking damage.

Health Regeneration 1.0.0 (olds.ro)

Living players slowly get their health back over time, faster while they stand in their own buy zone. Taking damage pauses the regeneration for a few seconds, so it never helps in the middle of a fight. Health is never raised above a set maximum, and a player who already has more (from another plugin) is never lowered.

  • Every olds_regen_tick seconds a living player gets olds_regen_hp health, or olds_regen_buyzone_hp instead while standing in their own buy zone.
  • After any damage that was really taken (shots, grenades, falls) nothing is added for olds_regen_delay seconds. Damage the game refuses, such as friendly fire with mp_friendlyfire 0, does not pause it.
  • Each spawn starts a fresh regeneration: the first step comes one tick after the spawn. A dead player never regenerates.
  • It can be limited to one team and/or to players with access flags.
  • The regeneration is silent: no sound, no chat or HUD message, only the health number changes. That is why the plugin has no language file.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer, with the cstrike module (enabled by default)

Install

  • Compile scripting/olds_healthregen.sma and copy olds_healthregen.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.
  • Copy configs/plugins/olds_healthregen.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.)
  • Add olds_healthregen.amxx to addons/amxmodx/configs/plugins.ini.

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

  olds_regen_tick 1.0        seconds between two steps (0.1 - 60); a new value
                             applies from the next step
  olds_regen_hp 2            health added per step (0 - 100, 0 = none)
  olds_regen_buyzone_hp 6    health added per step inside the player's own buy
                             zone, instead of olds_regen_hp (0 - 100, 0 = none)
  olds_regen_delay 5.0       seconds without damage before it starts again (0 - 60)
  olds_regen_max 100         health is never raised above this (1 - 255)
  olds_regen_team 0          0 both teams, 1 Terrorists only, 2 Counter-Terrorists only
  olds_regen_flag ""         access flags needed, for example "b" or "bt" (any
                             one of them is enough); empty = every player

Commands None.

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, with YaPB bots.

No sounds, models or sprites are added.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-0369. Licence: GNU General Public License v3.0 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_healthregen.sma

License: GPL-3.0-or-later.
Written for the olds.ro plugin workshop (LIB-0369), by alexit, reviewed by alexit and checked by the automated Claude review.

Health Regeneration
v1.0.0Counter-Strike 1.6PluginTests passed
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.1 KBUpdated 12 hours ago
Sign in to download
Pawn (AMX Mod X) · 237 lines
/*
 * Health Regeneration (olds.ro workshop card LIB-0369)
 *
 * Living players slowly get health back over time, faster while they stand
 * in a buy zone. Taking damage pauses the regeneration for a few seconds, so
 * it never helps in the middle of a fight. Health never goes above a set
 * maximum, and a player who already has more is left alone.
Show all 237 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.