|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "scoreboard.qh"#include <client/csqcmodel_hooks.qh>#include <client/draw.qh>#include <client/hud/panel/chat.qh>#include <client/hud/panel/physics.qh>#include <client/hud/panel/quickmenu.qh>#include <client/hud/panel/racetimer.qh>#include <client/hud/panel/weapons.qh>#include <common/constants.qh>#include <common/ent_cs.qh>#include <common/mapinfo.qh>#include <common/minigames/cl_minigames.qh>#include <common/net_linked.qh>#include <common/scores.qh>#include <common/stats.qh>#include <common/teams.qh>#include <common/items/inventory.qh>Go to the source code of this file.
Macros | |
| #define | COLOR_HIGH autocvar_hud_panel_scoreboard_ping_high_color |
| #define | COLOR_LOW autocvar_hud_panel_scoreboard_ping_low_color |
| #define | COLOR_MED autocvar_hud_panel_scoreboard_ping_medium_color |
| #define | PING_HIGH autocvar_hud_panel_scoreboard_ping_high |
| #define | PING_LOW autocvar_hud_panel_scoreboard_ping_low |
| #define | PING_MED autocvar_hud_panel_scoreboard_ping_medium |
| #define | SCO_LABEL(strlabel, label, padding, help) |
| #define | SCOREBOARD_DEFAULT_COLUMNS |
| #define COLOR_HIGH autocvar_hud_panel_scoreboard_ping_high_color |
Definition at line 1028 of file scoreboard.qc.
Referenced by Scoreboard_GetField().
| #define COLOR_LOW autocvar_hud_panel_scoreboard_ping_low_color |
Definition at line 1026 of file scoreboard.qc.
Referenced by Scoreboard_GetField().
| #define COLOR_MED autocvar_hud_panel_scoreboard_ping_medium_color |
Definition at line 1027 of file scoreboard.qc.
Referenced by Scoreboard_GetField().
| #define PING_HIGH autocvar_hud_panel_scoreboard_ping_high |
Definition at line 1025 of file scoreboard.qc.
Referenced by Scoreboard_GetField(), and XonoticServerList_drawListBoxItem().
| #define PING_LOW autocvar_hud_panel_scoreboard_ping_low |
Definition at line 1023 of file scoreboard.qc.
Referenced by Scoreboard_GetField(), and XonoticServerList_drawListBoxItem().
| #define PING_MED autocvar_hud_panel_scoreboard_ping_medium |
Definition at line 1024 of file scoreboard.qc.
Referenced by Scoreboard_GetField(), and XonoticServerList_drawListBoxItem().
| #define SCO_LABEL | ( | strlabel, | |
| label, | |||
| padding, | |||
| help ) |
Referenced by Label_getInfo().
| #define SCOREBOARD_DEFAULT_COLUMNS |
Definition at line 748 of file scoreboard.qc.
Referenced by Cmd_Scoreboard_SetFields().
| void Cmd_Scoreboard_Help | ( | ) |
Definition at line 711 of file scoreboard.qc.
References LOG_HELP, and PrintScoresLabels().
Referenced by LocalCommand_hud().
Definition at line 767 of file scoreboard.qc.
References argv(), autocvar_scoreboard_columns, cvar_set(), FOREACH, gametype, hud_fontsize, HUD_GetFontsize(), isGametypeInFilter(), LABEL, LOG_INFO, LOG_INFOF, MAX_SBT_FIELDS, ps_primary, ps_secondary, sb_field_sizes_init, sbt_field, sbt_field_title, sbt_num_fields, SCOREBOARD_DEFAULT_COLUMNS, scores_flags, scores_label, SFL_ALLOW_HIDE, strcat(), strcpy, strfree, strlen, strstrofs, strtolower(), strzone(), substring(), TC, teamplay, tokenizebyseparator, and TranslateScoresLabel().
Referenced by LocalCommand_hud(), and Scoreboard_InitScores().
Definition at line 231 of file scoreboard.qc.
References argv(), autocvar__menu_alpha, autocvar_scoreboard_columns, ceil(), entcs_GetName(), entity(), HUD_Scoreboard_UI_Disable(), hudShiftState, K_ALT, K_CTRL, K_DOWNARROW, K_ENTER, K_ESCAPE, K_KP_ENTER, K_LEFTARROW, K_PAUSE, K_RIGHTARROW, K_SHIFT, K_SPACE, K_TAB, K_UPARROW, LABEL, localcmd(), max(), min(), mousepos, NULL, NUM_SPECTATOR, players, prev_team, rankings_cnt, rankings_columns, RANKINGS_RECEIVED_CNT, rankings_rows, rankings_start_column, S_ALT, S_CTRL, S_SHIFT, S_TAB, SB_PANEL_FIRST, SB_PANEL_MAX, SB_PANEL_RANKINGS, SB_PANEL_SCOREBOARD, scoreboard_selected_columns_layout, scoreboard_selected_panel, scoreboard_selected_panel_time, scoreboard_selected_player, scoreboard_selected_team, scoreboard_ui_disabling, scoreboard_ui_enabled, Static_Team_ColorName(), stof(), teams, time, and tokenize().
Referenced by CSQC_InputEvent().
| void HUD_Scoreboard_UI_Disable | ( | ) |
Definition at line 182 of file scoreboard.qc.
References sb_showscores, and scoreboard_ui_disabling.
Referenced by HUD_Scoreboard_InputEvent().
| void HUD_Scoreboard_UI_Disable_Instantly | ( | ) |
Definition at line 188 of file scoreboard.qc.
References NULL, scoreboard_selected_panel, scoreboard_selected_player, scoreboard_selected_team, scoreboard_ui_disabling, and scoreboard_ui_enabled.
Referenced by Scoreboard_WouldDraw().
Definition at line 1954 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_itemstats_filter, autocvar_hud_panel_scoreboard_itemstats_filter_mask, entity(), and floor().
Referenced by Scoreboard_ItemStats_Draw(), and Scoreboard_ItemStats_WouldDraw().
Definition at line 117 of file scoreboard.qc.
References SCO_LABEL.
Referenced by PrintScoresLabels(), and TranslateScoresLabel().
Definition at line 2081 of file scoreboard.qc.
References DRAWFLAG_NORMAL, drawstring, hud_fontsize, panel_pos, panel_size, sbt_fg_alpha, stringwidth, and vector.
Referenced by Scoreboard_MapStats_Draw().
| void PrintScoresLabels | ( | ) |
Definition at line 505 of file scoreboard.qc.
References Label_getInfo(), and string_null.
Referenced by Cmd_Scoreboard_Help().
Definition at line 1805 of file scoreboard.qc.
References Accuracy_GetColor(), Accuracy_LoadColors(), autocvar_hud_panel_scoreboard_accuracy_doublerows, autocvar_hud_panel_scoreboard_accuracy_nocolors, autocvar_hud_panel_weapons_aspect, average_accuracy, ceil(), drawfill, DRAWFLAG_NORMAL, drawpic_aspect_skin, drawpic_tiled(), drawstring, eX, eY, floor(), FOREACH, frametime, ftos_decimals_percentage(), height, hud_fontsize, HUD_Panel_DrawBg, max(), min(), panel, panel_bg_alpha, panel_bg_border, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, REGISTRY_COUNT, sbt_bg_alpha, sbt_fg_alpha, sbt_highlight, sbt_highlight_alpha, scoreboard_acc_fade_alpha, scoreboard_fade_alpha, stringwidth, vec2, vector, weapon_accuracy, Weapons, WEP_FIRST, WEP_FLAG_HIDDEN, WEP_FLAG_MUTATORBLOCKED, WEP_TYPE_OTHER, WepSet_GetFromStat(), and WepSet_GetFromStat_InMap().
Referenced by Scoreboard_Draw().
Definition at line 2298 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_accuracy, autocvar_hud_panel_scoreboard_accuracy_showdelay, autocvar_hud_panel_scoreboard_accuracy_showdelay_minpos, FOREACH, have_weapon_stats, intermission, MUTATOR_CALLHOOK, scoreboard_time, time, vid_conheight, warmup_stage, weapon_accuracy, Weapons, and WEP_FIRST.
Referenced by Scoreboard_Draw().
Definition at line 964 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_playerid_prefix, autocvar_hud_panel_scoreboard_playerid_suffix, entity(), itos, and strcat().
Referenced by Scoreboard_DrawOthers(), and Scoreboard_GetField().
Definition at line 613 of file scoreboard.qc.
References entcs_GetTeam(), entity(), FOREACH, NUM_SPECTATOR, ps_primary, ps_secondary, Scoreboard_CompareScore(), and scores_flags.
Referenced by Scoreboard_UpdatePlayerPos().
Definition at line 596 of file scoreboard.qc.
References IS_DECREASING, IS_INCREASING, SFL_ZERO_IS_WORST, and TC.
Referenced by Scoreboard_ComparePlayerScores(), and Scoreboard_CompareTeamScores().
Definition at line 665 of file scoreboard.qc.
References entity(), MAX_TEAMSCORE, NUM_SPECTATOR, Scoreboard_CompareScore(), teamscores_flags, ts_primary, and ts_secondary.
Referenced by Scoreboard_UpdateTeamPos().
| void Scoreboard_Draw | ( | ) |
Definition at line 2401 of file scoreboard.qc.
References autocvar__hud_configure, autocvar_con_notify, autocvar_con_notifysize, autocvar_hud_fontsize, autocvar_hud_panel_scoreboard_bg_teams_color_team, autocvar_hud_panel_scoreboard_dynamichud, autocvar_hud_panel_scoreboard_fadeinspeed, autocvar_hud_panel_scoreboard_fadeoutspeed, autocvar_hud_panel_scoreboard_minwidth, autocvar_hud_panel_scoreboard_namesize, autocvar_hud_panel_scoreboard_respawntime_decimals, autocvar_hud_panel_scoreboard_spectators_position, autocvar_hud_panel_scoreboard_table_bg_alpha, autocvar_hud_panel_scoreboard_table_bg_scale, autocvar_hud_panel_scoreboard_table_fg_alpha, autocvar_hud_panel_scoreboard_table_fg_alpha_self, autocvar_hud_panel_scoreboard_table_fieldtitle_maxwidth, autocvar_hud_panel_scoreboard_table_highlight, autocvar_hud_panel_scoreboard_table_highlight_alpha, autocvar_hud_panel_scoreboard_table_highlight_alpha_eliminated, autocvar_hud_panel_scoreboard_table_highlight_alpha_self, autocvar_hud_panel_scoreboard_team_size_position, autocvar_hud_speed_unit, bound(), campaign, ceil(), ColorTranslateRGB(), count_minutes, count_seconds, count_seconds_decs, draw_beginBoldFont, draw_endBoldFont, drawcolorcodedstring, drawfill, DRAWFLAG_NORMAL, drawstring, entity(), eX, eY, floor(), frametime, ftos(), gametype, gametype_custom_name, GET_NEXTMAP, getcommandkey, GetSpeedUnit(), GetSpeedUnitFactor(), hud_configure_menu_open, hud_draw_maximized, hud_fontsize, HUD_GetFontsize(), HUD_Panel_LoadCvars(), HUD_Scale_Disable(), HUD_Scale_Enable(), intermission, M_ARGV, MapInfo_Type_ToText(), max(), max_namesize, maxclients, mi_shortname, min(), MUTATOR_CALLHOOK, name, name_field_index, NUM_SPECTATOR, numplayers, panel, panel_bg_border, panel_bg_color, panel_bg_color_team, panel_fade_alpha, panel_fg_alpha, panel_pos, panel_size, player_localnum, playerslots, race_speedaward, race_speedaward_alltimebest, race_speedaward_alltimebest_holder, race_speedaward_holder, rankings_cnt, rankings_columns, RANKINGS_RECEIVED_CNT, rankings_rows, respawn_time, sb_field_sizes_init, sbt_bg_alpha, sbt_fg_alpha, sbt_fg_alpha_self, sbt_field_size, sbt_field_title_maxwidth, sbt_field_title_width, sbt_highlight, sbt_highlight_alpha, sbt_highlight_alpha_eliminated, sbt_highlight_alpha_self, scale, scoreboard_acc_fade_alpha, Scoreboard_AccuracyStats_Draw(), Scoreboard_AccuracyStats_WouldDraw(), scoreboard_active, scoreboard_bottom, scoreboard_fade_alpha, Scoreboard_Fraglimit_Draw(), Scoreboard_initFieldSizes(), Scoreboard_ItemStats_Draw(), scoreboard_itemstats_fade_alpha, Scoreboard_ItemStats_WouldDraw(), scoreboard_left, Scoreboard_MakeTable(), Scoreboard_MapStats_Draw(), Scoreboard_Rankings_Draw(), scoreboard_right, scoreboard_selected_team, Scoreboard_Spectators_Draw(), scoreboard_time, scoreboard_top, scoreboard_ui_enabled, Scoreboard_UpdatePlayerTeams(), srv_maxplayers, STAT, strcat(), strcpy, stringwidth, stringwidth_colors(), Team_ColorRGB(), teamplay, teams, textShortenToWidth(), time, translate_key(), ts_primary, ts_secondary, vec2, vector, vid_conheight, and vid_conwidth.
Definition at line 22 of file scoreboard.qc.
References HUD_Write_Cvar.
Definition at line 1319 of file scoreboard.qc.
References drawfill, DRAWFLAG_NORMAL, drawfontscale, drawstring, eX, eY, hud_fontsize, panel_pos, panel_size, sbt_fg_alpha, sbt_field, sbt_field_size, sbt_field_title, sbt_field_title_condense_factor, sbt_highlight, sbt_highlight_alpha, sbt_num_fields, stringwidth, and vector.
Referenced by Scoreboard_MakeTable().
Definition at line 1388 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_scores_per_round, drawcolorcodedstring, drawfill, DRAWFLAG_NORMAL, drawpic, drawstring, entcs_GetSpecState(), entcs_GetWantsJoin(), ENTCS_SPEC_PURE, entity(), eX, eY, hud_fontsize, M_PI, min(), panel_fg_alpha, panel_size, SB_PANEL_SCOREBOARD, sbt_fg_alpha, sbt_fg_alpha_self, sbt_field, sbt_field_icon_extra, SBT_FIELD_ICON_EXTRA_COUNT, sbt_field_icon_extra_rgb, sbt_field_icon_playercolor, sbt_field_icon_playercolor_rgb, sbt_field_rgb, sbt_field_size, sbt_fixcolumnwidth_iconlen_extra, sbt_fixcolumnwidth_iconlen_playercolor, sbt_fixcolumnwidth_len, sbt_fixcolumnwidth_marginlen, sbt_highlight, sbt_highlight_alpha, sbt_highlight_alpha_eliminated, sbt_highlight_alpha_self, sbt_num_fields, Scoreboard_FixColumnWidth(), Scoreboard_GetField(), scoreboard_selected_panel, scoreboard_selected_player, scoreboard_ui_enabled, sin(), stringwidth, TC, Team_ColorRGB(), Team_IndexToTeam(), teamplay, time, vec2, vector, and wants_join.
Referenced by Scoreboard_MakeTable().
| vector Scoreboard_DrawOthers | ( | vector | item_pos, |
| vector | rgb, | ||
| int | this_team, | ||
| entity | excluded_pl, | ||
| entity | pl, | ||
| int | pl_number ) |
Definition at line 1523 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_namesize, autocvar_hud_panel_scoreboard_others_showscore, autocvar_hud_panel_scoreboard_playerid, autocvar_hud_panel_scoreboard_scores_per_round, autocvar_hud_panel_scoreboard_spectators_aligned, autocvar_hud_panel_scoreboard_spectators_showping, drawcolorcodedstring, drawfill, DRAWFLAG_NORMAL, drawpic, drawstring, entcs_GetName(), entcs_GetWantsJoin(), entity(), eX, hud_fontsize, M_PI, max(), min(), NUM_SPECTATOR, panel_fg_alpha, panel_size, SB_PANEL_SCOREBOARD, sbt_fg_alpha, sbt_field_rgb, sbt_highlight, sbt_highlight_alpha, sbt_highlight_alpha_eliminated, Scoreboard_AddPlayerId(), Scoreboard_GetField(), scoreboard_selected_panel, scoreboard_selected_player, scoreboard_ui_enabled, sin(), stringwidth, stringwidth_colors(), Team_ColorRGB(), Team_IndexToTeam(), teamplay, textShortenToWidth(), time, vec2, vector, and wants_join.
Referenced by Scoreboard_MakeTable(), and Scoreboard_Spectators_Draw().
Definition at line 1189 of file scoreboard.qc.
References hud_fontsize, max(), max_namesize, panel_size, sbt_field, sbt_field_icon_extra, SBT_FIELD_ICON_EXTRA_COUNT, sbt_field_icon_playercolor, sbt_field_size, sbt_field_title, sbt_field_title_condense_factor, sbt_field_title_maxwidth, sbt_field_title_maxwidth_factor, sbt_field_title_width, sbt_fixcolumnwidth_iconlen_extra, sbt_fixcolumnwidth_iconlen_playercolor, sbt_fixcolumnwidth_len, sbt_fixcolumnwidth_marginlen, sbt_num_fields, stringwidth, stringwidth_colors(), TC, textShortenToWidth(), vector, and vid_conwidth.
Referenced by Scoreboard_DrawItem(), and Scoreboard_initFieldSizes().
Definition at line 2392 of file scoreboard.qc.
References CTX(), ps_primary, scores_flags, scores_label, ScoreString(), teamplay, teamscores_flags, teamscores_label, TranslateScoresLabel(), and ts_primary.
Referenced by Scoreboard_Draw().
| string Scoreboard_GetField | ( | entity | pl, |
| PlayerScoreField | field, | ||
| bool | per_round ) |
Definition at line 1029 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_playerid, bound(), ceil(), COLOR_HIGH, COLOR_LOW, COLOR_MED, entity(), ftos(), PING_HIGH, PING_LOW, PING_MED, ps_primary, ps_secondary, rounds_played, sbt_field_icon_extra, SBT_FIELD_ICON_EXTRA_COUNT, sbt_field_icon_extra_rgb, sbt_field_icon_playercolor, sbt_field_icon_playercolor_rgb, sbt_field_rgb, Scoreboard_AddPlayerId(), Scoreboard_GetName(), scores_flags, ScoreString(), and strcat().
Referenced by Scoreboard_DrawItem(), and Scoreboard_DrawOthers().
Definition at line 981 of file scoreboard.qc.
References colormapPaletteColor, entcs_GetClientColors(), entcs_GetHandicapLevel(), entcs_GetName(), entity(), floor(), M_PI, min(), playerslots, ready_waiting, sbt_field_icon_extra, sbt_field_icon_extra_rgb, sbt_field_icon_playercolor, sbt_field_icon_playercolor_rgb, sin(), teamplay, and time.
Referenced by Scoreboard_GetField().
Definition at line 1288 of file scoreboard.qc.
References name_field_index, sbt_field, sbt_field_title_maxwidth, sbt_field_title_maxwidth_factor, sbt_num_fields, Scoreboard_FixColumnWidth(), and vid_conwidth.
Referenced by Scoreboard_Draw().
| void Scoreboard_InitScores | ( | ) |
Definition at line 514 of file scoreboard.qc.
References Cmd_Scoreboard_SetFields(), FOREACH, MAX_TEAMSCORE, NULL, ps_primary, ps_secondary, scores_flags, SFL_NOT_SORTABLE, SFL_SORT_PRIO_MASK, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_SECONDARY, teamscores_flags, ts_primary, and ts_secondary.
Referenced by NET_HANDLE().
Definition at line 1978 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_itemstats_doublerows, ceil(), default_order_items, drawfill, DRAWFLAG_NORMAL, drawpic_aspect_skin, drawpic_tiled(), drawstring, eX, eY, floor(), frametime, ftos(), g_inventory, height, hud_fontsize, HUD_Panel_DrawBg, IL_EACH, is_item_filtered(), max(), min(), panel, panel_bg_alpha, panel_bg_border, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, REGISTRY_COUNT, sbt_bg_alpha, sbt_highlight, sbt_highlight_alpha, scoreboard_fade_alpha, scoreboard_itemstats_fade_alpha, stringwidth, vec2, and vector.
Referenced by Scoreboard_Draw().
Definition at line 2331 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_itemstats, autocvar_hud_panel_scoreboard_itemstats_showdelay, autocvar_hud_panel_scoreboard_itemstats_showdelay_minpos, default_order_items, g_inventory, have_item_stats, IL_EACH, intermission, is_item_filtered(), MUTATOR_CALLHOOK, scoreboard_time, time, vid_conheight, and warmup_stage.
Referenced by Scoreboard_Draw().
Definition at line 1657 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_maxheight, bound(), current_player, drawfill, DRAWFLAG_NORMAL, drawpic, drawpic_tiled(), entity(), eY, floor(), height, hud_fontsize, HUD_Panel_DrawBg, max(), NULL, panel, panel_bg_border, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, players, playerslots, SB_PANEL_SCOREBOARD, sbt_bg_alpha, Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), scoreboard_left, scoreboard_right, scoreboard_selected_panel, scoreboard_selected_panel_time, scoreboard_selected_team, scoreboard_ui_enabled, team_count, teamplay, time, vec2, vector, and vid_conheight.
Referenced by Scoreboard_Draw().
Definition at line 2094 of file scoreboard.qc.
References DRAWFLAG_NORMAL, drawpic_tiled(), drawstring, eX, eY, hud_fontsize, HUD_Panel_DrawBg, MapStats_DrawKeyValue(), panel, panel_bg_border, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, sbt_bg_alpha, STAT, and vector.
Referenced by Scoreboard_Draw().
| vector Scoreboard_Rankings_Draw | ( | vector | pos, |
| string | ranktitle, | ||
| entity | pl, | ||
| vector | rgb, | ||
| vector | bg_size ) |
Definition at line 2164 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_namesize, ceil(), ColorTranslateRGB(), count_ordinal(), drawcolorcodedstring, drawfill, DRAWFLAG_NORMAL, drawpic_tiled(), drawstring, entcs_GetName(), entity(), eX, eY, floor(), grecordholder, grecordtime, hud_fontsize, HUD_Panel_DrawBg, max(), min(), panel, panel_bg_border, panel_bg_padding, panel_fg_alpha, panel_pos, panel_size, player_localnum, RANKINGS_CNT, rankings_cnt, rankings_columns, RANKINGS_RECEIVED_CNT, rankings_rows, rankings_start_column, SB_PANEL_RANKINGS, sbt_bg_alpha, sbt_fg_alpha, sbt_highlight, sbt_highlight_alpha, sbt_highlight_alpha_self, scoreboard_left, scoreboard_right, scoreboard_selected_panel, scoreboard_selected_panel_time, strfree, stringwidth, stringwidth_colors(), strzone(), textShortenToWidth(), time, TIME_ENCODED_TOSTRING, vec2, and vector.
Referenced by Scoreboard_Draw().
Definition at line 2364 of file scoreboard.qc.
References draw_beginBoldFont, draw_endBoldFont, DRAWFLAG_NORMAL, drawstring, entity(), hud_fontsize, NULL, NUM_SPECTATOR, panel_fg_alpha, players, Scoreboard_DrawOthers(), teams, and vector.
Referenced by Scoreboard_Draw().
Definition at line 198 of file scoreboard.qc.
References intermission, isdemo(), NULL, Release_Common_Keys(), SB_PANEL_FIRST, SB_PANEL_SCOREBOARD, scoreboard_selected_panel, scoreboard_selected_panel_time, scoreboard_selected_player, scoreboard_selected_team, scoreboard_ui_enabled, teamplay, and time.
Referenced by CSQC_InputEvent(), and CSQC_UpdateView().
Definition at line 656 of file scoreboard.qc.
References entity(), players, Scoreboard_ComparePlayerScores(), and SORT_SWAP.
Referenced by NET_HANDLE(), Playerchecker_Think(), and Scoreboard_UpdatePlayerTeams().
| void Scoreboard_UpdatePlayerTeams | ( | ) |
Definition at line 546 of file scoreboard.qc.
References entcs_GetScoreTeam(), entity(), NUM_SPECTATOR, numplayers, players, Scoreboard_UpdatePlayerPos(), SetTeam(), teamplay, teams, time, ts_max, and ts_min.
Referenced by Announcer_Duel(), HUD_InfoMessages(), HUD_Quickmenu_PlayerListEntries(), HUD_Score_Rankings(), HUD_Timer(), and Scoreboard_Draw().
Definition at line 702 of file scoreboard.qc.
References entity(), Scoreboard_CompareTeamScores(), SORT_SWAP, and teams.
Referenced by NET_HANDLE().
| bool Scoreboard_WouldDraw | ( | ) |
Definition at line 1764 of file scoreboard.qc.
References active_minigame, autocvar_cl_deathscoreboard, autocvar_cl_deathscoreboard_delay, CSQCModel_server2csqc(), death_time, HUD_MinigameMenu_IsOpened(), HUD_Radar_Clickable(), HUD_Scoreboard_UI_Disable_Instantly(), intermission, MUTATOR_CALLHOOK, player_localentnum, QuickMenu_IsOpened(), sb_showscores, scoreboard_fade_alpha, scoreboard_showscores_force, scoreboard_ui_disabling, scoreboard_ui_enabled, spectatee_status, STAT, and time.
Referenced by CSQC_UpdateView().
| SHUTDOWN | ( | scoreboard | ) |
Definition at line 109 of file scoreboard.qc.
References autocvar_hud_panel_scoreboard_scores_per_round, and cvar_set().
Definition at line 509 of file scoreboard.qc.
References Label_getInfo().
Referenced by Cmd_Scoreboard_SetFields(), and Scoreboard_Fraglimit_Draw().
| string autocvar_hud_fontsize |
Definition at line 53 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
Definition at line 82 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_WouldDraw().
Definition at line 83 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_Draw().
Definition at line 84 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_Draw().
| float autocvar_hud_panel_scoreboard_accuracy_showdelay = 2 |
Definition at line 85 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_WouldDraw().
| float autocvar_hud_panel_scoreboard_accuracy_showdelay_minpos = 0.75 |
Definition at line 86 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_WouldDraw().
| float autocvar_hud_panel_scoreboard_bg_teams_color_team = 0 |
Definition at line 78 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
Definition at line 95 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_fadeinspeed = 10 |
Definition at line 66 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_fadeoutspeed = 5 |
Definition at line 67 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
Definition at line 88 of file scoreboard.qc.
Referenced by Scoreboard_ItemStats_WouldDraw().
Definition at line 89 of file scoreboard.qc.
Referenced by Scoreboard_ItemStats_Draw().
| int autocvar_hud_panel_scoreboard_itemstats_filter = 1 |
Definition at line 90 of file scoreboard.qc.
Referenced by is_item_filtered().
| int autocvar_hud_panel_scoreboard_itemstats_filter_mask = 12 |
Definition at line 91 of file scoreboard.qc.
Referenced by is_item_filtered().
| float autocvar_hud_panel_scoreboard_itemstats_showdelay = 2.2 |
Definition at line 92 of file scoreboard.qc.
Referenced by Scoreboard_ItemStats_WouldDraw().
| float autocvar_hud_panel_scoreboard_itemstats_showdelay_minpos = 0.75 |
Definition at line 93 of file scoreboard.qc.
Referenced by Scoreboard_ItemStats_WouldDraw().
| float autocvar_hud_panel_scoreboard_maxheight = 0.6 |
Definition at line 97 of file scoreboard.qc.
Referenced by Scoreboard_MakeTable().
| float autocvar_hud_panel_scoreboard_minwidth = 0.4 |
Definition at line 101 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
Definition at line 98 of file scoreboard.qc.
Referenced by Scoreboard_DrawOthers().
| int autocvar_hud_panel_scoreboard_ping_high = 200 |
Definition at line 1019 of file scoreboard.qc.
Referenced by XonoticServerList_drawListBoxItem().
| vector autocvar_hud_panel_scoreboard_ping_high_color = '1 0 0' |
Definition at line 1022 of file scoreboard.qc.
| int autocvar_hud_panel_scoreboard_ping_low = 20 |
Definition at line 1017 of file scoreboard.qc.
Referenced by XonoticServerList_drawListBoxItem().
| vector autocvar_hud_panel_scoreboard_ping_low_color = '0 1 0' |
Definition at line 1020 of file scoreboard.qc.
| int autocvar_hud_panel_scoreboard_ping_medium = 80 |
Definition at line 1018 of file scoreboard.qc.
Referenced by XonoticServerList_drawListBoxItem().
| vector autocvar_hud_panel_scoreboard_ping_medium_color = '1 1 0' |
Definition at line 1021 of file scoreboard.qc.
Definition at line 102 of file scoreboard.qc.
Referenced by Scoreboard_DrawOthers(), and Scoreboard_GetField().
| string autocvar_hud_panel_scoreboard_playerid_prefix = "#" |
Definition at line 103 of file scoreboard.qc.
Referenced by Scoreboard_AddPlayerId().
| string autocvar_hud_panel_scoreboard_playerid_suffix = " " |
Definition at line 104 of file scoreboard.qc.
Referenced by Scoreboard_AddPlayerId().
| float autocvar_hud_panel_scoreboard_respawntime_decimals = 1 |
Definition at line 68 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| bool autocvar_hud_panel_scoreboard_scores_per_round |
Definition at line 105 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), Scoreboard_DrawOthers(), and SHUTDOWN().
Definition at line 100 of file scoreboard.qc.
Referenced by Scoreboard_DrawOthers().
| float autocvar_hud_panel_scoreboard_spectators_position = 1 |
Definition at line 80 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
Definition at line 99 of file scoreboard.qc.
Referenced by Scoreboard_DrawOthers().
| float autocvar_hud_panel_scoreboard_table_bg_alpha = 0 |
Definition at line 69 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_table_bg_scale = 0.25 |
Definition at line 70 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_table_fg_alpha = 0.9 |
Definition at line 71 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_table_fg_alpha_self = 1 |
Definition at line 72 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_table_fieldtitle_maxwidth = 0.07 |
Definition at line 73 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
Definition at line 74 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_table_highlight_alpha = 0.2 |
Definition at line 75 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_table_highlight_alpha_eliminated = 0.6 |
Definition at line 77 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_table_highlight_alpha_self = 0.4 |
Definition at line 76 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float autocvar_hud_panel_scoreboard_team_size_position = 0 |
Definition at line 79 of file scoreboard.qc.
Referenced by Scoreboard_Draw().
| float average_accuracy |
Definition at line 1804 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_Draw().
| bool have_item_stats |
Definition at line 2330 of file scoreboard.qc.
Referenced by Scoreboard_ItemStats_WouldDraw().
| bool have_weapon_stats |
Definition at line 2297 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_WouldDraw().
| float max_namesize |
Definition at line 54 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), and Scoreboard_FixColumnWidth().
Definition at line 42 of file scoreboard.qc.
Referenced by Cmd_Scoreboard_SetFields().
| float name_field_index |
Definition at line 55 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), and Scoreboard_initFieldSizes().
| int rankings_cnt = 0 |
Definition at line 230 of file scoreboard.qc.
Referenced by HUD_Scoreboard_InputEvent(), Scoreboard_Draw(), and Scoreboard_Rankings_Draw().
| int rankings_columns = 0 |
Definition at line 229 of file scoreboard.qc.
Referenced by HUD_Scoreboard_InputEvent(), Scoreboard_Draw(), and Scoreboard_Rankings_Draw().
| int rankings_rows = 0 |
Definition at line 228 of file scoreboard.qc.
Referenced by HUD_Scoreboard_InputEvent(), Scoreboard_Draw(), and Scoreboard_Rankings_Draw().
| int rankings_start_column |
Definition at line 227 of file scoreboard.qc.
Referenced by HUD_Scoreboard_InputEvent(), and Scoreboard_Rankings_Draw().
| int sb_field_sizes_init |
Definition at line 56 of file scoreboard.qc.
Referenced by Cmd_Scoreboard_SetFields(), and Scoreboard_Draw().
| float sbt_bg_alpha |
Definition at line 58 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_ItemStats_Draw(), Scoreboard_MakeTable(), Scoreboard_MapStats_Draw(), and Scoreboard_Rankings_Draw().
| float sbt_fg_alpha |
Definition at line 59 of file scoreboard.qc.
Referenced by MapStats_DrawKeyValue(), Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), and Scoreboard_Rankings_Draw().
| float sbt_fg_alpha_self |
Definition at line 60 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), and Scoreboard_DrawItem().
| PlayerScoreField sbt_field[MAX_SBT_FIELDS+1] |
Definition at line 44 of file scoreboard.qc.
Referenced by Cmd_Scoreboard_SetFields(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_FixColumnWidth(), and Scoreboard_initFieldSizes().
| string sbt_field_icon_extra[SBT_FIELD_ICON_EXTRA_COUNT] |
Definition at line 979 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), Scoreboard_FixColumnWidth(), Scoreboard_GetField(), and Scoreboard_GetName().
| const int SBT_FIELD_ICON_EXTRA_COUNT = 3 |
Definition at line 976 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), Scoreboard_FixColumnWidth(), and Scoreboard_GetField().
| vector sbt_field_icon_extra_rgb[SBT_FIELD_ICON_EXTRA_COUNT] |
Definition at line 980 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), Scoreboard_GetField(), and Scoreboard_GetName().
| string sbt_field_icon_playercolor[3] |
Definition at line 973 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), Scoreboard_FixColumnWidth(), Scoreboard_GetField(), and Scoreboard_GetName().
| vector sbt_field_icon_playercolor_rgb[3] |
Definition at line 974 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), Scoreboard_GetField(), and Scoreboard_GetName().
| vector sbt_field_rgb |
Definition at line 971 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), Scoreboard_DrawOthers(), and Scoreboard_GetField().
| float sbt_field_size[MAX_SBT_FIELDS+1] |
Definition at line 45 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), and Scoreboard_FixColumnWidth().
| string sbt_field_title[MAX_SBT_FIELDS+1] |
Definition at line 46 of file scoreboard.qc.
Referenced by Cmd_Scoreboard_SetFields(), Scoreboard_DrawHeader(), and Scoreboard_FixColumnWidth().
| float sbt_field_title_condense_factor[MAX_SBT_FIELDS+1] |
Definition at line 47 of file scoreboard.qc.
Referenced by Scoreboard_DrawHeader(), and Scoreboard_FixColumnWidth().
| float sbt_field_title_maxwidth |
Definition at line 50 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), Scoreboard_FixColumnWidth(), and Scoreboard_initFieldSizes().
| float sbt_field_title_maxwidth_factor |
Definition at line 51 of file scoreboard.qc.
Referenced by Scoreboard_FixColumnWidth(), and Scoreboard_initFieldSizes().
| float sbt_field_title_width[MAX_SBT_FIELDS+1] |
Definition at line 48 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), and Scoreboard_FixColumnWidth().
| float sbt_fixcolumnwidth_iconlen_extra[2] |
Definition at line 1186 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), and Scoreboard_FixColumnWidth().
| float sbt_fixcolumnwidth_iconlen_playercolor |
Definition at line 1185 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), and Scoreboard_FixColumnWidth().
| float sbt_fixcolumnwidth_len |
Definition at line 1184 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), and Scoreboard_FixColumnWidth().
| float sbt_fixcolumnwidth_marginlen |
Definition at line 1187 of file scoreboard.qc.
Referenced by Scoreboard_DrawItem(), and Scoreboard_FixColumnWidth().
| bool sbt_highlight |
Definition at line 61 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_ItemStats_Draw(), and Scoreboard_Rankings_Draw().
| float sbt_highlight_alpha |
Definition at line 62 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_Draw(), Scoreboard_Draw(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_DrawOthers(), Scoreboard_ItemStats_Draw(), and Scoreboard_Rankings_Draw().
| float sbt_highlight_alpha_eliminated |
Definition at line 64 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), Scoreboard_DrawItem(), and Scoreboard_DrawOthers().
| float sbt_highlight_alpha_self |
Definition at line 63 of file scoreboard.qc.
Referenced by Scoreboard_Draw(), Scoreboard_DrawItem(), and Scoreboard_Rankings_Draw().
| int sbt_num_fields |
Definition at line 49 of file scoreboard.qc.
Referenced by Cmd_Scoreboard_SetFields(), Scoreboard_DrawHeader(), Scoreboard_DrawItem(), Scoreboard_FixColumnWidth(), and Scoreboard_initFieldSizes().
| float scoreboard_time |
Definition at line 107 of file scoreboard.qc.
Referenced by Scoreboard_AccuracyStats_WouldDraw(), Scoreboard_Draw(), and Scoreboard_ItemStats_WouldDraw().
| bool scoreboard_ui_disabling |
Definition at line 181 of file scoreboard.qc.
Referenced by HUD_Scoreboard_InputEvent(), HUD_Scoreboard_UI_Disable(), HUD_Scoreboard_UI_Disable_Instantly(), and Scoreboard_WouldDraw().