Rune Spawn Rotation 1.0.0 (olds.ro)
===================================
A RuneMod add-on. Each rune spawn point rotates the rune it gives, so the
same strong rune does not keep appearing next to one team's spawn. Every
spawn is logged so admins can tune the points.
Requirements
- AMX Mod X 1.10.0.5490 or newer
- the olds.ro RuneMod core with the API in scripting/include/olds_runes.inc
(library "olds_runes"): olds_rune_types, olds_rune_name,
olds_rune_type_enabled and the forward olds_rune_spawning (the core
asks before it puts a rune at a point and uses the type returned). The
LIB-1362 Rune Pickups 1.0.0 does not have this API yet; the plugin does
not load without it. (This include is the one from Rune Drop on Death
plus olds_rune_type_enabled and olds_rune_spawning.)
Install
Put include/olds_runes.inc next to the compiler's includes, compile
scripting/olds_runerot.sma and copy olds_runerot.amxx to
addons/amxmodx/plugins/ (after the core in plugins.ini). No downloads.
Settings (addons/amxmodx/configs/plugins/olds_runerot.cfg, made on first run)
olds_runerot 1 1 = points rotate their rune; 0 = the core's own choice
is kept (spawns are still logged)
Admins
amx_runerot_status (ADMIN_KICK) each point's spawns this map, its last
rune and when each type last spawned
addons/amxmodx/logs/olds_runes.log one line per spawn, for example
"point 3: Speed (core chose Damage, rotation 1)"
How it works
- Among the turned-on types, the point gets the one spawned least
recently there (never spawned there counts as oldest). On a tie the
core's choice wins when it is one of them, else the lowest type. So a
point never gives the same rune twice in a row while another type is
on, and with one type on that type always spawns.
- The history is kept per point for the map only: it starts empty at
every map change.