use #pragma once to make achieve shorter compile times

This commit is contained in:
Jenny White 2018-04-28 10:44:41 +03:00
parent 38cda23831
commit 37caefd879
90 changed files with 124 additions and 393 deletions

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef CDUMPER_HPP_
#define CDUMPER_HPP_
#pragma once
#include <fstream>
#include <string>
@ -116,5 +115,3 @@ public:
private:
std::fstream m_file;
};
#endif /* CDUMPER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef CHATSTACK_HPP_
#define CHATSTACK_HPP_
#pragma once
#define CHATSTACK_INTERVAL 0.8f
@ -30,5 +29,3 @@ void Reset();
extern std::stack<msg_t> stack;
extern float last_say;
}
#endif /* CHATSTACK_HPP_ */

View File

@ -5,9 +5,6 @@
* Author: nullifiedcat
*/
#ifndef DUMP_HPP_
#define DUMP_HPP_
#pragma once
void PerformClassDump();
#endif /* DUMP_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef CONDITIONS_HPP_
#define CONDITIONS_HPP_
#pragma once
#include <entitycache.hpp>
#include "netvars.hpp"
@ -315,5 +314,3 @@ template <condition cond> inline void RemoveCondition(CachedEntity *ent)
}
CondBitSet<cond, false>(CE_VAR(ent, netvar.iCond, condition_data_s));
}
#endif /* CONDITIONS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef CRITS_HPP_
#define CRITS_HPP_
#pragma once
class CUserCmd;
class IClientEntity;
@ -42,5 +41,3 @@ bool random_crits_enabled();
extern int *g_PredictionRandomSeed;
extern std::unordered_map<int, int> command_number_mod;
#endif /* CRITS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef CVWRAPPER_HPP_
#define CVWRAPPER_HPP_
#pragma once
class ConVar;
@ -189,5 +188,3 @@ std::vector<CatVar *> &CatVarList();
void RegisterCatCommands();
void RegisterCatVars();
int GetRebasedCatVarCount();
#endif /* CVWRAPPER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef ENTITYCACHE_HPP_
#define ENTITYCACHE_HPP_
#pragma once
#include "entityhitboxcache.hpp"
#include "averager.hpp"
@ -136,5 +135,3 @@ void Update();
void Invalidate();
extern int max;
}
#endif /* ENTITYCACHE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef ENTITYHITBOXCACHE_HPP_
#define ENTITYHITBOXCACHE_HPP_
#pragma once
#include <mathlib/vector.h>
#include <mathlib/mathlib.h>
@ -70,5 +69,3 @@ inline EntityHitboxCache &Get(unsigned i)
return array[i];
}
}
#endif /* ENTITYHITBOXCACHE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef ENUMS_HPP_
#define ENUMS_HPP_
#pragma once
enum EntityType
{
@ -104,5 +103,3 @@ enum hitbox_t
knee_R = 16,
foot_R = 17
};
#endif /* ENUMS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef GLOBALS_H_
#define GLOBALS_H_
#pragma once
#include <time.h>
@ -54,5 +53,3 @@ class CUserCmd;
extern CUserCmd *g_pUserCmd;
extern GlobalSettings g_Settings;
#endif /* GLOBALS_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACK_H_
#define HACK_H_
#pragma once
class IHack;
class CUserCmd;
@ -38,5 +37,3 @@ void Shutdown();
void CC_Cat(const CCommand &args);
extern ConCommand *c_Cat;
}
#endif /* HACK_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_ACHIEVEMENT_HPP_
#define HACKS_ACHIEVEMENT_HPP_
#pragma once
namespace hacks
{
@ -20,5 +19,3 @@ void Unlock();
}
}
}
#endif /* HACKS_ACHIEVEMENT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HAIMBOT_H_
#define HAIMBOT_H_
#pragma once
#include "common.hpp"
@ -63,5 +62,3 @@ float EffectiveTargetingRange();
}
}
}
#endif /* HAIMBOT_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef ANTIAIM_H_
#define ANTIAIM_H_
#pragma once
class CatVar;
class CUserCmd;
@ -39,5 +38,3 @@ void ProcessUserCmd(CUserCmd *cmd);
}
}
}
#endif /* ANTIAIM_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_ANTIBACKSTAB_HPP_
#define HACKS_ANTIBACKSTAB_HPP_
#pragma once
namespace hacks
{
@ -20,5 +19,3 @@ void PaintTraverse();
}
}
}
#endif /* HACKS_ANTIBACKSTAB_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_ANTIDISGUISE_HPP_
#define HACKS_ANTIDISGUISE_HPP_
#pragma once
#include "common.hpp"
@ -23,5 +22,3 @@ void Draw();
}
}
}
#endif /* HACKS_ANTIDISGUISE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_AUTOBACKSTAB_HPP_
#define HACKS_AUTOBACKSTAB_HPP_
#pragma once
namespace hacks
{
@ -20,5 +19,3 @@ const Vector GetWorldSpaceCenter(CachedEntity *ent);
}
}
}
#endif /* HACKS_AUTOBACKSTAB_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat & Lighty
*/
#ifndef HACKS_AUTODETONATOR_HPP_
#define HACKS_AUTODETONATOR_HPP_
#pragma once
#include "common.hpp"
@ -20,5 +19,3 @@ void CreateMove();
}
}
}
#endif /* HACKS_AUTODETONATOR_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_AUTOHEAL_HPP_
#define HACKS_AUTOHEAL_HPP_
#pragma once
#include "common.hpp"
@ -41,5 +40,3 @@ bool CanHeal(int idx);
}
}
}
#endif /* HACKS_AUTOHEAL_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_AUTOREFLECT_HPP_
#define HACKS_AUTOREFLECT_HPP_
#pragma once
#include "common.hpp"
@ -29,5 +28,3 @@ bool IsEntStickyBomb(CachedEntity *ent);
}
}
}
#endif /* HACKS_AUTOREFLECT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_AUTOSTICKY_HPP_
#define HACKS_AUTOSTICKY_HPP_
#pragma once
#include "common.hpp"
@ -26,5 +25,3 @@ void CreateMove();
}
}
}
#endif /* HACKS_AUTOSTICKY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HBUNNYHOP_H_
#define HBUNNYHOP_H_
#pragma once
#include "common.hpp"
@ -23,5 +22,3 @@ void CreateMove();
}
}
}
#endif /* HBUNNYHOP_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HESP_H_
#define HESP_H_
#pragma once
#include "common.hpp"
@ -64,5 +63,3 @@ void ResetEntityStrings();
}
}
}
#endif /* HESP_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_KILLSAY_HPP_
#define HACKS_KILLSAY_HPP_
#pragma once
#include "common.hpp"
@ -35,5 +34,3 @@ extern const std::vector<std::string> builtin_nonecore_mlg;
}
}
}
#endif /* HACKS_KILLSAY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_LAGEXPLOIT_HPP_
#define HACKS_LAGEXPLOIT_HPP_
#pragma once
#include "common.hpp"
@ -27,5 +26,3 @@ bool ExploitActive();
}
}
}
#endif /* HACKS_LAGEXPLOIT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_MISC_HPP_
#define HACKS_MISC_HPP_
#pragma once
#include "common.hpp"
@ -86,5 +85,3 @@ void Schema_Reload();
void CC_Misc_Disconnect_VAC();
DECLARE_HACK_SINGLETON(Misc);*/
#endif /* HACKS_MISC_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_NOISEMAKER_HPP_
#define HACKS_NOISEMAKER_HPP_
#pragma once
#include "common.hpp"
@ -23,5 +22,3 @@ void CreateMove();
}
}
}
#endif /* HACKS_NOISEMAKER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_RADAR_HPP_
#define HACKS_RADAR_HPP_
#pragma once
#include "visual/atlas.hpp"
#include "common.hpp"
@ -30,5 +29,3 @@ void Draw();
}
}
}
#endif /* HACKS_RADAR_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_SKINCHANGER_HPP_
#define HACKS_SKINCHANGER_HPP_
#pragma once
#include "common.hpp"
@ -145,5 +144,3 @@ void DrawText();
}
}
}
#endif /* HACKS_SKINCHANGER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_SPAM_HPP_
#define HACKS_SPAM_HPP_
#pragma once
#include "common.hpp"
@ -36,5 +35,3 @@ void Reload();
}
}
}
#endif /* HACKS_SPAM_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_SPYALERT_HPP_
#define HACKS_SPYALERT_HPP_
#pragma once
#include "common.hpp"
@ -25,5 +24,3 @@ void Draw();
}
}
}
#endif /* HACKS_SPYALERT_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HTRIGGER_H_
#define HTRIGGER_H_
#pragma once
#include "common.hpp"
@ -31,5 +30,3 @@ bool CheckLineBox(Vector B1, Vector B2, Vector L1, Vector L2, Vector &Hit);
}
}
}
#endif /* HTRIGGER_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_UBERSPAM_HPP_
#define HACKS_UBERSPAM_HPP_
#pragma once
#include "common.hpp"
@ -26,5 +25,3 @@ extern const std::vector<std::string> builtin_nonecore;
}
}
}
#endif /* HACKS_UBERSPAM_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HACKS_HACKLIST_HPP_
#define HACKS_HACKLIST_HPP_
#pragma once
#if ENABLE_VISUALS == 1
@ -45,5 +44,3 @@
#include "Announcer.hpp"
#include "Killstreak.hpp"
#include "CatBot.hpp"
#endif /* HACKS_HACKLIST_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HELPERS_HPP_
#define HELPERS_HPP_
#pragma once
class CachedEntity;
class IClientEntity;
@ -168,5 +167,3 @@ template <typename... Args> std::string format(const Args &... args)
extern const std::string classes[10];
extern const char *powerups[POWERUP_COUNT];
#endif /* HELPERS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HOOKS_H_
#define HOOKS_H_
#pragma once
// Parts of copypasted code
// Credits: Casual_Hacker
@ -66,5 +65,3 @@ extern VMTHook materialsystem;
extern VMTHook enginevgui;
extern VMTHook vstd;
}
#endif /* HOOKS_H_ */

View File

@ -5,12 +5,9 @@
* Author: nullifiedcat
*/
#ifndef CREATEMOVE_H_
#define CREATEMOVE_H_
#pragma once
class CUserCmd;
extern bool *bSendPackets;
bool CreateMove_hook(void *, float, CUserCmd *);
#endif /* CREATEMOVE_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef PAINTTRAVERSE_H_
#define PAINTTRAVERSE_H_
#pragma once
class CatVar;
@ -14,5 +13,3 @@ extern CatVar no_zoom;
extern CatVar clean_screenshots;
extern CatVar disable_visuals;
void PaintTraverse_hook(void *, unsigned int, bool, bool);
#endif /* PAINTTRAVERSE_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HOOKEDMETHODS_H_
#define HOOKEDMETHODS_H_
#pragma once
#include "common.hpp"
@ -70,5 +69,3 @@ void DoSDLUnhooking();
#include "CreateMove.hpp"
#include "PaintTraverse.hpp"
#include "others.hpp"
#endif /* HOOKEDMETHODS_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef OTHERS_H_
#define OTHERS_H_
#pragma once
class INetMessage;
class CViewSetup;
@ -60,5 +59,3 @@ typedef IMaterial *(*FindMaterial_t)(void *, const char *, const char *, bool,
// extern unsigned int* swapwindow_ptr;
// extern unsigned int swapwindow_orig;
#endif /* OTHERS_H_ */

View File

@ -5,10 +5,7 @@
* Author: nullifiedcat
*/
#ifndef HOOVY_HPP_
#define HOOVY_HPP_
#pragma once
void UpdateHoovyList();
bool IsHoovy(CachedEntity *entity);
#endif /* HOOVY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef INTERFACES_HPP_
#define INTERFACES_HPP_
#pragma once
#include <sharedobj.hpp>
#include <string>
@ -88,5 +87,3 @@ extern IEngineVGui *g_IEngineVGui;
extern IUniformRandomStream *g_pUniformStream;
void CreateInterfaces();
#endif /* INTERFACES_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef ITEMTYPES_HPP_
#define ITEMTYPES_HPP_
#pragma once
#include <map>
#include <string>
@ -230,5 +229,3 @@ public:
};
extern ItemManager g_ItemManager;
#endif /* ITEMTYPES_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef LOCALPLAYER_HPP_
#define LOCALPLAYER_HPP_
#pragma once
#include <mathlib/vector.h>
@ -43,5 +42,3 @@ public:
#define LOCAL_W g_pLocalPlayer->weapon()
extern LocalPlayer *g_pLocalPlayer;
#endif /* LOCALPLAYER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef LOGGING_HPP_
#define LOGGING_HPP_
#pragma once
#include <stdio.h>
@ -26,5 +25,3 @@ void Info(const char *fmt, ...);
#ifdef __cplusplus
}
#endif
#endif /* LOGGING_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef CBASECONTAINER_H_
#define CBASECONTAINER_H_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/CBaseWidget.h"
class CBaseContainer : public CBaseWidget, public virtual IWidget
@ -53,5 +52,3 @@ public:
std::vector<IWidget *> m_children;
};
#endif
#endif /* CBASECONTAINER_H_ */

View File

@ -5,19 +5,14 @@
* Author: nullifiedcat
*/
#ifndef CBASEWIDGET_H_
#define CBASEWIDGET_H_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/IWidget.h"
// #include "../beforecheaders.h"
#include <memory>
#include <vector>
#include <cstring>
#include <algorithm>
// #include "../aftercheaders.h"
#include "logging.hpp"
#include <KeyValues.h>
class CBaseWidget : public virtual IWidget
@ -177,5 +172,3 @@ public:
KeyValues::AutoDelete m_KeyValues;
IWidget *m_pParent;
};
#endif
#endif /* CBASEWIDGET_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef CBASEWINDOW_H_
#define CBASEWINDOW_H_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/CBaseContainer.h"
class CBaseWindow : public CBaseContainer
@ -24,5 +23,3 @@ public:
virtual void Draw(int x, int y) override;
virtual void MoveChildren() override;
};
#endif
#endif /* CBASEWINDOW_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef CTEXTLABEL_H_
#define CTEXTLABEL_H_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/CBaseWidget.h"
#include "Color.h"
@ -26,5 +25,3 @@ public:
virtual void Draw(int x, int y);
};
#endif
#endif /* CTEXTLABEL_H_ */

View File

@ -5,10 +5,8 @@
* Author: nullifiedcat
*/
#ifndef GUI_H_
#define GUI_H_
#if TEXTMODE_VAC != 1
#undef RootWindow
#pragma once
class IWidget;
class CatVar;
@ -57,5 +55,3 @@ public:
};
extern CatGUI *g_pGUI;
#endif
#endif /* GUI_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef IWIDGET_H_
#define IWIDGET_H_
#if TEXTMODE_VAC != 1
#pragma once
#include <utility>
#include <cstring>
#include <functional>
@ -77,5 +76,3 @@ public:
virtual void SetParent(IWidget *) = 0;
virtual std::string GetName() = 0;
};
#endif
#endif /* IWIDGET_H_ */

View File

@ -5,11 +5,8 @@
* Author: nullifiedcat
*/
#ifndef GUICOMMON_H_
#define GUICOMMON_H_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/CBaseContainer.h"
#include "menu/CBaseWidget.h"
#include "menu/GUI.h"
#endif
#endif /* GUICOMMON_H_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef ITEM_HPP_
#define ITEM_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "../CBaseWidget.h"
namespace menu
@ -31,5 +30,3 @@ public:
};
}
}
#endif
#endif /* ITEM_HPP_ */

View File

@ -5,9 +5,7 @@
* Author: nullifiedcat
*/
#ifndef ITEMSUBLIST_HPP_
#define ITEMSUBLIST_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/ncc/Item.hpp"
#include "menu/ncc/List.hpp"
@ -40,5 +38,3 @@ public:
};
}
}
#endif
#endif /* ITEMSUBLIST_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef ITEMTITLE_HPP_
#define ITEMTITLE_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/ncc/Item.hpp"
namespace menu
@ -27,5 +26,3 @@ public:
};
}
}
#endif
#endif /* ITEMTITLE_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef ITEMVARIABLE_HPP_
#define ITEMVARIABLE_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/ncc/Item.hpp"
class CatVar;
@ -38,5 +37,3 @@ public:
};
}
}
#endif
#endif /* ITEMVARIABLE_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef LIST_HPP_
#define LIST_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "../CBaseContainer.h"
#include "common.hpp"
@ -66,5 +65,3 @@ public:
};
}
}
#endif
#endif /* LIST_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef MENU_HPP_
#define MENU_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "visual/drawing.hpp"
#include "visual/colors.hpp"
@ -52,5 +51,3 @@ void Init();
List &MainList();
}
}
#endif
#endif /* MENU_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef GUI_NCC_PLAYERLIST_HPP_
#define GUI_NCC_PLAYERLIST_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "../CBaseContainer.h"
#include "menu/ncc/Menu.hpp"
namespace menu
@ -32,5 +31,3 @@ public:
};
}
}
#endif
#endif /* GUI_NCC_PLAYERLIST_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef PLAYERLISTENTRY_HPP_
#define PLAYERLISTENTRY_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/ncc/Menu.hpp"
namespace menu
@ -78,5 +77,3 @@ public:
}
}
}
#endif
#endif /* PLAYERLISTENTRY_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef ROOT_HPP_
#define ROOT_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "../CBaseWindow.h"
namespace menu
@ -27,5 +26,3 @@ public:
};
}
}
#endif
#endif /* ROOT_HPP_ */

View File

@ -5,9 +5,8 @@
* Author: nullifiedcat
*/
#ifndef TOOLTIP_HPP_
#define TOOLTIP_HPP_
#if TEXTMODE_VAC != 1
#pragma once
#include "menu/CTextLabel.h"
#include "common.hpp"
@ -31,5 +30,3 @@ public:
};
}
}
#endif
#endif /* TOOLTIP_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef NETMESSAGE_HPP_
#define NETMESSAGE_HPP_
#pragma once
#include <bitbuf.h>
#include <utlvector.h>
@ -310,5 +309,3 @@ public:
private:
char m_szCommandBuffer[1024]; // buffer for received messages
};
#endif /* NETMESSAGE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef NETVARS_HPP_
#define NETVARS_HPP_
#pragma once
#include <logging.hpp>
@ -146,5 +145,3 @@ public:
};
extern NetVars netvar;
#endif /* NETVARS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef OFFSETS_HPP_
#define OFFSETS_HPP_
#pragma once
#include <stdint.h>
#include <exception>
@ -166,5 +165,3 @@ struct offsets
return PlatformOffset(2, undefined, undefined);
}
};
#endif /* OFFSETS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef PLAYERLIST_HPP_
#define PLAYERLIST_HPP_
#pragma once
#include "common.hpp"
@ -59,5 +58,3 @@ userdata &AccessData(CachedEntity *player);
bool IsDefault(unsigned steamid);
bool IsDefault(CachedEntity *player);
}
#endif /* PLAYERLIST_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef PLAYERRESOURCE_H_
#define PLAYERRESOURCE_H_
#pragma once
class CachedEntity;
@ -24,5 +23,3 @@ public:
};
extern TFPlayerResource *g_pPlayerResource;
#endif /* PLAYERRESOURCE_H_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef PREDICTION_HPP_
#define PREDICTION_HPP_
#pragma once
#include <enums.hpp>
@ -33,5 +32,3 @@ void Prediction_PaintTraverse();
float DistanceToGround(CachedEntity *ent);
float DistanceToGround(Vector origin);
#endif /* PREDICTION_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef PROFILER_H_
#define PROFILER_H_
#pragma once
#include <chrono>
#include <string>
@ -48,5 +47,3 @@ public:
#else
#define PROF_SECTION(id)
#endif
#endif /* PROFILER_H_ */

View File

@ -5,13 +5,11 @@
* Author: nullifiedcat
*/
#ifndef PROJLOGGING_HPP_
#define PROJLOGGING_HPP_
#pragma once
namespace projectile_logging
{
void Update();
}
#endif /* PROJLOGGING_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef SCONVARS_HPP_
#define SCONVARS_HPP_
#pragma once
#include "common.hpp"
@ -28,5 +27,3 @@ public:
ConVar *spoof;
};
}
#endif /* SCONVARS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef SDK_HPP_
#define SDK_HPP_
#pragma once
#define private public
#define protected public
@ -64,4 +63,5 @@
#include "sdk/HUD.h"
#include "sdk/CGameRules.h"
#endif /* SDK_HPP_ */
#undef private
#undef protected

View File

@ -6,8 +6,7 @@
//
//=====================================================================================//
#ifndef SCREENSPACEEFFECTS_H
#define SCREENSPACEEFFECTS_H
#pragma once
#ifdef _WIN32
#pragma once
@ -89,4 +88,3 @@ extern CScreenSpaceEffectRegistration **g_ppScreenSpaceRegistrationHead;
CScreenSpaceEffectRegistration pEffectName##_reg(#pEffectName, \
&pEffectName##_effect);
#endif

View File

@ -7,8 +7,7 @@
// $NoKeywords: $
//=============================================================================//
#if !defined(IGAMEMOVEMENT_H)
#define IGAMEMOVEMENT_H
#pragma once
#ifdef _WIN32
#pragma once
@ -131,5 +130,3 @@ public:
virtual Vector GetPlayerMaxs(bool ducked) const = 0;
virtual Vector GetPlayerViewOffset(bool ducked) const = 0;
};
#endif // IGAMEMOVEMENT_H

View File

@ -5,8 +5,8 @@
// $NoKeywords: $
//
//=============================================================================//
#if !defined(IINPUT_H)
#define IINPUT_H
#pragma once
#ifdef _WIN32
#pragma once
#endif
@ -121,5 +121,3 @@ public:
};
// extern ::IInput *input;
#endif // IINPUT_H

View File

@ -6,8 +6,7 @@
//
//===========================================================================//
#ifndef IMATERIALSYSTEMFIXED_H
#define IMATERIALSYSTEMFIXED_H
#pragma once
#ifdef _WIN32
#pragma once
@ -622,5 +621,3 @@ public:
int mips, ImageFormat fmt, int srcBufferSize, byte *srcBits,
int nFlags) = 0;
};
#endif // IMATERIALSYSTEMFIXED_H

View File

@ -5,8 +5,8 @@
// $NoKeywords: $
//
//=============================================================================//
#ifndef IN_BUTTONS_H
#define IN_BUTTONS_H
#pragma once
#ifdef _WIN32
#pragma once
#endif
@ -38,5 +38,3 @@
#define IN_GRENADE1 (1 << 23) // grenade 1
#define IN_GRENADE2 (1 << 24) // grenade 2
#define IN_ATTACK3 (1 << 25)
#endif // IN_BUTTONS_H

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef SHAREDOBJ_HPP_
#define SHAREDOBJ_HPP_
#pragma once
#include <string>
#include <vector>
@ -53,5 +52,3 @@ SharedObject &libsdl();
void LoadAllSharedObjects();
}
#endif /* SHAREDOBJ_HPP_ */

View File

@ -5,11 +5,8 @@
* Author: nullifiedcat
*/
#ifndef TARGETHELPER_HPP_
#define TARGETHELPER_HPP_
#pragma once
class CachedEntity;
int GetScoreForEntity(CachedEntity *entity);
#endif /* TARGETHELPER_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef TEXTFILE_HPP_
#define TEXTFILE_HPP_
#pragma once
#include <string>
#include <vector>
@ -23,5 +22,3 @@ public:
public:
std::vector<std::string> lines;
};
#endif /* TEXTFILE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef TRACE_HPP_
#define TRACE_HPP_
#pragma once
#include <engine/IEngineTrace.h>
@ -62,5 +61,3 @@ extern FilterDefault filter_default;
extern FilterNoPlayer filter_no_player;
extern FilterPenetration filter_penetration;
}
#endif /* TRACE_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef USERCMD_HPP_
#define USERCMD_HPP_
#pragma once
#include <stdint.h>
@ -31,5 +30,3 @@ public:
short mousedy;
bool hasbeenpredicted;
};
#endif /* USERCMD_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef VELOCITY_HPP_
#define VELOCITY_HPP_
#pragma once
#include "common.hpp"
@ -18,5 +17,3 @@ extern EstimateAbsVelocity_t EstimateAbsVelocity;
void Init();
}
#endif /* VELOCITY_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef VFUNC_HPP_
#define VFUNC_HPP_
#pragma once
template <typename F>
inline F vfunc(void *thisptr, uintptr_t idx, uintptr_t offset = 0)
@ -14,5 +13,3 @@ inline F vfunc(void *thisptr, uintptr_t idx, uintptr_t offset = 0)
void **vmt = *reinterpret_cast<void ***>(uintptr_t(thisptr) + offset);
return reinterpret_cast<F>((vmt)[idx]);
}
#endif /* VFUNC_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef EFFECTCHAMS_HPP_
#define EFFECTCHAMS_HPP_
#pragma once
#include "common.hpp"
#include "sdk/ScreenSpaceEffects.h"
@ -56,5 +55,3 @@ public:
extern EffectChams g_EffectChams;
extern CScreenSpaceEffectRegistration *g_pEffectChams;
}
#endif /* EFFECTCHAMS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef EFFECTGLOW_HPP_
#define EFFECTGLOW_HPP_
#pragma once
#include "common.hpp"
#include "sdk.hpp"
@ -59,5 +58,3 @@ public:
extern EffectGlow g_EffectGlow;
extern CScreenSpaceEffectRegistration *g_pEffectGlow;
}
#endif /* EFFECTGLOW_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef ATLAS_HPP_
#define ATLAS_HPP_
#pragma once
#include "common.hpp"
#include "visual/drawex.hpp"
@ -52,5 +51,3 @@ public:
texture_atlas &atlas();
}
#endif /* ATLAS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef COLORS_HPP_
#define COLORS_HPP_
#pragma once
class CachedEntity;
@ -147,5 +146,3 @@ rgba_t EntityF(CachedEntity *ent);
}
using rgba_t = colors::rgba_t;
#endif /* COLORS_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef DRAWING_HPP_
#define DRAWING_HPP_
#pragma once
#include "common.hpp"
@ -68,5 +67,3 @@ void UpdateWTS();
bool WorldToScreen(const Vector &origin, Vector &screen);
bool EntityCenterToScreen(CachedEntity *entity, Vector &out);
}
#endif /* DRAWING_HPP_ */

View File

@ -5,8 +5,7 @@
* Author: nullifiedcat
*/
#ifndef DRAWMGR_HPP_
#define DRAWMGR_HPP_
#pragma once
#include <mutex>
@ -17,5 +16,3 @@ void render_cheat_visuals();
void BeginCheatVisuals();
void DrawCheatVisuals();
void EndCheatVisuals();
#endif /* DRAWMGR_HPP_ */