Skip to content
View in the app

A better way to browse. Learn more.

Learn more

ladder-vote/README.txt

README.txt
34 lines · 1.9 KB · Text
Raw
Ladder Vote (olds.ro workshop card IDEA-9833304988FCD2C2) - Arms Race add-on
Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.

Once per map, after the first round restart (RG_CSGameRules_RestartRound),
every player gets a menu to vote between the weapon ladders an admin wrote in
configs/olds_arladders.ini. After olds_arvote_time seconds the ladder with the
most votes is used for the whole map; a tie, or no votes at all, picks ladder
number olds_arvote_default (0 = the first line). Players who join during the
vote get the menu too. Later restarts never open the vote again; every round
start names the ladder in chat for latecomers.

The chosen ladder goes to the Arms Race core:
  - through its native ar_set_ladder(const weapons[]) when the core has it
    (the list is "weapon_x,weapon_y,..."), or
  - otherwise by writing the same list into the core's ladder cvar
    (olds_arvote_cvar, default ar_ladder).
Then the round restarts (sv_restart 1) so the first live round uses it.
A native filter lets the plugin load without the core.

olds_arladders.ini: one ladder per line, "Name = weapon_x, weapon_y, ..."
(2 to 32 weapon_* names, up to 7 ladders). A line with a weapon the game does
not know (get_weaponid) is rejected at load and the server log names the file,
the line number and the weapon. With fewer than two valid ladders there is no
vote; a single valid ladder is used as it is.

Cvars (configs/plugins/olds_arvote.cfg):
  olds_arvote_time     15         vote seconds (5-60)
  olds_arvote_default  0          ladder for a tie or no votes
  olds_arvote_cvar     ar_ladder  the core's ladder cvar for the fallback
Admin: amx_arladder (ADMIN_KICK) lists the ladders and the vote.

Install: scripting/olds_arvote.sma (amxxpc 1.10), add olds_arvote.amxx after the
Arms Race core in plugins.ini, copy configs/olds_arladders.ini and
data/lang/olds_arvote.txt. Needs ReAPI (ReGameDLL_CS). No downloads.

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.