mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 15:07:28 +05:00
outfit.asi compatibility
This commit is contained in:
parent
bf08a40d1a
commit
d709936322
1 changed files with 18 additions and 6 deletions
|
@ -2299,6 +2299,7 @@ BOOL InjectDelayedPatches_10()
|
|||
const bool bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
||||
const bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
||||
const bool bSARender = moduleList.Get(L"SARender") != nullptr;
|
||||
const bool bOutfit = moduleList.Get(L"outfit") != nullptr;
|
||||
|
||||
const HMODULE skygfxModule = moduleList.Get( L"skygfx" );
|
||||
const HMODULE modloaderModule = moduleList.Get( L"modloader" );
|
||||
|
@ -2331,9 +2332,12 @@ BOOL InjectDelayedPatches_10()
|
|||
|
||||
|
||||
// Weapons rendering
|
||||
if ( !bOutfit )
|
||||
{
|
||||
InjectHook(0x5E7859, RenderWeapon);
|
||||
InjectHook(0x732F30, RenderWeaponPedsForPC, PATCH_JUMP);
|
||||
}
|
||||
}
|
||||
|
||||
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
||||
{
|
||||
|
@ -2666,6 +2670,7 @@ BOOL InjectDelayedPatches_11()
|
|||
bool bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
||||
bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
||||
bool bSARender = moduleList.Get(L"SARender") != nullptr;
|
||||
const bool bOutfit = moduleList.Get(L"outfit") != nullptr;
|
||||
|
||||
ReadRotorFixExceptions(wcModulePath);
|
||||
|
||||
|
@ -2692,9 +2697,12 @@ BOOL InjectDelayedPatches_11()
|
|||
Patch(0x734C8E, RenderBigVehicleActomic);
|
||||
|
||||
// Weapons rendering
|
||||
if ( !bOutfit )
|
||||
{
|
||||
InjectHook(0x5E8079, RenderWeapon);
|
||||
InjectHook(0x733760, RenderWeaponPedsForPC, PATCH_JUMP);
|
||||
}
|
||||
}
|
||||
|
||||
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
||||
{
|
||||
|
@ -2833,6 +2841,7 @@ BOOL InjectDelayedPatches_Steam()
|
|||
bool bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
||||
bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
||||
bool bSARender = moduleList.Get(L"SARender") != nullptr;
|
||||
const bool bOutfit = moduleList.Get(L"outfit") != nullptr;
|
||||
|
||||
ReadRotorFixExceptions(wcModulePath);
|
||||
|
||||
|
@ -2860,9 +2869,12 @@ BOOL InjectDelayedPatches_Steam()
|
|||
|
||||
|
||||
// Weapons rendering
|
||||
if ( !bOutfit )
|
||||
{
|
||||
InjectHook(0x604DD9, RenderWeapon);
|
||||
InjectHook(0x76D170, RenderWeaponPedsForPC, PATCH_JUMP);
|
||||
}
|
||||
}
|
||||
|
||||
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue