Fix crashes in hell
This commit is contained in:
parent
f936f214b6
commit
496955da32
@ -13,6 +13,7 @@
|
|||||||
#include <glez/draw.hpp>
|
#include <glez/draw.hpp>
|
||||||
#endif
|
#endif
|
||||||
#include <settings/Bool.hpp>
|
#include <settings/Bool.hpp>
|
||||||
|
#include "PlayerTools.hpp"
|
||||||
#include <hacks/Backtrack.hpp>
|
#include <hacks/Backtrack.hpp>
|
||||||
|
|
||||||
static settings::Bool enable{ "backtrack.enable", "false" };
|
static settings::Bool enable{ "backtrack.enable", "false" };
|
||||||
@ -124,6 +125,8 @@ void Run()
|
|||||||
continue;
|
continue;
|
||||||
if (!pEntity->hitboxes.GetHitbox(0))
|
if (!pEntity->hitboxes.GetHitbox(0))
|
||||||
continue;
|
continue;
|
||||||
|
if (HasCondition<TFCond_HalloweenGhostMode>(pEntity))
|
||||||
|
continue;
|
||||||
float _viewangles = CE_VECTOR(pEntity, netvar.m_angEyeAngles).y;
|
float _viewangles = CE_VECTOR(pEntity, netvar.m_angEyeAngles).y;
|
||||||
float viewangles =
|
float viewangles =
|
||||||
(_viewangles > 180) ? _viewangles - 360 : _viewangles;
|
(_viewangles > 180) ? _viewangles - 360 : _viewangles;
|
||||||
|
@ -257,7 +257,7 @@ void smart_crouch()
|
|||||||
if (CE_BAD(ent) || ent->m_Type() != ENTITY_PLAYER ||
|
if (CE_BAD(ent) || ent->m_Type() != ENTITY_PLAYER ||
|
||||||
ent->m_iTeam() == LOCAL_E->m_iTeam() ||
|
ent->m_iTeam() == LOCAL_E->m_iTeam() ||
|
||||||
!(ent->hitboxes.GetHitbox(0)) || !(ent->m_bAlivePlayer()) ||
|
!(ent->hitboxes.GetHitbox(0)) || !(ent->m_bAlivePlayer()) ||
|
||||||
player_tools::shouldTargetSteamId(ent->player_info.friendsID) !=
|
player_tools::shouldTarget(ent) !=
|
||||||
player_tools::IgnoreReason::DO_NOT_IGNORE ||
|
player_tools::IgnoreReason::DO_NOT_IGNORE ||
|
||||||
should_ignore_player(ent))
|
should_ignore_player(ent))
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user