/*
* Captain's Last Order natives and forward (olds.ro), GPL-3.0-or-later.
*/
#if defined _olds_lastorder_included
#endinput
#endif
#define _olds_lastorder_included
#pragma reqlib olds_lastorder
/**
* The zombie core names the human captain (0 = nobody). A different
* captain is a role transfer: the old captain's pending order is dropped.
*
* @return 1 on success, 0 on a bad player
*/
native olds_lastorder_set_captain(id);
/**
* @return the current captain, or 0
*/
native olds_lastorder_get_captain();
/**
* The core confirms that this player is eliminated (killed for good or
* infected). If it is the captain with an order, the order is delivered now.
*
* @return 1 if an order was delivered, 0 otherwise
*/
native olds_lastorder_eliminated(id);
/**
* Called from the Killed hook when the captain dies with an order pending.
* The core returns PLUGIN_HANDLED to confirm that the death counts; then the
* order is delivered. Return PLUGIN_CONTINUE when it does not count (for
* example a death the core will undo with a respawn).
*/
forward olds_lastorder_confirm(captain, killer);