Ladder Bottleneck 1.0.0 (olds.ro)
=================================
Arms Race: finds the slowest levels on each team's own weapon ladder. Every
visit to a level is timed on the core's active-play clock, from the moment a
player reaches the level until they level up out of it by playing.
amx_bottleneck prints, for each team ladder, the three levels with the
highest average time per visit, among the levels with enough eligible visits.
Requirements
- AMX Mod X 1.10.0.5490 or newer
- An Arms Race core (fork) with progression reasons, ladder definitions
and an active-play timer, reporting through this plugin's natives
(directly, or through a small bridge plugin)
Install
1. Compile scripting/olds_bottleneck.sma and copy olds_bottleneck.amxx to
addons/amxmodx/plugins/.
2. Copy scripting/include/olds_bottleneck.inc next to the core's sources.
Settings (addons/amxmodx/configs/plugins/olds_bottleneck.cfg, created on first run)
olds_bottleneck_visits 3 eligible visits a level needs to be listed (1-100)
Command: amx_bottleneck (ADMIN_MAP) prints the table in the admin's console.
Nothing is shown or sent to other players.
Rules
- Each team ladder (T, CT) is timed on its own.
- A visit counts when it began by playing or at the start of a session, and
ended by playing up to the next level, on the same team, with the
active-play clock moving forward.
- Forced and admin level changes, demotions, team changes and disconnects
drop the open visit. Downtime is left out by the core's active-play clock.
- A changed ladder definition discards that ladder's stored times. Times
are otherwise kept until the map changes.
For the core (include/olds_bottleneck.inc, library "olds_bottleneck")
olds_bottleneck_ladder(team, const definition[])
team 1 = T, 2 = CT; the ladder as one text, e.g. its weapon list
olds_bottleneck_level(id, level, reason, Float:activeClock)
reason OBN_PLAY, OBN_START, OBN_FORCED or OBN_ADMIN; activeClock = the
player's active-play seconds
No downloads.