Skip to content
View in the app

A better way to browse. Learn more.

Learn more

End-of-Map Friendly Fire

Featured Replies

  • Administrator

Turns friendly fire on shortly before the map ends, so the last minutes become a free-for-all, then restores the setting for the next map.

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

  • Compile scripting/olds_endff.sma with amxxpc 1.10 and copy olds_endff.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_endff.txt to addons/amxmodx/data/lang/.
  • 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).
  • 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).

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_endff.sma, test/olds_endff_test.sma

Idea: olds.ro workshop library · Plugin: alexit · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-1573).

End-of-Map Friendly Fire
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads4 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 203 lines
/*
 * End-of-Map Friendly Fire (olds.ro workshop card LIB-1573)
 *
 * 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.
 *
 * A check runs every second: when the time left (get_timeleft) is
Show all 203 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.