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/prediction.hpp
2018-04-29 16:52:34 +03:00

36 lines
908 B
C++
Executable File

/*
* prediction.h
*
* Created on: Dec 5, 2016
* Author: nullifiedcat
*/
#pragma once
#include <enums.hpp>
#include "config.h"
class CachedEntity;
class Vector;
Vector SimpleLatencyPrediction(CachedEntity *ent, int hb);
bool PerformProjectilePrediction(CachedEntity *target, int hitbox);
Vector ProjectilePrediction(CachedEntity *ent, int hb, float speed,
float gravitymod, float entgmod);
Vector ProjectilePrediction_Engine(CachedEntity *ent, int hb, float speed,
float gravitymod,
float entgmod /* ignored */);
float PlayerGravityMod(CachedEntity *player);
Vector EnginePrediction(CachedEntity *player, float time);
void Prediction_CreateMove();
#if ENABLE_VISUALS
void Prediction_PaintTraverse();
#endif
float DistanceToGround(CachedEntity *ent);
float DistanceToGround(Vector origin);