Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
round_handler.qh
Go to the documentation of this file.
1#pragma once
2
4.float delay; // stores delay from round end to countdown start
5.float count; // stores initial number of the countdown
6.bool wait; // it's set to true when round ends, to false when countdown starts
7.float cnt; // its initial value is .count + 1, then decreased while counting down
8 // reaches 0 when the round starts
12.bool() canRoundStart;
13.bool() canRoundEnd;
14.void() roundStart;
15
16void round_handler_Init(float the_delay, float the_count, float the_round_timelimit);
17void round_handler_Spawn(bool() canRoundStart_func, bool() canRoundEnd_func, void() roundStart_func);
18void round_handler_Reset(float next_think);
20
21#define round_handler_IsActive() (round_handler != NULL)
22#define round_handler_AwaitingNextRound() (round_handler.wait)
23#define round_handler_CountdownRunning() (!round_handler.wait && round_handler.cnt)
24#define round_handler_IsRoundStarted() (!round_handler.wait && !round_handler.cnt)
25#define round_handler_GetEndTime() (round_handler.round_endtime)
26#define round_handler_GetEndDelayTime() (round_handler.round_enddelaytime)
27#define round_handler_SetEndDelayTime(t) (round_handler.round_enddelaytime = t)
28#define round_handler_ResetEndDelayTime() (round_handler.round_enddelaytime = -1)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float cnt
Definition powerups.qc:24
float count
Definition powerups.qc:22
float delay
Definition items.qc:17
float wait
Definition items.qc:17
void round_handler_Init(float the_delay, float the_count, float the_round_timelimit)
void round_handler_Remove()
float round_timelimit
void round_handler_Spawn(bool() canRoundStart_func, bool() canRoundEnd_func, void() roundStart_func)
entity round_handler
void round_handler_Reset(float next_think)
float round_enddelaytime
float round_endtime