VIP Objective Balance 1.0.0 (olds.ro)
=====================================
VIP Escape: when one side wins too many VIP rounds in a row, the next round
gives the losing side extra money and, if wanted, moves the winning side's
top scorer across.
Requirements
- AMX Mod X 1.10.0.5490 or newer (cstrike, fakemeta)
- ReGameDLL_CS 5.30.0.814 or newer with ReAPI 5.29.0.358 or newer
Install
1. Compile scripting/olds_vipbalance.sma and copy olds_vipbalance.amxx to
addons/amxmodx/plugins/.
2. Copy data/lang/olds_vipbalance.txt to addons/amxmodx/data/lang/.
No downloads: HUD and chat notices only.
Settings (addons/amxmodx/configs/plugins/olds_vipbalance.cfg, made on first run)
olds_vipb_streak 4 wins in a row by one side before balancing
olds_vipb_bonus 1500 extra money for each player of the losing side
olds_vipb_swap 1 1 = also move the winning side's top scorer
olds_vipb_minplayers 6 fewest players on the teams for any balancing
How it works
- Every round end (RG_RoundEnd) with a CT or T win adds to that side's
streak; a win by the other side starts its own streak and cancels any
balance still waiting. Draws change nothing.
- When a side reaches olds_vipb_streak wins, the streak goes back to zero
and the next round is balanced:
* with olds_vipb_swap 1 the winning side's player with the most frags
(never the VIP) is moved to the losing side (rg_set_user_team)
before the players respawn, and everyone is told who moved;
* every player of the losing side gets olds_vipb_bonus extra money
(cs_set_user_money, at most $16000), with a chat and HUD notice.
- With fewer than olds_vipb_minplayers players on the teams no money is
given and nobody is moved.
- Only maps with a VIP (func_vip_safetyzone or info_vip_start) are
balanced; a new map starts every streak at zero.
Admin
amx_vipb_status (ADMIN_KICK) the streak and any balance waiting