void centerprint_Medal(string icon, float times)
{
+ if(!autocvar_hud_panel_centerprint_medals) return;
+
//LOG_INFOF("centerprint_Medal: icon: %s times: %d", icon, times);
//centerprint_medal_expire_time = time + autocvar_hud_panel_centerprint_time;
centerprint_medal_expire_time = time + MSG_MEDAL_TIME;
pos.y -= height;
// z411 draw medals first
- if (time < centerprint_medal_expire_time) {
+ if (autocvar_hud_panel_centerprint_medals && time < centerprint_medal_expire_time) {
if(time < centerprint_medal_expire_time - MSG_MEDAL_FADE_TIME)
a = 1;
else
tmp_in.x += (panel_size.x - newsize.x) / 2; // center medal icon
- if(centerprint_medal_times < MSG_MEDAL_SCREEN) {
+ if(centerprint_medal_times < autocvar_hud_panel_centerprint_medals_max) {
tmp_in.x -= ((newsize.x * 1.1) * (centerprint_medal_times - 1) / 2);
for(int t = 0; t < centerprint_medal_times; t++) {
drawpic(tmp_in, centerprint_medal_icon, newsize, '1 1 1', a, DRAWFLAG_NORMAL);
bool autocvar_hud_panel_centerprint_dynamichud = true;
float autocvar_hud_panel_centerprint_time;
+bool autocvar_hud_panel_centerprint_medals = true;
+int autocvar_hud_panel_centerprint_medals_max = 5;
+
void centerprint_ClearTitle();
void centerprint_SetTitle(string title);
void centerprint_Medal(string icon, int times);
#define MSG_MEDAL_TIME 2
#define MSG_MEDAL_FADE_TIME 0.5
-#define MSG_MEDAL_SCREEN 10
MSG_MEDAL_NOTIF(AIRSHOT, N__ALWAYS, "airshot", ANNCE_ACHIEVEMENT_AIRSHOT)
MSG_MEDAL_NOTIF(ASSIST, N__ALWAYS, "assist", ANNCE_ACHIEVEMENT_ASSIST)