addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt3.1 KB
No file matches.
Fall Damage Blocker 1.0.0 (olds.ro)
===================================
Players with an access flag (VIPs, admins), optionally of one team only,
lose no health when they fall. On the maps you list (kreedz, bhop, surf, fun
maps...) nobody takes fall damage at all. Only fall damage is blocked: the
landing sound and animation stay as normal, and every other kind of damage
(trigger_hurt, shots, grenades, drowning) still hurts.
Who is protected
- On a listed map: every player, whatever the flag and the team.
- On other maps: a player of the olds_nofall_team team (0 = both teams)
who has one of the olds_nofall_flag access flags. With
olds_nofall_flag "" every player of that team is protected.
Examples: flag "b" + team 0 = every admin with flag b; flag "" + team 2 =
every Counter-Terrorist; flag "t" + team 1 = Terrorist VIPs only.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10.0.5490 or newer
Install
1. Compile scripting/olds_nofall.sma and copy olds_nofall.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_nofall.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_nofall.cfg to addons/amxmodx/configs/plugins/
and configs/olds_nofall_maps.ini to addons/amxmodx/configs/, then edit
them. (If the .cfg is missing, the plugin writes one with the defaults
the first time it starts; the map file is optional.)
4. Add olds_nofall.amxx to addons/amxmodx/configs/plugins.ini.
Map list (addons/amxmodx/configs/olds_nofall_maps.ini)
One map name per line, read when a map starts. A name that ends with *
matches every map that starts with it (kz_* , bhop_*). Letter case does
not matter. Lines starting with ; # or // are comments.
Settings (addons/amxmodx/configs/plugins/olds_nofall.cfg)
olds_nofall_flag "b" access flags that give the protection, any one is
enough; "" = every player of the team
olds_nofall_team 0 0 both teams, 1 Terrorists only, 2 Counter-Terrorists only
olds_nofall_maps "" more maps where everyone is protected, besides the
map file; separate names with spaces or commas,
name* = prefix (checked at every fall, so it can be
changed during the map)
olds_nofall_msg 0 1 = tell the player in chat each time a fall did no
damage ("Fall damage blocked: you kept 25 HP.")
Commands
None.
Language
The chat line is in data/lang/olds_nofall.txt ([en]). Add a section for
another language there if your players need it.
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-0266. Licence: GNU General Public License v3.0 or later
(GPL-3.0-or-later).