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/crits.hpp
TotallyNotElite 0445e05168 Fix #662
Also fix crits code not running
2018-12-24 17:01:59 +01:00

38 lines
630 B
C++

/*
* crits.h
*
* Created on: Feb 25, 2017
* Author: nullifiedcat
*/
#pragma once
class CUserCmd;
class IClientEntity;
// BUGBUG TODO this struct is outdated
struct crithack_saved_state
{
float unknown2868;
float unknown2864;
int unknown2620;
float unknown2880;
char unknown2839;
float bucket2616;
int seed2876;
void Save(IClientEntity *entity);
void Load(IClientEntity *entity);
};
namespace criticals
{
bool random_crits_enabled();
} // namespace criticals
#include <unordered_map>
extern int *g_PredictionRandomSeed;
extern std::unordered_map<int, int> command_number_mod;