Skip to content

Commit

Permalink
Fix Zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn committed Jan 24, 2025
1 parent 5888d3b commit 7b3b96f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions AccuracyFix/AccuracyFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ void CAccuracyFix::TraceLine(const float* vStart, const float* vEnd, int fNoMons
{
if ((Player->m_pActiveItem->iItemSlot() == PRIMARY_WEAPON_SLOT) || (Player->m_pActiveItem->iItemSlot() == PISTOL_SLOT))
{
if ((Player->m_pActiveItem->m_iId == WEAPON_SG550) || (Player->m_pActiveItem->m_iId == WEAPON_AWP) || (Player->m_pActiveItem->m_iId == WEAPON_G3SG1))
{
if (Player->m_iFOV == 90)
{
return;
}
}

auto DistanceLimit = this->m_af_distance[Player->m_pActiveItem->m_iId]->value;

if (this->m_af_distance_all->value > 0)
Expand Down
4 changes: 2 additions & 2 deletions AccuracyFix/ReAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ bool ReAPI_Init()
}

#ifdef WIN32
CSysModule* engineModule = Sys_LoadModule("swds.dll");
CSysModule* engineModule = Sys_GetModuleHandle("swds.dll");
#else
CSysModule* engineModule = Sys_LoadModule("engine_i486.so");
CSysModule* engineModule = Sys_GetModuleHandle("engine_i486.so");
#endif

if (!engineModule)
Expand Down
2 changes: 1 addition & 1 deletion AccuracyFix/ReGameDLL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bool ReGameDLL_Init()
return false;
}

CSysModule *gameModule = Sys_LoadModule(szGameDLLModule);
CSysModule *gameModule = Sys_GetModuleHandle(szGameDLLModule);

if (!gameModule)
{
Expand Down

0 comments on commit 7b3b96f

Please sign in to comment.