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
TotallyNotElite 5bf38c6d49 format v2
2018-12-04 18:14:45 +01:00

34 lines
896 B
C++

/*
*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 BuildingPrediction(CachedEntity *building, Vector vec, float speed, float gravity);
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);