Skip to content

Commit e892d68

Browse files
committed
White square
1 parent b89fc7e commit e892d68

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Client/game_sa/CHudSA.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -986,6 +986,19 @@ void __fastcall CHudSA::RenderCircleCrosshair(void* sprite, void*, CRect* rect,
986986
properties.placement.width = w;
987987
properties.placement.height = h;
988988

989+
if (gunRadius == 0.2)
990+
{
991+
CRect dotRect{};
992+
993+
dotRect.left = (useCustomPosition ? x : screenChairX) - 1.0f;
994+
dotRect.top = (useCustomPosition ? y : screenChairY) - 1.0f;
995+
dotRect.right = (useCustomPosition ? x : screenChairX) + 1.0f;
996+
dotRect.bottom = (useCustomPosition ? y : screenChairY) + 1.0f;
997+
998+
// Call CSprite2d::DrawRect
999+
((void(__cdecl*)(CRect*, RwColor*))0x727B60)(&dotRect, color);
1000+
}
1001+
9891002
rect->left = x - w;
9901003
properties.placement.x = rect->left;
9911004

@@ -1148,6 +1161,9 @@ void CHudSA::StaticSetHooks()
11481161
MemCpy((void*)0x58E44F, "\x83\xC4\x08\x90\x90", 5);
11491162
MemCpy((void*)0x58E49C, "\x83\xC4\x08\x90\x90", 5);
11501163

1164+
// Disable rendering white square in the center of the crosshair
1165+
MemSet((void*)0x58E2DD, 0x90, 5);
1166+
11511167
// Disable rocket/sniper/camera crosshair rendering by GTA
11521168
MemSet((void*)0x58E9CA, 0x90, 5);
11531169
MemSet((void*)0x58EA39, 0x90, 5);

0 commit comments

Comments
 (0)