X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_keyhunt.qh;h=4d1645d02c0201ecebe82485e1f771f025e69b82;hb=6cc2d1aa115907d16ae84fb07c3fe6c3329cd9b5;hp=8ee8434293669b00a15501c92612f7c1d3eedf51;hpb=a7b24450e4c7ca75636df1375d01d2266bd00c8c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/gamemode_keyhunt.qh b/qcsrc/server/mutators/gamemode_keyhunt.qh index 8ee843429..4d1645d02 100644 --- a/qcsrc/server/mutators/gamemode_keyhunt.qh +++ b/qcsrc/server/mutators/gamemode_keyhunt.qh @@ -1,12 +1,19 @@ -// ALL OF THESE should be removed in the future, as other code should not have -// to care +#ifndef GAMEMODE_KEYHUNT_H +#define GAMEMODE_KEYHUNT_H + +#define FOR_EACH_KH_KEY(v) for(v = kh_worldkeylist; v; v = v.kh_worldkeynext ) + +// ALL OF THESE should be removed in the future, as other code should not have to care // used by bots: float kh_tracking_enabled; .entity kh_next; float kh_Key_AllOwnedByWhichTeam(); -// used by arena.qc ready-restart: typedef void(void) kh_Think_t; void kh_StartRound(); -void kh_Controller_SetThink_NoMsg(float t, kh_Think_t func); +void kh_Controller_SetThink(float t, kh_Think_t func); + +void kh_Key_DropAll(entity player, float suicide); + +#endif