/*
* olds_hill_api.inc - what olds.ro King of the Hill add-ons expect from a King of the Hill
* core (library "olds_hill"). Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.
*
* A core that offers these natives lets add-ons read and move the hill and decide when a
* team scores. Without them each add-on falls back to its own zone and score.
*/
#if defined _olds_hill_api_included
#endinput
#endif
#define _olds_hill_api_included
#define OLDS_HILL_SIDE_T 1
#define OLDS_HILL_SIDE_CT 2
/* The box of the hill in play; returns 0 when there is no hill. */
native olds_hill_get_zone(Float:mins[3], Float:maxs[3]);
/* Moves the hill to this box; the core scores in it from now on. Returns 1 when done. */
native olds_hill_set_zone(const Float:mins[3], const Float:maxs[3]);
/* Adds points to a side (OLDS_HILL_SIDE_*), with the core's own messages and win check. */
native olds_hill_add_score(side, points);
/* 1 = the core stops scoring on its own and waits for olds_hill_add_score. */
native olds_hill_set_external(on);