Merge remote-tracking branch 'BenCat07/origin/Pathfinder' into Pathfinder
This commit is contained in:
commit
668a722f8f
2
include/PlayerTools.hpp
Executable file → Normal file
2
include/PlayerTools.hpp
Executable file → Normal file
@ -40,4 +40,4 @@ std::optional<colors::rgba_t> forceEspColor(CachedEntity *entity);
|
||||
#endif
|
||||
|
||||
void onKilledBy(CachedEntity *entity);
|
||||
}
|
||||
} // namespace player_tools
|
2
include/angles.hpp
Executable file → Normal file
2
include/angles.hpp
Executable file → Normal file
@ -95,4 +95,4 @@ inline angle_data_s &data(const CachedEntity *entity)
|
||||
{
|
||||
return data_idx(entity->m_IDX);
|
||||
}
|
||||
}
|
||||
} // namespace angles
|
||||
|
2
include/backpacktf.hpp
Executable file → Normal file
2
include/backpacktf.hpp
Executable file → Normal file
@ -32,4 +32,4 @@ struct backpack_data_s
|
||||
const backpack_data_s &get_data(unsigned id);
|
||||
void init();
|
||||
bool enabled();
|
||||
}
|
||||
} // namespace backpacktf
|
||||
|
2
include/chatstack.hpp
Executable file → Normal file
2
include/chatstack.hpp
Executable file → Normal file
@ -28,4 +28,4 @@ void Reset();
|
||||
|
||||
extern std::stack<msg_t> stack;
|
||||
extern float last_say;
|
||||
}
|
||||
} // namespace chat_stack
|
||||
|
2
include/classinfo/css.gen.hpp
Executable file → Normal file
2
include/classinfo/css.gen.hpp
Executable file → Normal file
@ -494,6 +494,6 @@ public:
|
||||
};
|
||||
|
||||
extern css css_list;
|
||||
}
|
||||
} // namespace client_classes
|
||||
|
||||
#endif /* css_AUTOGEN_HPP */
|
2
include/classinfo/css_constexpr.gen.hpp
Executable file → Normal file
2
include/classinfo/css_constexpr.gen.hpp
Executable file → Normal file
@ -492,6 +492,6 @@ public:
|
||||
static constexpr int CCSGameRulesProxy = 26;
|
||||
static constexpr int CBaseCSGrenadeProjectile = 7;
|
||||
};
|
||||
}
|
||||
} // namespace client_classes_constexpr
|
||||
|
||||
#endif /* css_CONSTEXPR_AUTOGEN_HPP */
|
2
include/classinfo/dab.gen.hpp
Executable file → Normal file
2
include/classinfo/dab.gen.hpp
Executable file → Normal file
@ -523,6 +523,6 @@ public:
|
||||
};
|
||||
|
||||
extern dab dab_list;
|
||||
}
|
||||
} // namespace client_classes
|
||||
|
||||
#endif /* dab_AUTOGEN_HPP */
|
2
include/classinfo/dab_constexpr.gen.hpp
Executable file → Normal file
2
include/classinfo/dab_constexpr.gen.hpp
Executable file → Normal file
@ -521,6 +521,6 @@ public:
|
||||
static constexpr int CBaseGrenadeProjectile = 12;
|
||||
static constexpr int CDAViewModel = 28;
|
||||
};
|
||||
}
|
||||
} // namespace client_classes_constexpr
|
||||
|
||||
#endif /* dab_CONSTEXPR_AUTOGEN_HPP */
|
2
include/classinfo/dummy.gen.hpp
Executable file → Normal file
2
include/classinfo/dummy.gen.hpp
Executable file → Normal file
@ -537,6 +537,6 @@ public:
|
||||
};
|
||||
|
||||
extern dummy dummy_list;
|
||||
}
|
||||
} // namespace client_classes
|
||||
|
||||
#endif /* DUMMY_AUTOGEN_HPP */
|
2
include/classinfo/dynamic.gen.hpp
Executable file → Normal file
2
include/classinfo/dynamic.gen.hpp
Executable file → Normal file
@ -539,6 +539,6 @@ public:
|
||||
};
|
||||
|
||||
extern dynamic dynamic_list;
|
||||
}
|
||||
} // namespace client_classes
|
||||
|
||||
#endif /* DYNAMIC_AUTOGEN_HPP */
|
2
include/classinfo/hl2dm.gen.hpp
Executable file → Normal file
2
include/classinfo/hl2dm.gen.hpp
Executable file → Normal file
@ -494,6 +494,6 @@ public:
|
||||
};
|
||||
|
||||
extern hl2dm hl2dm_list;
|
||||
}
|
||||
} // namespace client_classes
|
||||
|
||||
#endif /* hl2dm_AUTOGEN_HPP */
|
2
include/classinfo/hl2dm_constexpr.gen.hpp
Executable file → Normal file
2
include/classinfo/hl2dm_constexpr.gen.hpp
Executable file → Normal file
@ -492,6 +492,6 @@ public:
|
||||
static constexpr int CCSGameRulesProxy = 0;
|
||||
static constexpr int CBaseCSGrenadeProjectile = 0;
|
||||
};
|
||||
}
|
||||
} // namespace client_classes_constexpr
|
||||
|
||||
#endif /* hl2dm_CONSTEXPR_AUTOGEN_HPP */
|
2
include/classinfo/tf2.gen.hpp
Executable file → Normal file
2
include/classinfo/tf2.gen.hpp
Executable file → Normal file
@ -537,6 +537,6 @@ public:
|
||||
};
|
||||
|
||||
extern tf2 tf2_list;
|
||||
}
|
||||
} // namespace client_classes
|
||||
|
||||
#endif /* tf2_AUTOGEN_HPP */
|
2
include/classinfo/tf2_constexpr.gen.hpp
Executable file → Normal file
2
include/classinfo/tf2_constexpr.gen.hpp
Executable file → Normal file
@ -535,6 +535,6 @@ public:
|
||||
static constexpr int CTFPointManager = 249;
|
||||
static constexpr int CTFFlameManager = 205;
|
||||
};
|
||||
}
|
||||
} // namespace client_classes_constexpr
|
||||
|
||||
#endif /* tf2_CONSTEXPR_AUTOGEN_HPP */
|
2
include/classinfo/tf2c.gen.hpp
Executable file → Normal file
2
include/classinfo/tf2c.gen.hpp
Executable file → Normal file
@ -494,6 +494,6 @@ public:
|
||||
};
|
||||
|
||||
extern tf2c tf2c_list;
|
||||
}
|
||||
} // namespace client_classes
|
||||
|
||||
#endif /* tf2c_AUTOGEN_HPP */
|
2
include/classinfo/tf2c_constexpr.gen.hpp
Executable file → Normal file
2
include/classinfo/tf2c_constexpr.gen.hpp
Executable file → Normal file
@ -492,6 +492,6 @@ public:
|
||||
static constexpr int CCSGameRulesProxy = 0;
|
||||
static constexpr int CBaseCSGrenadeProjectile = 0;
|
||||
};
|
||||
}
|
||||
} // namespace client_classes_constexpr
|
||||
|
||||
#endif /* tf2c_CONSTEXPR_AUTOGEN_HPP */
|
2
include/core/interfaces.hpp
Executable file → Normal file
2
include/core/interfaces.hpp
Executable file → Normal file
@ -14,7 +14,7 @@ namespace vgui
|
||||
{
|
||||
class ISurface;
|
||||
class IPanel;
|
||||
}
|
||||
} // namespace vgui
|
||||
|
||||
class ISteamClient;
|
||||
class ISteamFriends;
|
||||
|
2
include/core/sharedobj.hpp
Executable file → Normal file
2
include/core/sharedobj.hpp
Executable file → Normal file
@ -52,4 +52,4 @@ SharedObject &libsdl();
|
||||
#endif
|
||||
|
||||
void LoadAllSharedObjects();
|
||||
}
|
||||
} // namespace sharedobj
|
||||
|
2
include/crits.hpp
Executable file → Normal file
2
include/crits.hpp
Executable file → Normal file
@ -31,7 +31,7 @@ namespace criticals
|
||||
void create_move();
|
||||
void draw();
|
||||
bool random_crits_enabled();
|
||||
}
|
||||
} // namespace criticals
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
2
include/entitycache.hpp
Executable file → Normal file
2
include/entitycache.hpp
Executable file → Normal file
@ -232,4 +232,4 @@ inline CachedEntity &Get(int idx)
|
||||
void Update();
|
||||
void Invalidate();
|
||||
extern int max;
|
||||
}
|
||||
} // namespace entity_cache
|
||||
|
2
include/entityhitboxcache.hpp
Executable file → Normal file
2
include/entityhitboxcache.hpp
Executable file → Normal file
@ -67,4 +67,4 @@ inline EntityHitboxCache &Get(unsigned i)
|
||||
"Requested out-of-range entity hitbox cache entry!");
|
||||
return array[i];
|
||||
}
|
||||
}
|
||||
} // namespace hitbox_cache
|
||||
|
2
include/hack.hpp
Executable file → Normal file
2
include/hack.hpp
Executable file → Normal file
@ -33,4 +33,4 @@ const std::string &GetType();
|
||||
void Initialize();
|
||||
void Think();
|
||||
void Shutdown();
|
||||
}
|
||||
} // namespace hack
|
||||
|
2
include/hacks/Achievement.hpp
Executable file → Normal file
2
include/hacks/Achievement.hpp
Executable file → Normal file
@ -12,4 +12,4 @@ namespace hacks::tf2::achievement
|
||||
|
||||
void Lock();
|
||||
void Unlock();
|
||||
}
|
||||
} // namespace hacks::tf2::achievement
|
||||
|
2
include/hacks/Aimbot.hpp
Executable file → Normal file
2
include/hacks/Aimbot.hpp
Executable file → Normal file
@ -57,4 +57,4 @@ int ClosestHitbox(CachedEntity *target);
|
||||
void DoSlowAim(Vector &inputAngle);
|
||||
bool UpdateAimkey();
|
||||
float EffectiveTargetingRange();
|
||||
}
|
||||
} // namespace hacks::shared::aimbot
|
||||
|
2
include/hacks/Announcer.hpp
Executable file → Normal file
2
include/hacks/Announcer.hpp
Executable file → Normal file
@ -15,4 +15,4 @@ namespace hacks::shared::announcer
|
||||
void playsound(const std::string &);
|
||||
void init();
|
||||
void shutdown();
|
||||
}
|
||||
} // namespace hacks::shared::announcer
|
||||
|
2
include/hacks/AntiAim.hpp
Executable file → Normal file
2
include/hacks/AntiAim.hpp
Executable file → Normal file
@ -16,4 +16,4 @@ void SetSafeSpace(int safespace);
|
||||
bool ShouldAA(CUserCmd *cmd);
|
||||
void ProcessUserCmd(CUserCmd *cmd);
|
||||
bool isEnabled();
|
||||
}
|
||||
} // namespace hacks::shared::antiaim
|
||||
|
2
include/hacks/AntiAntiAim.hpp
Executable file → Normal file
2
include/hacks/AntiAntiAim.hpp
Executable file → Normal file
@ -16,4 +16,4 @@ namespace hacks::shared::anti_anti_aim
|
||||
|
||||
void createMove();
|
||||
void resolveEnt(int IDX, IClientEntity *entity = nullptr);
|
||||
}
|
||||
} // namespace hacks::shared::anti_anti_aim
|
||||
|
2
include/hacks/AntiBackstab.hpp
Executable file → Normal file
2
include/hacks/AntiBackstab.hpp
Executable file → Normal file
@ -15,4 +15,4 @@ extern bool noaa;
|
||||
void CreateMove();
|
||||
|
||||
void PaintTraverse();
|
||||
}
|
||||
} // namespace hacks::tf2::antibackstab
|
||||
|
2
include/hacks/AntiCheat.hpp
Executable file → Normal file
2
include/hacks/AntiCheat.hpp
Executable file → Normal file
@ -21,4 +21,4 @@ void CreateMove();
|
||||
void SetRage(player_info_t info);
|
||||
void ResetPlayer(int index);
|
||||
void ResetEverything();
|
||||
}
|
||||
} // namespace hacks::shared::anticheat
|
||||
|
2
include/hacks/AutoBackstab.hpp
Executable file → Normal file
2
include/hacks/AutoBackstab.hpp
Executable file → Normal file
@ -12,4 +12,4 @@ namespace hacks::tf2::autobackstab
|
||||
|
||||
void CreateMove();
|
||||
const Vector GetWorldSpaceCenter(CachedEntity *ent);
|
||||
}
|
||||
} // namespace hacks::tf2::autobackstab
|
||||
|
2
include/hacks/AutoHeal.hpp
Executable file → Normal file
2
include/hacks/AutoHeal.hpp
Executable file → Normal file
@ -30,4 +30,4 @@ void UpdateData();
|
||||
int BestTarget();
|
||||
int HealingPriority(int idx);
|
||||
bool CanHeal(int idx);
|
||||
}
|
||||
} // namespace hacks::tf::autoheal
|
||||
|
2
include/hacks/AutoJoin.hpp
Executable file → Normal file
2
include/hacks/AutoJoin.hpp
Executable file → Normal file
@ -14,4 +14,4 @@ void resetQueueTimer();
|
||||
void update();
|
||||
void updateSearch();
|
||||
void onShutdown();
|
||||
}
|
||||
} // namespace hacks::shared::autojoin
|
||||
|
2
include/hacks/AutoReflect.hpp
Executable file → Normal file
2
include/hacks/AutoReflect.hpp
Executable file → Normal file
@ -15,4 +15,4 @@ void Draw();
|
||||
void CreateMove();
|
||||
bool ShouldReflect(CachedEntity *ent);
|
||||
bool IsEntStickyBomb(CachedEntity *ent);
|
||||
}
|
||||
} // namespace hacks::tf::autoreflect
|
||||
|
2
include/hacks/AutoSticky.hpp
Executable file → Normal file
2
include/hacks/AutoSticky.hpp
Executable file → Normal file
@ -13,4 +13,4 @@ namespace hacks::tf::autosticky
|
||||
{
|
||||
bool ShouldDetonate(CachedEntity *bomb);
|
||||
void CreateMove();
|
||||
}
|
||||
} // namespace hacks::tf::autosticky
|
||||
|
2
include/hacks/Backtrack.hpp
Executable file → Normal file
2
include/hacks/Backtrack.hpp
Executable file → Normal file
@ -64,4 +64,4 @@ extern bool isBacktrackEnabled;
|
||||
float getLatency();
|
||||
int getTicks();
|
||||
bool ValidTick(BacktrackData &i, CachedEntity *ent);
|
||||
}
|
||||
} // namespace hacks::shared::backtrack
|
||||
|
@ -30,6 +30,7 @@ target_sources(cathook PRIVATE
|
||||
"${CMAKE_CURRENT_LIST_DIR}/Killstreak.hpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/LightESP.hpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/Misc.hpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/NavBot.hpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/Noisemaker.hpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/Spam.hpp"
|
||||
"${CMAKE_CURRENT_LIST_DIR}/Trigger.hpp"
|
||||
|
2
include/hacks/CatBot.hpp
Executable file → Normal file
2
include/hacks/CatBot.hpp
Executable file → Normal file
@ -21,4 +21,4 @@ void level_init();
|
||||
#if ENABLE_IPC
|
||||
void update_ipc_data(ipc::user_data_s &data);
|
||||
#endif
|
||||
}
|
||||
} // namespace hacks::shared::catbot
|
||||
|
2
include/hacks/ESP.hpp
Executable file → Normal file
2
include/hacks/ESP.hpp
Executable file → Normal file
@ -58,4 +58,4 @@ void AddEntityString(CachedEntity *entity, const std::string &string,
|
||||
const rgba_t &color = colors::empty);
|
||||
void SetEntityColor(CachedEntity *entity, const rgba_t &color);
|
||||
void ResetEntityStrings();
|
||||
}
|
||||
} // namespace hacks::shared::esp
|
||||
|
2
include/hacks/FollowBot.hpp
Executable file → Normal file
2
include/hacks/FollowBot.hpp
Executable file → Normal file
@ -16,4 +16,4 @@ int ClassPriority(CachedEntity *ent);
|
||||
|
||||
bool isEnabled();
|
||||
int getTarget();
|
||||
}
|
||||
} // namespace hacks::shared::followbot
|
||||
|
2
include/hacks/KillSay.hpp
Executable file → Normal file
2
include/hacks/KillSay.hpp
Executable file → Normal file
@ -19,4 +19,4 @@ void reload();
|
||||
extern const std::vector<std::string> builtin_default;
|
||||
extern const std::vector<std::string> builtin_nonecore_offensive;
|
||||
extern const std::vector<std::string> builtin_nonecore_mlg;
|
||||
}
|
||||
} // namespace hacks::shared::killsay
|
||||
|
2
include/hacks/Killstreak.hpp
Executable file → Normal file
2
include/hacks/Killstreak.hpp
Executable file → Normal file
@ -17,4 +17,4 @@ void init();
|
||||
void shutdown();
|
||||
void fire_event(IGameEvent *event);
|
||||
void apply_killstreaks();
|
||||
}
|
||||
} // namespace hacks::tf2::killstreak
|
||||
|
2
include/hacks/LightESP.hpp
Executable file → Normal file
2
include/hacks/LightESP.hpp
Executable file → Normal file
@ -5,4 +5,4 @@ namespace hacks::shared::lightesp
|
||||
void run();
|
||||
void draw();
|
||||
rgba_t LightESPColor(CachedEntity *ent);
|
||||
}
|
||||
} // namespace hacks::shared::lightesp
|
||||
|
2
include/hacks/Misc.hpp
Executable file → Normal file
2
include/hacks/Misc.hpp
Executable file → Normal file
@ -21,4 +21,4 @@ void DrawText();
|
||||
extern int last_number;
|
||||
|
||||
extern float last_bucket;
|
||||
}
|
||||
} // namespace hacks::shared::misc
|
||||
|
12
include/hacks/NavBot.hpp
Normal file
12
include/hacks/NavBot.hpp
Normal file
@ -0,0 +1,12 @@
|
||||
//
|
||||
// Created by bencat07 on 17.08.18.
|
||||
//
|
||||
#pragma once
|
||||
|
||||
#include "common.hpp"
|
||||
#include "config.h"
|
||||
namespace hacks::tf2::NavBot
|
||||
{
|
||||
void Init();
|
||||
void CreateMove();
|
||||
}
|
2
include/hacks/Radar.hpp
Executable file → Normal file
2
include/hacks/Radar.hpp
Executable file → Normal file
@ -14,5 +14,5 @@ namespace hacks::tf::radar
|
||||
{
|
||||
std::pair<int, int> WorldToRadar(int x, int y);
|
||||
void Draw();
|
||||
}
|
||||
} // namespace hacks::tf::radar
|
||||
#endif
|
||||
|
2
include/hacks/SeedPrediction.hpp
Executable file → Normal file
2
include/hacks/SeedPrediction.hpp
Executable file → Normal file
@ -51,4 +51,4 @@ extern buf2 rebased;
|
||||
extern buf3 intervals;
|
||||
void selectBase();
|
||||
double predictOffset(const seedstruct &entry, int targetTick, double clockRes);
|
||||
}
|
||||
} // namespace hacks::tf2::seedprediction
|
||||
|
2
include/hacks/SkinChanger.hpp
Executable file → Normal file
2
include/hacks/SkinChanger.hpp
Executable file → Normal file
@ -137,4 +137,4 @@ void Load(std::string filename, bool merge = false);
|
||||
void InvalidateCookie();
|
||||
void FrameStageNotify(int stage);
|
||||
void DrawText();
|
||||
}
|
||||
} // namespace hacks::tf2::skinchanger
|
||||
|
2
include/hacks/Spam.hpp
Executable file → Normal file
2
include/hacks/Spam.hpp
Executable file → Normal file
@ -25,4 +25,4 @@ bool isActive();
|
||||
void init();
|
||||
void createMove();
|
||||
void reload();
|
||||
}
|
||||
} // namespace hacks::shared::spam
|
||||
|
2
include/hacks/Trigger.hpp
Executable file → Normal file
2
include/hacks/Trigger.hpp
Executable file → Normal file
@ -22,4 +22,4 @@ bool UpdateAimkey();
|
||||
float EffectiveTargetingRange();
|
||||
void Draw();
|
||||
bool CheckLineBox(Vector B1, Vector B2, Vector L1, Vector L2, Vector &Hit);
|
||||
}
|
||||
} // namespace hacks::shared::triggerbot
|
||||
|
2
include/hacks/UberSpam.hpp
Executable file → Normal file
2
include/hacks/UberSpam.hpp
Executable file → Normal file
@ -18,4 +18,4 @@ void CreateMove();
|
||||
|
||||
extern const std::vector<std::string> builtin_cathook;
|
||||
extern const std::vector<std::string> builtin_nonecore;
|
||||
}
|
||||
} // namespace hacks::tf::uberspam
|
||||
|
2
include/hacks/Walkbot.hpp
Executable file → Normal file
2
include/hacks/Walkbot.hpp
Executable file → Normal file
@ -18,4 +18,4 @@ void Draw();
|
||||
#endif
|
||||
void Move();
|
||||
void OnLevelInit();
|
||||
}
|
||||
} // namespace hacks::shared::walkbot
|
||||
|
2
include/hacks/ac/aimbot.hpp
Executable file → Normal file
2
include/hacks/ac/aimbot.hpp
Executable file → Normal file
@ -29,4 +29,4 @@ void ResetPlayer(int idx);
|
||||
void Init();
|
||||
void Update(CachedEntity *player);
|
||||
void Event(KeyValues *event);
|
||||
}
|
||||
} // namespace ac::aimbot
|
||||
|
2
include/hacks/ac/antiaim.hpp
Executable file → Normal file
2
include/hacks/ac/antiaim.hpp
Executable file → Normal file
@ -20,4 +20,4 @@ void ResetPlayer(int idx);
|
||||
void Init();
|
||||
void Update(CachedEntity *player);
|
||||
void Event(KeyValues *event);
|
||||
}
|
||||
} // namespace ac::antiaim
|
||||
|
2
include/hacks/ac/bhop.hpp
Executable file → Normal file
2
include/hacks/ac/bhop.hpp
Executable file → Normal file
@ -27,4 +27,4 @@ void ResetPlayer(int idx);
|
||||
void Init();
|
||||
void Update(CachedEntity *player);
|
||||
void Event(KeyValues *event);
|
||||
}
|
||||
} // namespace ac::bhop
|
||||
|
@ -51,6 +51,7 @@
|
||||
#endif
|
||||
#include "Spam.hpp"
|
||||
#if not LAGBOT_MODE
|
||||
#include "NavBot.hpp"
|
||||
#include "Noisemaker.hpp"
|
||||
#include "FollowBot.hpp"
|
||||
#include "Announcer.hpp"
|
||||
|
2
include/hitrate.hpp
Executable file → Normal file
2
include/hitrate.hpp
Executable file → Normal file
@ -15,4 +15,4 @@ extern int count_hits;
|
||||
extern int count_hits_head;
|
||||
|
||||
void Update();
|
||||
}
|
||||
} // namespace hitrate
|
||||
|
2
include/hooks.hpp
Executable file → Normal file
2
include/hooks.hpp
Executable file → Normal file
@ -73,4 +73,4 @@ extern VMTHook materialsystem;
|
||||
extern VMTHook enginevgui;
|
||||
extern VMTHook vstd;
|
||||
extern VMTHook eventmanager2;
|
||||
}
|
||||
} // namespace hooks
|
||||
|
2
include/hooks/HookedMethods.hpp
Executable file → Normal file
2
include/hooks/HookedMethods.hpp
Executable file → Normal file
@ -88,7 +88,7 @@ DECLARE_HOOKED_METHOD(SDL_PollEvent, int, SDL_Event *);
|
||||
// IUniformRandomStream
|
||||
DECLARE_HOOKED_METHOD(RandomInt, int, IUniformRandomStream *, int, int);
|
||||
#endif
|
||||
}
|
||||
} // namespace hooked_methods
|
||||
|
||||
// TODO
|
||||
// wontfix.club
|
||||
|
2
include/https_request.hpp
Executable file → Normal file
2
include/https_request.hpp
Executable file → Normal file
@ -37,4 +37,4 @@ public:
|
||||
};
|
||||
|
||||
void initialize();
|
||||
}
|
||||
} // namespace https
|
||||
|
4
include/ipc.hpp
Executable file → Normal file
4
include/ipc.hpp
Executable file → Normal file
@ -29,7 +29,7 @@ constexpr unsigned execute_client_cmd_long = 3;
|
||||
constexpr unsigned move_to_vector = 4;
|
||||
constexpr unsigned stop_moving = 5;
|
||||
constexpr unsigned start_moving = 6;
|
||||
}
|
||||
} // namespace commands
|
||||
|
||||
constexpr unsigned cathook_magic_number = 0x0DEADCA7;
|
||||
|
||||
@ -103,6 +103,6 @@ void UpdateTemporaryData();
|
||||
void UpdateServerAddress(bool shutdown = false);
|
||||
void StoreClientData();
|
||||
void UpdatePlayerlist();
|
||||
}
|
||||
} // namespace ipc
|
||||
|
||||
#endif
|
||||
|
33
include/json.hpp
Executable file → Normal file
33
include/json.hpp
Executable file → Normal file
@ -208,8 +208,9 @@ using uncvref_t =
|
||||
|
||||
// taken from http://stackoverflow.com/a/26936864/266378
|
||||
template <typename T>
|
||||
using is_unscoped_enum = std::integral_constant<
|
||||
bool, std::is_convertible<T, int>::value and std::is_enum<T>::value>;
|
||||
using is_unscoped_enum =
|
||||
std::integral_constant<bool, std::is_convertible<T, int>::value and
|
||||
std::is_enum<T>::value>;
|
||||
|
||||
/*
|
||||
Implementation of two C++17 constructs: conjunction, negation. This is needed
|
||||
@ -498,9 +499,8 @@ template <typename BasicJsonType, typename T> struct has_from_json
|
||||
{
|
||||
private:
|
||||
// also check the return type of from_json
|
||||
template <typename U,
|
||||
typename = enable_if_t<
|
||||
std::is_same<void, decltype(uncvref_t<U>::from_json(
|
||||
template <typename U, typename = enable_if_t<std::is_same<
|
||||
void, decltype(uncvref_t<U>::from_json(
|
||||
std::declval<BasicJsonType>(),
|
||||
std::declval<T &>()))>::value>>
|
||||
static int detect(U &&);
|
||||
@ -517,9 +517,8 @@ public:
|
||||
template <typename BasicJsonType, typename T> struct has_non_default_from_json
|
||||
{
|
||||
private:
|
||||
template <typename U,
|
||||
typename = enable_if_t<
|
||||
std::is_same<T, decltype(uncvref_t<U>::from_json(
|
||||
template <typename U, typename = enable_if_t<std::is_same<
|
||||
T, decltype(uncvref_t<U>::from_json(
|
||||
std::declval<BasicJsonType>()))>::value>>
|
||||
static int detect(U &&);
|
||||
static void detect(...);
|
||||
@ -969,7 +968,7 @@ namespace
|
||||
constexpr const auto &to_json = detail::static_const<detail::to_json_fn>::value;
|
||||
constexpr const auto &from_json =
|
||||
detail::static_const<detail::from_json_fn>::value;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
/*!
|
||||
@brief default JSONSerializer template argument
|
||||
@ -3613,15 +3612,15 @@ public:
|
||||
|
||||
@since version 1.0.0
|
||||
*/
|
||||
template <typename ValueType,
|
||||
template <
|
||||
typename ValueType,
|
||||
typename std::enable_if<
|
||||
not std::is_pointer<ValueType>::value and
|
||||
not std::is_same<ValueType,
|
||||
typename string_t::value_type>::value
|
||||
#ifndef _MSC_VER // fix for issue #167 operator<< ambiguity under VS2015
|
||||
and
|
||||
not std::is_same<
|
||||
ValueType, std::initializer_list<
|
||||
and not std::is_same<ValueType,
|
||||
std::initializer_list<
|
||||
typename string_t::value_type>>::value
|
||||
#endif
|
||||
,
|
||||
@ -6632,9 +6631,8 @@ public:
|
||||
assert(std::accumulate(
|
||||
first, last, std::pair<bool, int>(true, 0),
|
||||
[&first](std::pair<bool, int> res, decltype(*first) val) {
|
||||
res.first &=
|
||||
(val ==
|
||||
*(std::next(std::addressof(*first), res.second++)));
|
||||
res.first &= (val == *(std::next(std::addressof(*first),
|
||||
res.second++)));
|
||||
return res;
|
||||
})
|
||||
.first);
|
||||
@ -11465,8 +11463,7 @@ private:
|
||||
@param[in,out] val shall contain parsed value, or undefined value
|
||||
if could not parse
|
||||
*/
|
||||
template <typename T,
|
||||
typename = typename std::enable_if<
|
||||
template <typename T, typename = typename std::enable_if<
|
||||
std::is_arithmetic<T>::value>::type>
|
||||
bool to(T &val) const
|
||||
{
|
||||
|
3
include/navparser.hpp
Executable file → Normal file
3
include/navparser.hpp
Executable file → Normal file
@ -11,6 +11,7 @@ extern bool ReadyForCommands;
|
||||
extern std::vector<CNavArea> areas;
|
||||
std::vector<Vector> findPath(Vector loc, Vector dest);
|
||||
bool NavTo(Vector dest, bool navToLocalCenter = true);
|
||||
int findClosestNavSquare(Vector vec);
|
||||
bool Prepare();
|
||||
void CreateMove();
|
||||
}
|
||||
} // namespace nav
|
||||
|
2
include/online/Online.hpp
Executable file → Normal file
2
include/online/Online.hpp
Executable file → Normal file
@ -34,4 +34,4 @@ struct user_data
|
||||
void update();
|
||||
|
||||
user_data *getUserData(unsigned steamId);
|
||||
}
|
||||
} // namespace online
|
||||
|
2
include/playerlist.hpp
Executable file → Normal file
2
include/playerlist.hpp
Executable file → Normal file
@ -57,4 +57,4 @@ userdata &AccessData(unsigned steamid);
|
||||
userdata &AccessData(CachedEntity *player);
|
||||
bool IsDefault(unsigned steamid);
|
||||
bool IsDefault(CachedEntity *player);
|
||||
}
|
||||
} // namespace playerlist
|
||||
|
0
include/prediction.hpp
Executable file → Normal file
0
include/prediction.hpp
Executable file → Normal file
2
include/reclasses/CTFGCClientSystem.hpp
Executable file → Normal file
2
include/reclasses/CTFGCClientSystem.hpp
Executable file → Normal file
@ -25,4 +25,4 @@ public:
|
||||
CTFParty *GetParty();
|
||||
int JoinMMMatch();
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/CTFInventoryManager.hpp
Executable file → Normal file
2
include/reclasses/CTFInventoryManager.hpp
Executable file → Normal file
@ -32,4 +32,4 @@ public:
|
||||
public:
|
||||
CEconItem *GetFirstItemOfItemDef(int id);
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/CTFParty.hpp
Executable file → Normal file
2
include/reclasses/CTFParty.hpp
Executable file → Normal file
@ -23,4 +23,4 @@ public:
|
||||
return *((int *) party + 19);
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/CTFPartyClient.hpp
Executable file → Normal file
2
include/reclasses/CTFPartyClient.hpp
Executable file → Normal file
@ -26,4 +26,4 @@ public:
|
||||
int BRequestJoinPlayer(CSteamID steamid);
|
||||
static bool BInQueue(CTFPartyClient *this_);
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/CTFPlayerShared.hpp
Executable file → Normal file
2
include/reclasses/CTFPlayerShared.hpp
Executable file → Normal file
@ -20,4 +20,4 @@ public:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/C_BaseCombatWeapon.hpp
Executable file → Normal file
2
include/reclasses/C_BaseCombatWeapon.hpp
Executable file → Normal file
@ -37,4 +37,4 @@ public:
|
||||
0)(self);
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/C_BaseEntity.hpp
Executable file → Normal file
2
include/reclasses/C_BaseEntity.hpp
Executable file → Normal file
@ -39,4 +39,4 @@ public:
|
||||
return SetAbsOrigin_fn(self, origin);
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/C_BasePlayer.hpp
Executable file → Normal file
2
include/reclasses/C_BasePlayer.hpp
Executable file → Normal file
@ -13,4 +13,4 @@ public:
|
||||
return *((CTFPlayerShared *) (unsigned(self) + 6092));
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/C_MannVsMachineStats.hpp
Executable file → Normal file
2
include/reclasses/C_MannVsMachineStats.hpp
Executable file → Normal file
@ -20,4 +20,4 @@ public:
|
||||
public:
|
||||
int *AddLocalPlayerUpgrade(int id, int &a3);
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/C_TFWeaponBase.hpp
Executable file → Normal file
2
include/reclasses/C_TFWeaponBase.hpp
Executable file → Normal file
@ -186,4 +186,4 @@ public:
|
||||
return *(float *) (unsigned(self) + 2616u);
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/C_TFWeaponBaseGun.hpp
Executable file → Normal file
2
include/reclasses/C_TFWeaponBaseGun.hpp
Executable file → Normal file
@ -37,4 +37,4 @@ public:
|
||||
0)(self);
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/C_TFWeaponBaseMelee.hpp
Executable file → Normal file
2
include/reclasses/C_TFWeaponBaseMelee.hpp
Executable file → Normal file
@ -31,4 +31,4 @@ public:
|
||||
return (128.0f * 0.67) - 0.5f;
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/reclasses/ITFGroupMatchCriteria.hpp
Executable file → Normal file
2
include/reclasses/ITFGroupMatchCriteria.hpp
Executable file → Normal file
@ -31,4 +31,4 @@ public:
|
||||
public:
|
||||
static int SetMatchGroup(ITFGroupMatchCriteria *this_, int group);
|
||||
};
|
||||
}
|
||||
} // namespace re
|
||||
|
2
include/sconvars.hpp
Executable file → Normal file
2
include/sconvars.hpp
Executable file → Normal file
@ -26,4 +26,4 @@ public:
|
||||
ConVar *original;
|
||||
ConVar *spoof;
|
||||
};
|
||||
}
|
||||
} // namespace sconvar
|
||||
|
0
include/sdk/igamemovement.h
Executable file → Normal file
0
include/sdk/igamemovement.h
Executable file → Normal file
0
include/sdk/iinput.h
Executable file → Normal file
0
include/sdk/iinput.h
Executable file → Normal file
0
include/sdk/imaterialsystemfixed.h
Executable file → Normal file
0
include/sdk/imaterialsystemfixed.h
Executable file → Normal file
3
include/sdk/netmessage.hpp
Executable file → Normal file
3
include/sdk/netmessage.hpp
Executable file → Normal file
@ -181,7 +181,8 @@ protected:
|
||||
|
||||
#define NETMSG_TYPE_BITS 5
|
||||
typedef int QueryCvarCookie_t;
|
||||
typedef enum {
|
||||
typedef enum
|
||||
{
|
||||
eQueryCvarValueStatus_ValueIntact = 0, // It got the value fine.
|
||||
eQueryCvarValueStatus_CvarNotFound = 1,
|
||||
eQueryCvarValueStatus_NotACvar =
|
||||
|
2
include/settings/Bool.hpp
Executable file → Normal file
2
include/settings/Bool.hpp
Executable file → Normal file
@ -78,4 +78,4 @@ protected:
|
||||
bool value{ false };
|
||||
std::string string{ "false" };
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/Float.hpp
Executable file → Normal file
2
include/settings/Float.hpp
Executable file → Normal file
@ -51,4 +51,4 @@ protected:
|
||||
string = str;
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/Int.hpp
Executable file → Normal file
2
include/settings/Int.hpp
Executable file → Normal file
@ -43,4 +43,4 @@ public:
|
||||
return value != 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/Key.hpp
Executable file → Normal file
2
include/settings/Key.hpp
Executable file → Normal file
@ -139,4 +139,4 @@ protected:
|
||||
std::string string{};
|
||||
Key value{};
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/Manager.hpp
Executable file → Normal file
2
include/settings/Manager.hpp
Executable file → Normal file
@ -46,4 +46,4 @@ public:
|
||||
|
||||
std::unordered_map<std::string, VariableDescriptor> registered{};
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/Registered.hpp
Executable file → Normal file
2
include/settings/Registered.hpp
Executable file → Normal file
@ -39,4 +39,4 @@ using Button = RegisteredVariableProxy<settings::Key>;
|
||||
#if ENABLE_VISUALS
|
||||
using Rgba = RegisteredVariableProxy<glez::rgba>;
|
||||
#endif
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/Rgba.hpp
Executable file → Normal file
2
include/settings/Rgba.hpp
Executable file → Normal file
@ -87,4 +87,4 @@ protected:
|
||||
glez::rgba value{};
|
||||
std::string string{ "00000000" };
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/Settings.hpp
Executable file → Normal file
2
include/settings/Settings.hpp
Executable file → Normal file
@ -131,7 +131,7 @@ protected:
|
||||
string = std::to_string(value);
|
||||
}
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
||||
|
||||
#include "Bool.hpp"
|
||||
#include "Float.hpp"
|
||||
|
2
include/settings/SettingsIO.hpp
Executable file → Normal file
2
include/settings/SettingsIO.hpp
Executable file → Normal file
@ -52,4 +52,4 @@ protected:
|
||||
std::ofstream stream{};
|
||||
Manager &manager;
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/settings/String.hpp
Executable file → Normal file
2
include/settings/String.hpp
Executable file → Normal file
@ -49,4 +49,4 @@ public:
|
||||
protected:
|
||||
std::string value{};
|
||||
};
|
||||
}
|
||||
} // namespace settings
|
2
include/tfmm.hpp
Executable file → Normal file
2
include/tfmm.hpp
Executable file → Normal file
@ -15,4 +15,4 @@ void leaveQueue();
|
||||
void disconnectAndAbandon();
|
||||
void abandon();
|
||||
int getQueue();
|
||||
}
|
||||
} // namespace tfmm
|
||||
|
2
include/trace.hpp
Executable file → Normal file
2
include/trace.hpp
Executable file → Normal file
@ -60,4 +60,4 @@ public:
|
||||
extern FilterDefault filter_default;
|
||||
extern FilterNoPlayer filter_no_player;
|
||||
extern FilterPenetration filter_penetration;
|
||||
}
|
||||
} // namespace trace
|
||||
|
2
include/velocity.hpp
Executable file → Normal file
2
include/velocity.hpp
Executable file → Normal file
@ -16,4 +16,4 @@ typedef std::function<void(IClientEntity *, Vector &)> EstimateAbsVelocity_t;
|
||||
extern EstimateAbsVelocity_t EstimateAbsVelocity;
|
||||
|
||||
void Init();
|
||||
}
|
||||
} // namespace velocity
|
2
include/visual/EffectChams.hpp
Executable file → Normal file
2
include/visual/EffectChams.hpp
Executable file → Normal file
@ -54,4 +54,4 @@ public:
|
||||
|
||||
extern EffectChams g_EffectChams;
|
||||
extern CScreenSpaceEffectRegistration *g_pEffectChams;
|
||||
}
|
||||
} // namespace effect_chams
|
||||
|
2
include/visual/EffectGlow.hpp
Executable file → Normal file
2
include/visual/EffectGlow.hpp
Executable file → Normal file
@ -57,4 +57,4 @@ public:
|
||||
|
||||
extern EffectGlow g_EffectGlow;
|
||||
extern CScreenSpaceEffectRegistration *g_pEffectGlow;
|
||||
}
|
||||
} // namespace effect_glow
|
||||
|
2
include/visual/SDLHooks.hpp
Executable file → Normal file
2
include/visual/SDLHooks.hpp
Executable file → Normal file
@ -14,4 +14,4 @@ extern SDL_Window *window;
|
||||
|
||||
void applySdlHooks();
|
||||
void cleanSdlHooks();
|
||||
}
|
||||
} // namespace sdl_hooks
|
2
include/visual/atlas.hpp
Executable file → Normal file
2
include/visual/atlas.hpp
Executable file → Normal file
@ -50,4 +50,4 @@ public:
|
||||
};
|
||||
|
||||
texture_atlas &atlas();
|
||||
}
|
||||
} // namespace textures
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user