|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "announcer.qh"#include <client/draw.qh>#include <client/hud/panel/centerprint.qh>#include <client/hud/panel/scoreboard.qh>#include <client/mutators/_mod.qh>#include <common/notifications/all.qh>#include <common/stats.qh>#include <common/mapinfo.qh>#include <common/ent_cs.qh>Go to the source code of this file.
Macros | |
| #define | ANNOUNCER_CHECKMINUTE(minute) |
Functions | |
| void | Announcer () |
| void | Announcer_ClearTitle () |
| void | Announcer_Countdown (entity this) |
| void | Announcer_Duel () |
| void | Announcer_Gamestart () |
| void | Announcer_Time () |
| string | AnnouncerOption () |
Variables | |
| bool | announcer_1min |
| bool | announcer_5min |
| entity | announcer_countdown |
| bool | prev_inround |
| string | prev_pl1_name |
| Displays duel title; updates it if the players in-game have changed. | |
| string | prev_pl2_name |
| float | prev_roundstarttime |
| float | prev_starttime |
| float | previous_game_starttime |
| Checks whether the server initiated a map restart (stat_game_starttime changed) | |
| #define ANNOUNCER_CHECKMINUTE | ( | minute | ) |
Definition at line 176 of file announcer.qc.
Referenced by Announcer_Time().
| void Announcer | ( | ) |
Definition at line 228 of file announcer.qc.
References Announcer_Gamestart(), Announcer_Time(), and gametype.
Referenced by CSQC_UpdateView().
| void Announcer_ClearTitle | ( | ) |
Definition at line 48 of file announcer.qc.
References centerprint_ClearTitle(), prev_pl1_name, prev_pl2_name, and strfree.
Referenced by Announcer_Countdown(), and Announcer_Gamestart().
Definition at line 58 of file announcer.qc.
References Announcer_ClearTitle(), announcer_countdown, Announcer_PickNumber(), CNT_GAMESTART, CNT_ROUNDSTART, entity(), floor(), Local_Notification(), nextthink, NULL, prev_inround, prev_roundstarttime, prev_starttime, skin, STAT, and time.
Referenced by Announcer_Gamestart().
| void Announcer_Duel | ( | ) |
Definition at line 29 of file announcer.qc.
References centerprint_SetDuelTitle(), entcs_GetName(), entity(), NUM_SPECTATOR, players, prev_pl1_name, prev_pl2_name, Scoreboard_UpdatePlayerTeams(), and strcpy.
Referenced by Announcer_Gamestart().
| void Announcer_Gamestart | ( | ) |
Definition at line 127 of file announcer.qc.
References Announcer_ClearTitle(), Announcer_Countdown(), announcer_countdown, Announcer_Duel(), centerprint_Kill(), centerprint_SetTitle(), CPID_ROUND, floor(), gametype, intermission, Local_Notification(), MapInfo_Type_ToText(), new_pure, NULL, ORDINAL, previous_game_starttime, setthink, STAT, strcat(), time, and warmup_stage.
Referenced by Announcer().
| void Announcer_Time | ( | ) |
Definition at line 188 of file announcer.qc.
References announcer_1min, announcer_5min, ANNOUNCER_CHECKMINUTE, autocvar_cl_announcer_maptime, intermission, max(), STAT, time, and warmup_stage.
Referenced by Announcer().
| string AnnouncerOption | ( | ) |
Definition at line 14 of file announcer.qc.
References AnnouncerOption(), autocvar_cl_announcer, M_ARGV, and MUTATOR_CALLHOOK.
Referenced by AnnouncerOption(), and MUTATOR_HOOKABLE().
| bool announcer_1min |
Definition at line 12 of file announcer.qc.
Referenced by Announcer_Time().
| bool announcer_5min |
Definition at line 13 of file announcer.qc.
Referenced by Announcer_Time().
| entity announcer_countdown |
Definition at line 22 of file announcer.qc.
Referenced by Announcer_Countdown(), and Announcer_Gamestart().
| bool prev_inround |
Definition at line 55 of file announcer.qc.
Referenced by Announcer_Countdown().
| string prev_pl1_name |
Displays duel title; updates it if the players in-game have changed.
Definition at line 27 of file announcer.qc.
Referenced by Announcer_ClearTitle(), and Announcer_Duel().
| string prev_pl2_name |
Definition at line 28 of file announcer.qc.
Referenced by Announcer_ClearTitle(), and Announcer_Duel().
| float prev_roundstarttime |
Definition at line 57 of file announcer.qc.
Referenced by Announcer_Countdown().
| float prev_starttime |
Definition at line 56 of file announcer.qc.
Referenced by Announcer_Countdown().
| 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 126 of file announcer.qc.
Referenced by Announcer_Gamestart().