addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.7 KB
No file matches.
GunGame Catch-up Handicap 1.0.0 (olds.ro)
=========================================
Players who join late or fall far behind start at the server's average level
minus one instead of level one, so late joiners are not stuck on pistols for
the whole map. Leaders keep their lead.
Requirements
- AMX Mod X 1.10.0.5490 or newer, ReAPI
- A GunGame core that registers library "gungame" with the natives
gg_get_level(id), gg_set_level(id, level) and gg_get_max_level() (the
number of levels; the last one is the knife). Without them the plugin
stays off (logged).
Install
1. Compile scripting/olds_gghcap.sma and copy olds_gghcap.amxx to
addons/amxmodx/plugins/, after the GunGame core.
2. Copy data/lang/olds_gghcap.txt to addons/amxmodx/data/lang/.
No downloads.
Settings (addons/amxmodx/configs/plugins/olds_gghcap.cfg, made on first run)
olds_gghcap 1 0 = off: everyone keeps the core's level (level 1 on
joining)
olds_gghcap_gap 4 levels below the average before the handicap applies
olds_gghcap_bots 0 1 = bots count in the average (testing only)
Admins
amx_gghcap_status (ADMIN_KICK) levels, averages, leaders, targets
How it works
- 0.2 s after every spawn (the first spawn is the join) the plugin takes
the average level of the other players on a team, without bots.
- If the player is more than olds_gghcap_gap levels below it, the new level
is the average rounded down minus one (average 8 -> level 7), but at most
the leader's level minus one and never the last (knife) level. It is set
with gg_set_level; a player is never lowered.
- With no other counted player there is no average and nothing changes.