Backtrack fix V2
This commit is contained in:
parent
e051c16851
commit
5e05e151e8
@ -9,10 +9,6 @@
|
|||||||
#include "hacks/Backtrack.hpp"
|
#include "hacks/Backtrack.hpp"
|
||||||
#include <boost/circular_buffer.hpp>
|
#include <boost/circular_buffer.hpp>
|
||||||
#include <glez/draw.hpp>
|
#include <glez/draw.hpp>
|
||||||
bool IsMelee()
|
|
||||||
{
|
|
||||||
return GetWeaponMode() == weapon_melee;
|
|
||||||
}
|
|
||||||
namespace hacks::shared::backtrack
|
namespace hacks::shared::backtrack
|
||||||
{
|
{
|
||||||
CatVar enable(CV_SWITCH, "backtrack", "0", "Enable backtrack",
|
CatVar enable(CV_SWITCH, "backtrack", "0", "Enable backtrack",
|
||||||
@ -108,6 +104,7 @@ void Run()
|
|||||||
float bestFov = 99999;
|
float bestFov = 99999;
|
||||||
BestTick = 0;
|
BestTick = 0;
|
||||||
iBestTarget = -1;
|
iBestTarget = -1;
|
||||||
|
bool IsMelee = GetWeaponMode() == weapon_melee;
|
||||||
|
|
||||||
float prev_distance = 9999;
|
float prev_distance = 9999;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user