From 9b6d3aafaebbc19a186769535851f2ff6f65db7b Mon Sep 17 00:00:00 2001 From: SmileY Date: Thu, 29 Jun 2023 23:50:36 -0300 Subject: [PATCH] Fixed distance to use float units! --- AccuracyFix/AccuracyFix.cpp | 4 ++-- AccuracyFix/MetaMod.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AccuracyFix/AccuracyFix.cpp b/AccuracyFix/AccuracyFix.cpp index 8a060ee..dcf4391 100644 --- a/AccuracyFix/AccuracyFix.cpp +++ b/AccuracyFix/AccuracyFix.cpp @@ -98,13 +98,13 @@ bool CAccuracyFix::TraceLine(const float* start, const float* end, int fNoMonste if (this->GetUserAiming(pentToSkip, &this->m_Data[EntityIndex].m_Target, &this->m_Data[EntityIndex].m_Body, aimDistance) && this->m_Data[EntityIndex].m_TM) { - auto fwdDistance = (int)this->m_af_accuracy[Player->m_pActiveItem->m_iId]->value; + auto fwdDistance = this->m_af_accuracy[Player->m_pActiveItem->m_iId]->value; if (fwdDistance > 0) { if (this->m_af_accuracy_all->value > 0) { - fwdDistance = (int)this->m_af_accuracy_all->value; + fwdDistance = this->m_af_accuracy_all->value; } g_engfuncs.pfnMakeVectors(pentToSkip->v.v_angle); diff --git a/AccuracyFix/MetaMod.cpp b/AccuracyFix/MetaMod.cpp index faade77..c34948b 100644 --- a/AccuracyFix/MetaMod.cpp +++ b/AccuracyFix/MetaMod.cpp @@ -4,7 +4,7 @@ plugin_info_t Plugin_info = { META_INTERFACE_VERSION, "Accuracy Fix", - "1.0.0", + "1.0.1", __DATE__, "SmileY", "https://pugbr.net",