+#include "all.qh"
#include <common/command/all.qc>
#include "cl_cmd.qc"
#ifndef CLIENT_COMMANDS_ALL_H
#define CLIENT_COMMANDS_ALL_H
-#include <common/commands/all.qh>
+#include <common/command/all.qh>
#include "cl_cmd.qh"
+#include "cl_cmd.qh"
// ==============================================
// CSQC client commands code, written by Samual
// Last updated: December 28th, 2011
+#include "csqcmodel_hooks.qh"
#include "mutators/events.qh"
#include "player_skeleton.qh"
#include "weapons/projectile.qh"
--- /dev/null
+#pragma once
+#include "all.qh"
#include "hud.qc"
#include "hud_config.qc"
+#include "ammo.qh"
// Ammo (#1)
void DrawNadeProgressBar(vector myPos, vector mySize, float progress, vector color)
--- /dev/null
+#pragma once
+#include "centerprint.qh"
// CenterPrint (#16)
const int CENTERPRINT_MAX_MSGS = 10;
--- /dev/null
+#pragma once
+#include "chat.qh"
/** Handle chat as a panel (#12) */
void HUD_Chat()
{
--- /dev/null
+#pragma once
+#include "engineinfo.qh"
// Engine info panel (#13)
float prevfps;
--- /dev/null
+#pragma once
+#include "healtharmor.qh"
/** Health/armor (#3) */
void HUD_HealthArmor()
{
--- /dev/null
+#pragma once
+#include "infomessages.qh"
// Info messages panel (#14)
#define drawInfoMessage(s) MACRO_BEGIN { \
--- /dev/null
+#pragma once
+#include "minigame.qh"
// Minigame
#include <common/minigames/cl_minigames_hud.qc>
--- /dev/null
+#pragma once
+#include "modicons.qh"
// Mod icons panel (#10)
bool mod_active; // is there any active mod icon?
--- /dev/null
+#pragma once
+#include "notify.qh"
// Notification area (#4)
void HUD_Notify_Push(string icon, string attacker, string victim)
--- /dev/null
+#pragma once
+#include "physics.qh"
// Physics panel (#15)
vector acc_prevspeed;
--- /dev/null
+#pragma once
+#include "powerups.qh"
// Powerups (#2)
// Powerup item fields (reusing existing fields)
--- /dev/null
+#pragma once
+#include "pressedkeys.qh"
/** Draw pressed keys (#11) */
void HUD_PressedKeys()
{
--- /dev/null
+#pragma once
+#include "quickmenu.qh"
// QuickMenu (#23)
#include <client/quickmenu.qc>
--- /dev/null
+#pragma once
+#include "racetimer.qh"
/** Race timer (#8) */
void HUD_RaceTimer ()
{
--- /dev/null
+#pragma once
+#include "radar.qh"
// Radar (#6)
float HUD_Radar_Clickable()
--- /dev/null
+#pragma once
+#include "score.qh"
// Score (#7)
void HUD_UpdatePlayerTeams();
--- /dev/null
+#pragma once
+#include "timer.qh"
void HUD_Timer()
{
if(!autocvar__hud_configure)
--- /dev/null
+#pragma once
+#include "vote.qh"
/** Vote window (#9) */
void HUD_Vote()
{
--- /dev/null
+#pragma once
+#include "weapons.qh"
// Weapon icons (#0)
entity weaponorder[Weapons_MAX];
--- /dev/null
+#pragma once
+#include "view.qh"
#include "announcer.qh"
#include "hud/all.qh"
--- /dev/null
+#pragma once
+#include "animation.qh"
#ifndef ANIM_ANIMATION_H
#define ANIM_ANIMATION_H
CLASS(Animation, Object)
--- /dev/null
+#pragma once
+#include "animhost.qh"
#include "../menu.qh"
#ifndef ANIM_ANIMHOST_H
--- /dev/null
+#pragma once
+#include "easing.qh"
#ifndef ANIM_EASING_H
#define ANIM_EASING_H
#include "animation.qc"
--- /dev/null
+#pragma once
+#include "keyframe.qh"
#ifndef ANIM_KEYFRAME_H
#define ANIM_KEYFRAME_H
#include "animation.qc"
--- /dev/null
+#pragma once
+#include "classes.qh"
#ifndef CLASSES_H
#define CLASSES_H
--- /dev/null
+#pragma once
+#include "all.qh"
#include "../menu.qh"
#include <common/command/all.qc>
#ifndef MENU_COMMANDS_ALL_H
#define MENU_COMMANDS_ALL_H
-#include <common/command/commands.qh>
+#include <common/command/command.qh>
#include "menu_cmd.qh"
+#include "item.qh"
#ifndef ITEM_H
#define ITEM_H
#include "skin.qh"
--- /dev/null
+#pragma once
+#include "borderimage.qh"
#ifndef ITEM_BORDERIMAGE_H
#define ITEM_BORDERIMAGE_H
#include "label.qc"
--- /dev/null
+#pragma once
+#include "button.qh"
#ifndef ITEM_BUTTON_H
#define ITEM_BUTTON_H
#include "label.qc"
--- /dev/null
+#pragma once
+#include "checkbox.qh"
#ifndef ITEM_CHECKBOX_H
#define ITEM_CHECKBOX_H
#include "button.qc"
--- /dev/null
+#pragma once
+#include "container.qh"
#ifndef ITEM_CONTAINER_H
#define ITEM_CONTAINER_H
#include "../item.qc"
--- /dev/null
+#pragma once
+#include "dialog.qh"
// Note: this class is called Dialog, but it can also handle a tab under the following conditions:
// - isTabRoot is 0
// - backgroundImage is the tab's background
--- /dev/null
+#pragma once
+#include "image.qh"
#ifndef ITEM_IMAGE_H
#define ITEM_IMAGE_H
#include "../item.qc"
--- /dev/null
+#pragma once
+#include "inputbox.qh"
#ifndef ITEM_INPUTBOX_H
#define ITEM_INPUTBOX_H
#include "label.qc"
--- /dev/null
+#pragma once
+#include "inputcontainer.qh"
#ifndef ITEM_INPUTCONTAINER_H
#define ITEM_INPUTCONTAINER_H
#include "container.qc"
--- /dev/null
+#pragma once
+#include "label.qh"
#ifndef ITEM_LABEL_H
#define ITEM_LABEL_H
#include "../item.qc"
--- /dev/null
+#pragma once
+#include "listbox.qh"
#ifndef ITEM_LISTBOX_H
#define ITEM_LISTBOX_H
#include "../item.qc"
--- /dev/null
+#pragma once
+#include "modalcontroller.qh"
#ifndef ITEM_MODALCONTROLLER_H
#define ITEM_MODALCONTROLLER_H
#include "container.qc"
--- /dev/null
+#pragma once
+#include "nexposee.qh"
#ifndef ITEM_NEXPOSEE_H
#define ITEM_NEXPOSEE_H
#include "container.qc"
--- /dev/null
+#pragma once
+#include "radiobutton.qh"
#ifndef ITEM_RADIOBUTTON_H
#define ITEM_RADIOBUTTON_H
#include "checkbox.qc"
--- /dev/null
+#pragma once
+#include "slider.qh"
// Note:
// to use this, you FIRST call configureSliderVisuals, then configureSliderValues
#ifndef ITEM_SLIDER_H
--- /dev/null
+#pragma once
+#include "tab.qh"
#ifndef ITEM_TAB_H
#define ITEM_TAB_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "textslider.qh"
// Note:
// to use this, you FIRST call configureSliderVisuals, then multiple times addValue, then configureTextSlider
#ifndef ITEM_TEXTSLIDER_H
--- /dev/null
+#pragma once
+#include "bigbutton.qh"
#ifndef BIGBUTTON_H
#define BIGBUTTON_H
#include "button.qc"
--- /dev/null
+#pragma once
+#include "bigcommandbutton.qh"
#ifndef BIGCOMMANDBUTTON_H
#define BIGCOMMANDBUTTON_H
#include "commandbutton.qc"
--- /dev/null
+#pragma once
+#include "button.qh"
#ifndef BUTTON_H
#define BUTTON_H
#include "../item/button.qc"
--- /dev/null
+#pragma once
+#include "campaign.qh"
#include <common/campaign_common.qh>
#ifndef CAMPAIGN_H
--- /dev/null
+#pragma once
+#include "charmap.qh"
#ifndef CHARMAP_H
#define CHARMAP_H
#include "picker.qc"
--- /dev/null
+#pragma once
+#include "checkbox.qh"
#ifndef CHECKBOX_H
#define CHECKBOX_H
#include "../item/checkbox.qc"
--- /dev/null
+#pragma once
+#include "checkbox_slider_invalid.qh"
#ifndef CHECKBOX_SLIDER_INVALID_H
#define CHECKBOX_SLIDER_INVALID_H
#include "../item/checkbox.qc"
--- /dev/null
+#pragma once
+#include "checkbox_string.qh"
#ifndef CHECKBOX_STRING_H
#define CHECKBOX_STRING_H
#include "../item/checkbox.qc"
--- /dev/null
+#pragma once
+#include "colorbutton.qh"
#ifndef COLORBUTTON_H
#define COLORBUTTON_H
#include "../item/radiobutton.qc"
--- /dev/null
+#pragma once
+#include "colorpicker.qh"
#ifndef COLORPICKER_H
#define COLORPICKER_H
#include "../item/image.qc"
--- /dev/null
+#pragma once
+#include "colorpicker_string.qh"
#ifndef COLORPICKER_STRING_H
#define COLORPICKER_STRING_H
#include "../item/image.qc"
--- /dev/null
+#pragma once
+#include "commandbutton.qh"
#ifndef COMMANDBUTTON_CLOSE
# define COMMANDBUTTON_CLOSE 1
# define COMMANDBUTTON_APPLY 2
--- /dev/null
+#pragma once
+#include "credits.qh"
#ifndef CREDITS_H
#define CREDITS_H
--- /dev/null
+#pragma once
+#include "crosshairpicker.qh"
#ifndef CROSSHAIRPICKER_H
#define CROSSHAIRPICKER_H
#include "picker.qc"
--- /dev/null
+#pragma once
+#include "crosshairpreview.qh"
#ifndef CROSSHAIRPREVIEW_H
#define CROSSHAIRPREVIEW_H
#include "../item.qc"
--- /dev/null
+#pragma once
+#include "cvarlist.qh"
#ifndef CVARLIST_H
#define CVARLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "datasource.qh"
#ifndef DATASOURCE_H
#define DATASOURCE_H
CLASS(DataSource, Object)
--- /dev/null
+#pragma once
+#include "demolist.qh"
#ifndef DEMOLIST_H
#define DEMOLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "dialog.qh"
#ifndef DIALOG_H
#define DIALOG_H
#include "../item/dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_credits.qh"
#ifndef DIALOG_CREDITS_H
#define DIALOG_CREDITS_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_firstrun.qh"
#ifndef DIALOG_FIRSTRUN_H
#define DIALOG_FIRSTRUN_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_ammo.qh"
#ifndef DIALOG_HUDPANEL_AMMO_H
#define DIALOG_HUDPANEL_AMMO_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_centerprint.qh"
#ifndef DIALOG_HUDPANEL_CENTERPRINT_H
#define DIALOG_HUDPANEL_CENTERPRINT_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_chat.qh"
#ifndef DIALOG_HUDPANEL_CHAT_H
#define DIALOG_HUDPANEL_CHAT_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_engineinfo.qh"
#ifndef DIALOG_HUDPANEL_ENGINEINFO_H
#define DIALOG_HUDPANEL_ENGINEINFO_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_healtharmor.qh"
#ifndef DIALOG_HUDPANEL_HEALTHARMOR_H
#define DIALOG_HUDPANEL_HEALTHARMOR_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_infomessages.qh"
#ifndef DIALOG_HUDPANEL_INFOMESSAGES_H
#define DIALOG_HUDPANEL_INFOMESSAGES_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_itemstime.qh"
#ifndef DIALOG_HUDPANEL_ITEMSTIME_H
#define DIALOG_HUDPANEL_ITEMSTIME_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_modicons.qh"
#ifndef DIALOG_HUDPANEL_MODICONS_H
#define DIALOG_HUDPANEL_MODICONS_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_notification.qh"
#ifndef DIALOG_HUDPANEL_NOTIFICATION_H
#define DIALOG_HUDPANEL_NOTIFICATION_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_physics.qh"
#ifndef DIALOG_HUDPANEL_PHYSICS_H
#define DIALOG_HUDPANEL_PHYSICS_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_powerups.qh"
#ifndef DIALOG_HUDPANEL_POWERUPS_H
#define DIALOG_HUDPANEL_POWERUPS_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_pressedkeys.qh"
#ifndef DIALOG_HUDPANEL_PRESSEDKEYS_H
#define DIALOG_HUDPANEL_PRESSEDKEYS_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_quickmenu.qh"
#ifndef DIALOG_HUDPANEL_QUICKMENU_H
#define DIALOG_HUDPANEL_QUICKMENU_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_racetimer.qh"
#ifndef DIALOG_HUDPANEL_RACETIMER_H
#define DIALOG_HUDPANEL_RACETIMER_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_radar.qh"
#ifndef DIALOG_HUDPANEL_RADAR_H
#define DIALOG_HUDPANEL_RADAR_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_score.qh"
#ifndef DIALOG_HUDPANEL_SCORE_H
#define DIALOG_HUDPANEL_SCORE_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_timer.qh"
#ifndef DIALOG_HUDPANEL_TIMER_H
#define DIALOG_HUDPANEL_TIMER_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_vote.qh"
#ifndef DIALOG_HUDPANEL_VOTE_H
#define DIALOG_HUDPANEL_VOTE_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudpanel_weapons.qh"
#ifndef DIALOG_HUDPANEL_WEAPONS_H
#define DIALOG_HUDPANEL_WEAPONS_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_hudsetup_exit.qh"
#ifndef DIALOG_HUDSETUP_EXIT_H
#define DIALOG_HUDSETUP_EXIT_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_monstertools.qh"
#ifndef DIALOG_MONSTERTOOLS_H
#define DIALOG_MONSTERTOOLS_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer.qh"
#ifndef DIALOG_MULTIPLAYER_H
#define DIALOG_MULTIPLAYER_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_create.qh"
#ifndef DIALOG_MULTIPLAYER_CREATE_H
#define DIALOG_MULTIPLAYER_CREATE_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_create_mapinfo.qh"
#ifndef DIALOG_MULTIPLAYER_CREATE_MAPINFO_H
#define DIALOG_MULTIPLAYER_CREATE_MAPINFO_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_create_mutators.qh"
#include <common/weapons/all.qh>
#ifndef DIALOG_MULTIPLAYER_CREATE_MUTATORS_H
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_join.qh"
#ifndef DIALOG_MULTIPLAYER_JOIN_H
#define DIALOG_MULTIPLAYER_JOIN_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_join_serverinfo.qh"
#include <common/mapinfo.qh>
#ifndef DIALOG_MULTIPLAYER_JOIN_SERVERINFO_H
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_media.qh"
#ifndef DIALOG_MULTIPLAYER_MEDIA_H
#define DIALOG_MULTIPLAYER_MEDIA_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_media_demo.qh"
#ifndef DIALOG_MULTIPLAYER_MEDIA_DEMO_H
#define DIALOG_MULTIPLAYER_MEDIA_DEMO_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_media_demo_startconfirm.qh"
#ifndef DIALOG_MULTIPLAYER_MEDIA_DEMO_STARTCONFIRM_H
#define DIALOG_MULTIPLAYER_MEDIA_DEMO_STARTCONFIRM_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_media_demo_timeconfirm.qh"
#ifndef DIALOG_MULTIPLAYER_MEDIA_DEMO_TIMECONFIRM_H
#define DIALOG_MULTIPLAYER_MEDIA_DEMO_TIMECONFIRM_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_media_musicplayer.qh"
#ifndef DIALOG_MULTIPLAYER_MEDIA_MUSICPLAYER_H
#define DIALOG_MULTIPLAYER_MEDIA_MUSICPLAYER_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_media_screenshot.qh"
#ifndef DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_H
#define DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_media_screenshot_viewer.qh"
#ifndef DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_VIEWER_H
#define DIALOG_MULTIPLAYER_MEDIA_SCREENSHOT_VIEWER_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_multiplayer_profile.qh"
#ifndef DIALOG_MULTIPLAYER_PROFILE_H
#define DIALOG_MULTIPLAYER_PROFILE_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_quit.qh"
#ifndef DIALOG_QUIT_H
#define DIALOG_QUIT_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_sandboxtools.qh"
#ifndef DIALOG_SANDBOXTOOLS_H
#define DIALOG_SANDBOXTOOLS_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings.qh"
#ifndef DIALOG_SETTINGS_H
#define DIALOG_SETTINGS_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_audio.qh"
#ifndef DIALOG_SETTINGS_AUDIO_H
#define DIALOG_SETTINGS_AUDIO_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_effects.qh"
#ifndef DIALOG_SETTINGS_EFFECTS_H
#define DIALOG_SETTINGS_EFFECTS_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_game.qh"
#ifndef DIALOG_SETTINGS_GAME_H
#define DIALOG_SETTINGS_GAME_H
--- /dev/null
+#pragma once
+#include "dialog_settings_game_crosshair.qh"
#ifndef DIALOG_SETTINGS_GAME_CROSSHAIR_H
#define DIALOG_SETTINGS_GAME_CROSSHAIR_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_game_hud.qh"
#ifndef DIALOG_SETTINGS_GAME_HUD_H
#define DIALOG_SETTINGS_GAME_HUD_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_game_hudconfirm.qh"
#ifndef DIALOG_SETTINGS_GAME_HUDCONFIRM_H
#define DIALOG_SETTINGS_GAME_HUDCONFIRM_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_game_messages.qh"
#ifndef DIALOG_SETTINGS_GAME_MESSAGES_H
#define DIALOG_SETTINGS_GAME_MESSAGES_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_game_model.qh"
#ifndef DIALOG_SETTINGS_GAME_MODEL_H
#define DIALOG_SETTINGS_GAME_MODEL_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_game_view.qh"
#ifndef DIALOG_SETTINGS_GAME_VIEW_H
#define DIALOG_SETTINGS_GAME_VIEW_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_game_weapons.qh"
#ifndef DIALOG_SETTINGS_GAME_WEAPONS_H
#define DIALOG_SETTINGS_GAME_WEAPONS_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_input.qh"
#ifndef DIALOG_SETTINGS_INPUT_H
#define DIALOG_SETTINGS_INPUT_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_input_userbind.qh"
#ifndef DIALOG_SETTINGS_INPUT_USERBIND_H
#define DIALOG_SETTINGS_INPUT_USERBIND_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_misc.qh"
#ifndef DIALOG_SETTINGS_MISC_H
#define DIALOG_SETTINGS_MISC_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_misc_cvars.qh"
#ifndef DIALOG_SETTINGS_MISC_CVARS_H
#define DIALOG_SETTINGS_MISC_CVARS_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_misc_reset.qh"
#ifndef DIALOG_SETTINGS_MISC_RESET_H
#define DIALOG_SETTINGS_MISC_RESET_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_user.qh"
#ifndef DIALOG_SETTINGS_USER_H
#define DIALOG_SETTINGS_USER_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_user_languagewarning.qh"
#ifndef DIALOG_SETTINGS_USER_LANGUAGEWARNING_H
#define DIALOG_SETTINGS_USER_LANGUAGEWARNING_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_settings_video.qh"
#ifndef DIALOG_SETTINGS_VIDEO_H
#define DIALOG_SETTINGS_VIDEO_H
#include "tab.qc"
--- /dev/null
+#pragma once
+#include "dialog_singleplayer.qh"
#ifndef DIALOG_SINGLEPLAYER_H
#define DIALOG_SINGLEPLAYER_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_singleplayer_winner.qh"
#ifndef DIALOG_SINGLEPLAYER_WINNER_H
#define DIALOG_SINGLEPLAYER_WINNER_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "dialog_teamselect.qh"
#ifndef DIALOG_TEAMSELECT_H
#define DIALOG_TEAMSELECT_H
#include "rootdialog.qc"
--- /dev/null
+#pragma once
+#include "gametypebutton.qh"
#ifndef GAMETYPEBUTTON_H
#define GAMETYPEBUTTON_H
#include "../item/radiobutton.qc"
--- /dev/null
+#pragma once
+#include "gametypelist.qh"
#ifndef GAMETYPELIST_H
#define GAMETYPELIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "hudskinlist.qh"
#ifndef HUDSKINLIST_H
#define HUDSKINLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "image.qh"
#ifndef IMAGE_H
#define IMAGE_H
#include "../item/image.qc"
--- /dev/null
+#pragma once
+#include "inputbox.qh"
#ifndef INPUTBOX_H
#define INPUTBOX_H
#include "../item/inputbox.qc"
--- /dev/null
+#pragma once
+#include "keybinder.qh"
#ifndef KEYBINDER_H
#define KEYBINDER_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "languagelist.qh"
#ifndef LANGUAGELIST_H
#define LANGUAGELIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "listbox.qh"
#ifndef LISTBOX_H
#define LISTBOX_H
#include "../item/listbox.qc"
--- /dev/null
+#pragma once
+#include "mainwindow.qh"
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "../item/modalcontroller.qc"
--- /dev/null
+#pragma once
+#include "maplist.qh"
#ifndef MAPLIST_H
#define MAPLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "nexposee.qh"
#ifndef NEXPOSEE_H
#define NEXPOSEE_H
#include "../item/nexposee.qc"
--- /dev/null
+#pragma once
+#include "picker.qh"
#ifndef PICKER_H
#define PICKER_H
#include "../item.qc"
--- /dev/null
+#pragma once
+#include "playerlist.qh"
#ifndef PLAYERLIST_H
#define PLAYERLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "playermodel.qh"
#ifndef PLAYERMODEL_H
#define PLAYERMODEL_H
#include "image.qc"
--- /dev/null
+#pragma once
+#include "playlist.qh"
#ifndef PLAYLIST_H
#define PLAYLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "radiobutton.qh"
#ifndef RADIOBUTTON_H
#define RADIOBUTTON_H
#include "../item/radiobutton.qc"
--- /dev/null
+#pragma once
+#include "rootdialog.qh"
#ifndef ROOTDIALOG_H
#define ROOTDIALOG_H
#include "dialog.qc"
--- /dev/null
+#pragma once
+#include "screenshotimage.qh"
#ifndef SCREENSHOTIMAGE_H
#define SCREENSHOTIMAGE_H
#include "image.qc"
--- /dev/null
+#pragma once
+#include "screenshotlist.qh"
#ifndef SCREENSHOTLIST_H
#define SCREENSHOTLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "serverlist.qh"
#ifndef SERVERLIST_H
#define SERVERLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "skinlist.qh"
#ifndef SKINLIST_H
#define SKINLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "slider.qh"
#ifndef SLIDER_H
#define SLIDER_H
#include "../item/slider.qc"
--- /dev/null
+#pragma once
+#include "slider_decibels.qh"
#ifndef SLIDER_DECIBELS_H
#define SLIDER_DECIBELS_H
#include "slider.qc"
--- /dev/null
+#pragma once
+#include "slider_particles.qh"
#ifndef SLIDER_PARTICLES_H
#define SLIDER_PARTICLES_H
#include "textslider.qc"
--- /dev/null
+#pragma once
+#include "slider_picmip.qh"
#ifndef SLIDER_PICMIP_H
#define SLIDER_PICMIP_H
#include "textslider.qc"
--- /dev/null
+#pragma once
+#include "slider_resolution.qh"
#ifndef SLIDER_RESOLUTION_H
#define SLIDER_RESOLUTION_H
#include "textslider.qc"
--- /dev/null
+#pragma once
+#include "slider_sbfadetime.qh"
#ifndef SLIDER_SBFADETIME_H
#define SLIDER_SBFADETIME_H
#include "textslider.qc"
--- /dev/null
+#pragma once
+#include "soundlist.qh"
#ifndef SOUNDLIST_H
#define SOUNDLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "statslist.qh"
#include <common/playerstats.qh>
#ifndef STATSLIST_H
--- /dev/null
+#pragma once
+#include "tab.qh"
#ifndef TAB_H
#define TAB_H
#include "../item/tab.qc"
--- /dev/null
+#pragma once
+#include "tabcontroller.qh"
#ifndef TABCONTROLLER_H
#define TABCONTROLLER_H
#include "../item/modalcontroller.qc"
--- /dev/null
+#pragma once
+#include "textlabel.qh"
#ifndef TEXTLABEL_H
#define TEXTLABEL_H
#include "../item/label.qc"
--- /dev/null
+#pragma once
+#include "textslider.qh"
#ifndef TEXTSLIDER_H
#define TEXTSLIDER_H
#include "../item/textslider.qc"
--- /dev/null
+#pragma once
+#include "weaponarenacheckbox.qh"
#ifndef WEAPONARENACHECKBOX_H
#define WEAPONARENACHECKBOX_H
#include "../item/checkbox.qc"
--- /dev/null
+#pragma once
+#include "weaponslist.qh"
#ifndef WEAPONSLIST_H
#define WEAPONSLIST_H
#include "listbox.qc"
--- /dev/null
+#pragma once
+#include "antilag.qh"
#if defined(CSQC)
#elif defined(MENUQC)
#elif defined(SVQC)
+#include "roles.qh"
#include "havocbot.qh"
+#include "cl_impulse.qh"
#include "round_handler.qh"
#include "bot/waypoints.qh"
+#include "all.qh"
#include <common/command/all.qc>
#include "sv_cmd.qc"
+#include "banning.qh"
#include <common/command/command.qh>
#include "banning.qh"
+#include "cmd.qh"
#include <common/command/command.qh>
#include "cmd.qh"
+#include "common.qh"
#include <common/command/command.qh>
#include "common.qh"
+#include "getreplies.qh"
#include <common/command/command.qh>
#include "getreplies.qh"
+#include "radarmap.qh"
#include <common/command/command.qh>
#include "radarmap.qh"
+#include "sv_cmd.qh"
#include "all.qh"
#include "banning.qh"
+#include "vote.qh"
#include <common/command/command.qh>
#include "vote.qh"
+#include "g_lights.qh"
void train_next();
--- /dev/null
+#pragma once
+#include "g_models.qh"
#include "g_subs.qh"
#include "../common/triggers/subs.qh"
--- /dev/null
+#pragma once
+#include "all.qh"
#if defined(CSQC)
#elif defined(MENUQC)
#elif defined(SVQC)
+#include "gamemode_assault.qh"
#ifndef GAMEMODE_ASSAULT_H
#define GAMEMODE_ASSAULT_H
--- /dev/null
+#pragma once
+#include "gamemode_ca.qh"
#ifndef GAMEMODE_CA_H
#define GAMEMODE_CA_H
--- /dev/null
+#pragma once
+#include "gamemode_ctf.qh"
#ifndef GAMEMODE_CTF_H
#define GAMEMODE_CTF_H
--- /dev/null
+#pragma once
+#include "gamemode_cts.qh"
#include <server/race.qh>
#ifndef GAMEMODE_CTS_H
--- /dev/null
+#pragma once
+#include "gamemode_deathmatch.qh"
#ifndef GAMEMODE_DEATHMATCH_H
#define GAMEMODE_DEATHMATCH_H
--- /dev/null
+#pragma once
+#include "gamemode_domination.qh"
#ifndef GAMEMODE_DOMINATION_H
#define GAMEMODE_DOMINATION_H
--- /dev/null
+#pragma once
+#include "gamemode_freezetag.qh"
#ifndef GAMEMODE_FREEZETAG_H
#define GAMEMODE_FREEZETAG_H
--- /dev/null
+#pragma once
+#include "gamemode_invasion.qh"
#ifndef GAMEMODE_INVASION_H
#define GAMEMODE_INVASION_H
--- /dev/null
+#pragma once
+#include "gamemode_keepaway.qh"
#ifndef GAMEMODE_KEEPAWAY_H
#define GAMEMODE_KEEPAWAY_H
--- /dev/null
+#pragma once
+#include "gamemode_keyhunt.qh"
#ifndef GAMEMODE_KEYHUNT_H
#define GAMEMODE_KEYHUNT_H
--- /dev/null
+#pragma once
+#include "gamemode_lms.qh"
#ifndef GAMEMODE_LMS_H
#define GAMEMODE_LMS_H
--- /dev/null
+#pragma once
+#include "gamemode_race.qh"
#ifndef GAMEMODE_RACE_H
#define GAMEMODE_RACE_H
--- /dev/null
+#pragma once
+#include "gamemode_tdm.qh"
#ifndef GAMEMODE_TDM_H
#define GAMEMODE_TDM_H
--- /dev/null
+#pragma once
+#include "costs.qh"
#include "pathlib.qh"
float pathlib_g_static(entity parent,vector to, float static_cost)
--- /dev/null
+#pragma once
+#include "debug.qh"
#include "pathlib.qh"
MODEL(SQUARE, "models/pathlib/square.md3");
--- /dev/null
+#pragma once
+#include "expandnode.qh"
#include "pathlib.qh"
#include "utility.qh"
--- /dev/null
+#pragma once
+#include "main.qh"
#include "pathlib.qh"
#include "utility.qh"
+#include "movenode.qh"
#include "pathlib.qh"
#include "utility.qh"
--- /dev/null
+#pragma once
+#include "path_waypoint.qh"
#include "../bot/waypoints.qh"
#include "pathlib.qh"
--- /dev/null
+#pragma once
+#include "playerdemo.qh"
#if defined(CSQC)
#elif defined(MENUQC)
#elif defined(SVQC)
+#include "steerlib.qh"
#if defined(CSQC)
#elif defined(MENUQC)
#elif defined(SVQC)
+#include "sv_main.qh"
#include "anticheat.qh"
#include "g_hook.qh"
--- /dev/null
+#pragma once
+#include "t_halflife.qh"
.float roomtype;
.float radius;
.float pitch;
--- /dev/null
+#pragma once
+#include "t_quake.qh"
#include "../common/weapons/all.qh"
--- /dev/null
+#pragma once
+#include "t_quake3.qh"
#include "../common/weapons/all.qh"
--- /dev/null
+#pragma once
+++ /dev/null
-#!/bin/bash
-set -eu
-cd "$(dirname "$0")"
-cd ..
-
-declare -a NOWARN=(
- -Wno-field-redeclared
- -Wno-unused-variable
- -Wno-implicit-function-pointer
-)
-declare QCC=../../../gmqcc/gmqcc
-
-declare -a QCC_FLAGS=(
- -std=gmqcc
- -Wall -Werror
- -fftepp -fftepp-predefs -Wcpp
- -futf8
- -freturn-assignments
- -frelaxed-switch
- -Ooverlap-locals
-)
-
-function check() {
- declare -l base="${1}"
- declare -la predefs=("-D${2}" "lib/_all.inc" "${base}/_all.qh")
- find "$base" -type f -name '*.qc' -print0 | sort -z | while read -r -d '' file; do
- echo "$file"
- ${QCC} "${QCC_FLAGS[@]}" "${NOWARN[@]}" "${predefs[@]}" "$file" >/dev/null
- done
-}
-
-check client CSQC
-check server SVQC
-check menu MENUQC
--- /dev/null
+#!/bin/bash
+set -eu
+cd "$(dirname "$0")"
+cd ..
+
+declare -a NOWARN=(
+ -Wno-field-redeclared
+ -Wno-unused-variable
+ -Wno-implicit-function-pointer
+)
+declare QCC=../../../gmqcc/gmqcc
+
+declare -a QCC_FLAGS=(
+ -std=gmqcc
+ -Wall -Werror
+ -fftepp -fftepp-predefs -Wcpp
+ -futf8
+ -freturn-assignments
+ -frelaxed-switch
+ -Ooverlap-locals
+)
+
+function check() {
+ declare -l base="${1}"
+ declare -la predefs=("-D${2}" "lib/_all.inc" "${base}/_all.qh")
+ find "$base" -type f -name '*.qc' -print0 | sort -z | while read -r -d '' file; do
+ echo "$file"
+ ${QCC} "${QCC_FLAGS[@]}" "${NOWARN[@]}" "${predefs[@]}" "$file" >/dev/null
+ done
+}
+
+check client CSQC
+check server SVQC
+check menu MENUQC
--- /dev/null
+#!/bin/bash
+set -eu
+cd "$(dirname "$0")"
+cd ..
+
+function startswith() {
+ declare -l file="${1}"
+ declare -l prelude="${2}"
+ declare -l line=$(head -n1 "$file")
+ if [ "$line" != "$prelude" ]; then
+ echo "$prelude" | cat - "$file" > "$file.tmp" && mv "$file.tmp" "$file"
+ fi
+}
+
+function check() {
+ declare -l base="${1}"
+ find "$base" -type f -name '*.qc' -print0 | sort -z | while read -r -d '' file; do
+ echo "$file"
+ declare -l file_h="${file%.qc}.qh"
+ if [ ! -f "$file_h" ]; then echo "#pragma once" > "$file_h"; fi
+
+ include=$(basename "$file")
+ include="${include%.qc}.qh"
+ include="#include \"${include}\""
+ startswith "$file" "$include"
+ done
+ find "$base" -type f -name '*.qh' -print0 | sort -z | while read -r -d '' file; do
+ echo "$file"
+ startswith "$file" "#pragma once"
+ done
+}
+
+check client
+check server
+check menu