Xonotic
|
#include "announcer.qh"
#include <client/hud/panel/centerprint.qh>
#include <client/mutators/_mod.qh>
#include <common/notifications/all.qh>
#include <common/stats.qh>
Go to the source code of this file.
Macros | |
#define | ANNOUNCER_CHECKMINUTE(minute) |
Functions | |
void | Announcer () |
void | Announcer_Countdown (entity this) |
void | Announcer_Gamestart () |
void | Announcer_Time () |
string | AnnouncerOption () |
Variables | |
bool | announcer_1min |
bool | announcer_5min |
entity | announcer_countdown |
float | previous_game_starttime |
Checks whether the server initiated a map restart (stat_game_starttime changed) More... | |
#define ANNOUNCER_CHECKMINUTE | ( | minute | ) |
Definition at line 114 of file announcer.qc.
Referenced by Announcer_Time().
void Announcer | ( | ) |
Definition at line 166 of file announcer.qc.
References Announcer_Gamestart(), and Announcer_Time().
Referenced by CSQC_UpdateView().
Definition at line 20 of file announcer.qc.
References announcer_countdown, floor(), Local_Notification(), nextthink, NULL, starttime, and time.
Referenced by Announcer_Gamestart().
void Announcer_Gamestart | ( | ) |
Definition at line 73 of file announcer.qc.
References announcer_countdown, Announcer_Countdown(), centerprint_Kill(), floor(), intermission, Local_Notification(), NULL, ORDINAL, previous_game_starttime, setthink, and time.
Referenced by Announcer().
void Announcer_Time | ( | ) |
Definition at line 126 of file announcer.qc.
References announcer_1min, announcer_5min, ANNOUNCER_CHECKMINUTE, autocvar_cl_announcer_maptime, intermission, max(), starttime, time, and warmup_stage.
Referenced by Announcer().
string AnnouncerOption | ( | ) |
Definition at line 10 of file announcer.qc.
References AnnouncerOption(), autocvar_cl_announcer, M_ARGV, and MUTATOR_CALLHOOK.
Referenced by AnnouncerOption().
bool announcer_1min |
Definition at line 8 of file announcer.qc.
Referenced by Announcer_Time().
bool announcer_5min |
Definition at line 9 of file announcer.qc.
Referenced by Announcer_Time().
entity announcer_countdown |
Definition at line 18 of file announcer.qc.
Referenced by Announcer_Countdown(), and Announcer_Gamestart().
float previous_game_starttime |
Checks whether the server initiated a map restart (stat_game_starttime changed)
TODO: Use a better solution where a common shared entitiy is used that contains timelimit, fraglimit and game_starttime! Requires engine changes (remove STAT_TIMELIMIT and STAT_FRAGLIMIT to be auto-sent)
Definition at line 72 of file announcer.qc.
Referenced by Announcer_Gamestart().