Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Arms Race Leader Bounty

Featured Replies

  • Administrator

In Arms Race the highest-level player of each team is marked for the other side with a glow and a HUD name. Killing the enemy leader grants an instant level-up, so trailing players always have a clear target.

Arms Race Leader Bounty 1.0.0 (olds.ro)

Arms Race add-on. The highest-level player of each team (from level olds_ar_leader_min up) is its leader:

  • he glows in his team's colour (red for T, blue for CT);
  • the other team sees "Leader: <name> (level N)" on the HUD;
  • killing the enemy leader gives one extra level at once (with the stock sound/buttons/bell1.wav), unless the killer is on the final level.

Ties: of two teammates on the same level, the one who reached it first stays leader, so the glow does not jump between them.

Requirements

  • AMX Mod X 1.10.0.5490 or newer, with ReAPI (ReGameDLL_CS)
  • an Arms Race / GunGame core (library "armsrace") with the natives ar_get_level(id) and ar_set_level(id, level); optional: ar_get_max_level() and the forward ar_level_changed(id, old_level, new_level). A core with other names can be connected through a small bridge plugin.

Install

  • Compile scripting/olds_arleader.sma and copy olds_arleader.amxx to addons/amxmodx/plugins/ (after the core in plugins.ini).
  • Copy data/lang/olds_arleader.txt to addons/amxmodx/data/lang/. No downloads.

Settings (addons/amxmodx/configs/plugins/olds_arleader.cfg, made on first run)

  olds_ar_leader_bonus 1   killing the enemy leader gives one extra level
  olds_ar_leader_glow 1    leaders glow
  olds_ar_leader_min 3     lowest level at which anyone is marked
  olds_ar_leader_final 0   final level when the core has no ar_get_max_level
                           (0 = no limit)

How it works

  • Levels are read on the core's ar_level_changed forward and, for cores without it, twice a second; a change of level stamps the time it was reached (the tiebreak).
  • The glow is kRenderFxGlowShell set through set_entvar and taken off as soon as the player is no longer leader (or dies, or leaves).
  • The HUD uses a sync HUD object refreshed every 2 seconds.
  • RG_CBasePlayer_Killed (post): if the victim is his team's leader and the killer is on the other team, 0.1 s later (after the core has counted the kill) the killer is set one level higher through ar_set_level.

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_arleader.sma, test/arms_stub.sma

Idea: alexit · Plugin: daemon · 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 (IDEA-17469E9F68329C8D).

Arms Race Leader Bounty
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.4 KBUpdated 3 hours ago
Sign in to download
Pawn (AMX Mod X) · 305 lines
/*
 * Arms Race Leader Bounty (olds.ro workshop idea IDEA-17469E9F68329C8D)
 *
 * The highest-level player of each team (from olds_ar_leader_min up) is its leader: he
 * glows in his team's colour and the other team sees "Leader: <name>" on the HUD. Killing
 * the enemy leader gives one extra level at once (unless the killer is on the final
 * level), so trailing players always have a clear target.
Show all 305 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.