Fix antibackstab and Cotire issues
This commit is contained in:
parent
ac39656bce
commit
3d0f4a1355
@ -165,7 +165,7 @@ add_subdirectory(modules)
|
||||
if (EnableCotire)
|
||||
set_target_properties(cathook PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "${CMAKE_SOURCE_DIR}/include/common.hpp")
|
||||
set_target_properties(cathook PROPERTIES COTIRE_ADD_UNITY_BUILD true)
|
||||
set_target_properties(cathook PROPERTIES COTIRE_UNITY_SOURCE_MAXIMUM_NUMBER_OF_INCLUDES -j4)
|
||||
set_target_properties(cathook PROPERTIES COTIRE_UNITY_SOURCE_MAXIMUM_NUMBER_OF_INCLUDES 30)
|
||||
set_source_files_properties(${ignore_files} PROPERTIES COTIRE_EXCLUDED true)
|
||||
cotire(cathook)
|
||||
endif()
|
||||
|
@ -18,7 +18,6 @@ namespace hacks::tf2::antibackstab
|
||||
static settings::Boolean enable{ "antibackstab.enable", "0" };
|
||||
static settings::Float distance{ "antibackstab.distance", "200" };
|
||||
static settings::Boolean silent{ "antibackstab.silent", "1" };
|
||||
static settings::Float angle{ "antibackstab.angle", "107.5" };
|
||||
static settings::Boolean sayno{ "antibackstab.nope", "0" };
|
||||
bool noaa = false;
|
||||
|
||||
@ -93,7 +92,7 @@ CachedEntity *ClosestSpy()
|
||||
if (IsPlayerInvisible(ent))
|
||||
continue;
|
||||
dist = ent->m_flDistance();
|
||||
if (fabs(GetAngle(ent)) > (float) angle || (ispyro && !isheavy && fabs(GetAngle(ent)) > 90.0f) || (isheavy && fabs(GetAngle(ent)) > 132.0f))
|
||||
if ((ispyro && !isheavy && fabs(GetAngle(ent)) > 90.0f) || (isheavy && fabs(GetAngle(ent)) > 132.0f))
|
||||
{
|
||||
break;
|
||||
// logging::Info("Backstab???");
|
||||
|
Reference in New Issue
Block a user