Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Daemon/

Team King of the Hill

Plugin
Daemonb57519100aVersion 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
Team King of the Hill 1.0.0 (olds.ro) ===================================== Teams fight over one marked box. Every olds_hill_tick seconds that only one team has living players in the box, that team scores one point; when both teams are inside nobody scores until one side is cleared. The first team to olds_hill_target points wins the round (rg_round_end, so the scoreboard counts the win) and the hill scores start again from zero. Requirements - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI - AMX Mod X 1.10.0.5490 or newer Install 1. Compile scripting/olds_hill.sma and copy olds_hill.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files. 2. Copy data/lang/olds_hill.txt to addons/amxmodx/data/lang/. 3. Copy configs/hill/ to addons/amxmodx/configs/ (the folder is also made by amx_hillset when it is missing). Commands (ADMIN_CFG) amx_hillset [size] save a box centred on where you stand: size is the half-width (32-1024, default 128); the box reaches 40 units below your origin and 160 above amx_hillset x1 y1 z1 x2 y2 z2 save a box from two opposite corners (also from the server console) amx_hillset add ... the same, but adds a box instead of replacing amx_hillset clear remove this map's boxes amx_hill [reset] boxes, scores and settings; reset zeroes scores The boxes go to addons/amxmodx/configs/hill/<mapname>.ini and are loaded again whenever the map starts. Settings (addons/amxmodx/configs/plugins/olds_hill.cfg, created on first run) olds_hill_target 300 points a team needs to win (5-100000) olds_hill_tick 1 seconds per scoring check, one point each (0.2-30) olds_hill_shiftmove 0 1 = the hill moves to the next saved box every round (needs two or more boxes); 0 = first box only What players see - The box is outlined with the stock sprites/laserbeam.spr for everyone: white when empty, red or blue when a team scores, yellow when contested. - A HUD line with both scores and the target. - Chat lines when the lead changes (with the stock events/task_complete sound), when a team reaches half the target, and when a team wins. How "on the hill" is checked Each tick the plugin walks get_players("a") and tests every player's bounding box (absmin/absmax) against the hill box: the same overlap a touch on a trigger box would report. Freeze time and the end of a round score nothing. Scores reset on sv_restart / game commencing and after a win. No downloads.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.