Skip to content
This repository was archived by the owner on Nov 5, 2018. It is now read-only.

Commit ba92060

Browse files
committed
Stopped knife from rendering fov crosshair
1 parent 7d5fe76 commit ba92060

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Hacks/esp.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,12 @@ void ESP::DrawFOVCrosshair()
978978
C_BasePlayer* localplayer = (C_BasePlayer*) entityList->GetClientEntity(engine->GetLocalPlayer());
979979
if (!localplayer->GetAlive())
980980
return;
981-
981+
982+
C_BaseCombatWeapon* activeWeapon = (C_BaseCombatWeapon*) entityList->GetClientEntityFromHandle(localplayer->GetActiveWeapon());
983+
984+
if (activeWeapon->IsKnife())
985+
return;
986+
982987
int width, height;
983988
engine->GetScreenSize(width, height);
984989

0 commit comments

Comments
 (0)