21 HUD_Write_Cvar(
"hud_panel_centerprint_fade_subsequent_passone_minalpha");
23 HUD_Write_Cvar(
"hud_panel_centerprint_fade_subsequent_passtwo_minalpha");
24 HUD_Write_Cvar(
"hud_panel_centerprint_fade_subsequent_minfontsize");
46 void centerprint_Add(
int new_id,
string strMessage,
float duration,
int countdown_num)
48 TC(
int, new_id);
TC(
int, countdown_num);
52 if(strMessage ==
"" && new_id == 0)
58 strMessage =
substring(strMessage, 5, -1);
61 j =
strlen(strMessage) - 1;
62 while(
substring(strMessage, j, 1) ==
"\n" && j >= 0)
64 if (j <
strlen(strMessage) - 1)
65 strMessage =
substring(strMessage, 0, j + 1);
67 if(strMessage ==
"" && new_id == 0)
77 if(strMessage ==
"" && new_id == 0)
85 if (j == CENTERPRINT_MAX_MSGS)
100 if (i == CENTERPRINT_MAX_MSGS)
233 float a, sz, align, current_msg_posY = 0, msg_size;
236 bool all_messages_expired =
true;
250 fontsize =
'1 1 0' *
height;
253 if (j == CENTERPRINT_MAX_MSGS)
275 all_messages_expired =
false;
323 for(k = 0; k < n; ++k)
335 current_msg_posY = pos.y;
339 for(k = 0; k < n; ++k)
362 msg_size = pos.y - msg_size;
390 if (all_messages_expired)
float autocvar_hud_panel_centerprint_fade_subsequent_passtwo_minalpha
#define draw_endBoldFont()
string getWrappedLine_remaining
void centerprint_Kill(int id)
bool autocvar__hud_configure
#define draw_beginBoldFont()
float autocvar_hud_panel_centerprint_fade_subsequent
const int CENTERPRINT_MAX_ENTRIES
void HUD_CenterPrint_Export(int fh)
float autocvar_hud_panel_centerprint_fade_subsequent_minfontsize
bool HUD_Radar_Clickable()
float autocvar_hud_panel_centerprint_fontscale_bold
#define HUD_Panel_DrawBg()
float hud_panel_radar_bottom
const int CENTERPRINT_MAX_MSGS
float autocvar_hud_panel_centerprint_fade_minfontsize
int centerprint_countdown_num[CENTERPRINT_MAX_MSGS]
const float DRAWFLAG_NORMAL
float autocvar_hud_panel_centerprint_fontscale
float autocvar_hud_panel_centerprint_fade_in_short
float autocvar_hud_panel_centerprint_time
float autocvar_hud_panel_centerprint_fade_out
const float CENTERPRINT_SPACING
bool autocvar_hud_panel_centerprint
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define count_seconds(time)
float autocvar_hud_panel_centerprint_fade_subsequent_passtwo
float autocvar_hud_panel_centerprint_fade_subsequent_passone
void centerprint_Add(int new_id, string strMessage, float duration, int countdown_num)
#define tokenizebyseparator
float centerprint_time[CENTERPRINT_MAX_MSGS]
int centerprint_msgID[CENTERPRINT_MAX_MSGS]
float autocvar_hud_panel_centerprint_align
void centerprint_AddStandard(string strMessage)
bool autocvar_hud_panel_centerprint_dynamichud
bool autocvar_hud_panel_centerprint_flip
bool centerprint_bold[CENTERPRINT_MAX_MSGS]
string getWrappedLine(float w, vector theFontSize, textLengthUpToWidth_widthFunction_t tw)
void centerprint_KillAll()
#define HUD_Write_Cvar(cvar)
float hud_configure_cp_generation_time
float autocvar_hud_panel_centerprint_fade_subsequent_passone_minalpha
float centerprint_expire_time[CENTERPRINT_MAX_MSGS]
float scoreboard_fade_alpha
float autocvar_hud_panel_centerprint_fade_in
void HUD_Panel_LoadCvars()
ERASEABLE string seconds_tostring(float seconds)
string centerprint_messages[CENTERPRINT_MAX_MSGS]