mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-24 22:32:29 +01:00
parent
bee5b44af1
commit
9de11adc48
@ -22,8 +22,8 @@ SunSizeHack=1
|
||||
; This matches the behaviour present in GTA III or VC, but may not look perfect in all cases - so consider it
|
||||
; a matter of personal preference
|
||||
DirectionalFromSun=0
|
||||
; When this setting is enabled, police helicopter will not be able to hurt CJ when Invicibility Cheat is active
|
||||
TrueInvicibility=0
|
||||
; When this setting is enabled, police helicopter will not be able to hurt CJ when Invincibility Cheat is active
|
||||
TrueInvincibility=0
|
||||
; Allows to override units used by the game - 0 forces metric units, 1 forces imperial units,
|
||||
; -1 makes the game use units based on system locale
|
||||
Units=-1
|
||||
|
@ -1840,7 +1840,7 @@ namespace LightbeamFix
|
||||
|
||||
}
|
||||
|
||||
namespace TrueInvicibility
|
||||
namespace TrueInvincibility
|
||||
{
|
||||
static bool isEnabled = false;
|
||||
static uintptr_t WillKillJumpBack;
|
||||
@ -4145,10 +4145,18 @@ BOOL InjectDelayedPatches_10()
|
||||
}
|
||||
}
|
||||
|
||||
// True invicibility - not being hurt by Police Maverick bullets anymore
|
||||
if ( const int INIoption = GetPrivateProfileIntW(L"SilentPatch", L"TrueInvicibility", -1, wcModulePath); INIoption != -1 && !bSAMP )
|
||||
// True invincibility - not being hurt by Police Maverick bullets anymore
|
||||
if ( !bSAMP )
|
||||
{
|
||||
using namespace TrueInvicibility;
|
||||
int INIoption = GetPrivateProfileIntW(L"SilentPatch", L"TrueInvincibility", -1, wcModulePath);
|
||||
if (INIoption == -1)
|
||||
{
|
||||
// Minor spelling mistake, keep it for backwards compatibility with old INI files
|
||||
INIoption = GetPrivateProfileIntW(L"SilentPatch", L"TrueInvicibility", -1, wcModulePath);
|
||||
}
|
||||
if (INIoption != -1)
|
||||
{
|
||||
using namespace TrueInvincibility;
|
||||
|
||||
isEnabled = INIoption != 0;
|
||||
WillKillJumpBack = 0x4B3238;
|
||||
@ -4156,7 +4164,8 @@ BOOL InjectDelayedPatches_10()
|
||||
|
||||
if ( bHasDebugMenu )
|
||||
{
|
||||
DebugMenuAddVar( "SilentPatch", "True invicibility", &isEnabled, nullptr );
|
||||
DebugMenuAddVar( "SilentPatch", "True invincibility", &isEnabled, nullptr );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user