addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt2.2 KB
No file matches.
End-of-Map Friendly Fire 1.0.0 (olds.ro)
========================================
Turns friendly fire on shortly before the map ends, so the last minutes
become a free-for-all, and sets it back for the next map.
Requirements
- AMX Mod X 1.10 or newer (no extra modules, ReAPI is not needed)
- Written for AMX Mod X 1.10.0.5490, ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814
Install
1. Compile scripting/olds_endff.sma with amxxpc 1.10 and copy
olds_endff.amxx to addons/amxmodx/plugins/.
2. Copy data/lang/olds_endff.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_endff.cfg to addons/amxmodx/configs/plugins/
(if you skip this, the plugin writes the same file with the defaults on
its first start).
4. Add olds_endff.amxx to addons/amxmodx/configs/plugins.ini.
How it works
- Every second the plugin looks at the time left on the map. When it is
olds_eff_before seconds or less, mp_friendlyfire is set to 1 and the
old value is kept. Chat tells everyone once (olds_eff_msg 1) and the
AMX Mod X log gets a line.
- Team mates then hurt each other as in any friendly-fire game; the game
itself decides the damage.
- When the map ends, the old value is set back before the next map's
first round.
- If the end moves away again (the map is extended by a vote,
mp_timelimit is set to 0, or olds_eff_before to 0), the old value comes
back at once.
- If mp_friendlyfire is already 1, nothing is changed. If an admin sets it
back to 0 by hand during the last minutes, the plugin leaves it so.
- Without a time limit (mp_timelimit 0) nothing happens.
Server command
olds_eff_status prints the settings, the time left, mp_friendlyfire and
the value that will be set back
Settings (addons/amxmodx/configs/plugins/olds_endff.cfg)
olds_eff_before 120 seconds before the map end; 0 = never
olds_eff_msg 1 1 = chat message when friendly fire turns on
Texts are in data/lang/olds_endff.txt (English). Add a section such as [ro]
to translate them. No sounds, models or sprites are used.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1573.
Licence: GNU GPL version 3 or later (GPL-3.0-or-later).