@@ -578,6 +578,26 @@ CMultiplayerSA::CMultiplayerSA()
578578 m_dwLastStaticAnimID = eAnimID::ANIM_ID_WALK;
579579}
580580
581+ void CVehicle__DoSunGlare (void * this_)
582+ {
583+ // EAXJMP(0x6DD6F0);
584+ MemSet ((void *)0x6DD6F0 , 0x1 , 1 );
585+ }
586+
587+ void __declspec (naked) doglare(void )
588+ {
589+ _asm {
590+ mov ecx, 1
591+ cmp [ecx+8 ], 0 // doglare
592+ jle noglare
593+ mov ecx,esi
594+ call CVehicle__DoSunGlare
595+ noglare:
596+ mov [esp+0D4h], edi
597+ push 6ABD04h
598+ retn
599+ }
600+ }
581601void CMultiplayerSA::InitHooks ()
582602{
583603 InitKeysyncHooks ();
@@ -1510,7 +1530,7 @@ void CMultiplayerSA::InitHooks()
15101530 // Allow water cannon to hit objects and players visually
15111531 MemSet ((void *)0x72925D , 0x1 , 1 ); // objects
15121532 MemSet ((void *)0x729263 , 0x1 , 1 ); // players
1513-
1533+
15141534 // Allow crouching with 1HP
15151535 MemPut ((void *)0x6943AD , &fDuckingHealthThreshold );
15161536 fDuckingHealthThreshold = 0 ;
@@ -1519,6 +1539,12 @@ void CMultiplayerSA::InitHooks()
15191539 m_fShadowsOffset = 0 .013f ; // GTA default = 0.06f
15201540 for (auto uiAddr : shadowAddr)
15211541 MemPut (uiAddr, &m_fShadowsOffset);
1542+ // Fuck Sun Glar
1543+ // MemPut((void*)0x6ABCFD, 0x6DD6F0);
1544+
1545+ // Fuck the wet road reflection
1546+ MemSet ((void *)0x6FB9A0 , 0x1C , 1 );
1547+
15221548
15231549 InitHooks_CrashFixHacks ();
15241550
0 commit comments