addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.7 KB
No file matches.
Contested Hill Meter (olds.ro) 1.0.0
Copyright (C) 2026 daemon (olds.ro). Licence: GPL-3.0-or-later.
An add-on for King of the Hill: a contested hill freezes the score until one side pushes a
shared meter all the way.
- Every 0.5 s the living players of each team inside the hill are counted.
- The meter runs from -100 (Terrorists) to +100 (CTs). It moves olds_hillpush points per
extra player toward the side with more players inside; equal numbers leave it still.
- A team alone on an uncontested hill scores as before (one point a second).
- When both teams stand on the hill, nobody scores until the meter reaches the end of the
side with more players inside; then that side scores again (even with enemies inside).
- A HUD bar (21 characters, set_hudmessage) shows the meter and whether the hill is
contested, held or open.
- The meter goes back to 0 at every round start.
- amx_hillmeter_status (ADMIN_KICK) shows the meter and the counts.
The core: scripting/include/olds_hill_api.inc lists what the plugin needs from a King of
the Hill core (library "olds_hill"): olds_hill_get_zone, olds_hill_add_score and
olds_hill_set_external. With such a core, the zone comes from the core, points go through
olds_hill_add_score and the core stops scoring on its own. Without one (for example the
current Team King of the Hill plugin, which has no API yet), the plugin reads the box for
the map from configs/olds_hill.ini and keeps its own score in the HUD.
Cvar: olds_hillpush 4.
No downloads. Install: compile scripting/olds_hillmeter.sma with amxxpc 1.10 (ReAPI;
the include folder must be on the include path), add olds_hillmeter.amxx to plugins.ini
after the core and copy data/lang/olds_hillmeter.txt and configs/olds_hill.ini.