This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
cathook/include/globals.h

51 lines
882 B
C++
Executable File

/*
* globals.h
*
* Created on: Nov 16, 2016
* Author: nullifiedcat
*/
#pragma once
#include <boost/circular_buffer.hpp>
#include <time.h>
#include <mathlib/vector.h>
class Vector;
class CUserCmd;
class ConVar;
extern int g_AppID;
extern unsigned long tickcount;
extern ConVar *sv_client_min_interp_ratio;
extern ConVar *cl_interp_ratio;
extern ConVar *cl_interp;
extern ConVar *cl_interpolate;
extern bool *bSendPackets;
extern bool need_name_change;
extern int last_cmd_number;
extern time_t time_injected;
struct brutestruct
{
int brutenum[32];
Vector last_angles[32];
std::deque<bool> choke[32];
float lastsimtime;
};
class GlobalSettings
{
public:
void Init();
bool bInvalid{ true };
bool is_create_move{ false };
brutestruct brute;
};
bool isHackActive();
extern CUserCmd *current_user_cmd;
extern GlobalSettings g_Settings;