mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57: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 bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
||||||
const bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
const bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
||||||
const bool bSARender = moduleList.Get(L"SARender") != 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 skygfxModule = moduleList.Get( L"skygfx" );
|
||||||
const HMODULE modloaderModule = moduleList.Get( L"modloader" );
|
const HMODULE modloaderModule = moduleList.Get( L"modloader" );
|
||||||
|
@ -2331,8 +2332,11 @@ BOOL InjectDelayedPatches_10()
|
||||||
|
|
||||||
|
|
||||||
// Weapons rendering
|
// Weapons rendering
|
||||||
InjectHook(0x5E7859, RenderWeapon);
|
if ( !bOutfit )
|
||||||
InjectHook(0x732F30, RenderWeaponPedsForPC, PATCH_JUMP);
|
{
|
||||||
|
InjectHook(0x5E7859, RenderWeapon);
|
||||||
|
InjectHook(0x732F30, RenderWeaponPedsForPC, PATCH_JUMP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
||||||
|
@ -2666,6 +2670,7 @@ BOOL InjectDelayedPatches_11()
|
||||||
bool bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
bool bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
||||||
bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
||||||
bool bSARender = moduleList.Get(L"SARender") != nullptr;
|
bool bSARender = moduleList.Get(L"SARender") != nullptr;
|
||||||
|
const bool bOutfit = moduleList.Get(L"outfit") != nullptr;
|
||||||
|
|
||||||
ReadRotorFixExceptions(wcModulePath);
|
ReadRotorFixExceptions(wcModulePath);
|
||||||
|
|
||||||
|
@ -2692,8 +2697,11 @@ BOOL InjectDelayedPatches_11()
|
||||||
Patch(0x734C8E, RenderBigVehicleActomic);
|
Patch(0x734C8E, RenderBigVehicleActomic);
|
||||||
|
|
||||||
// Weapons rendering
|
// Weapons rendering
|
||||||
InjectHook(0x5E8079, RenderWeapon);
|
if ( !bOutfit )
|
||||||
InjectHook(0x733760, RenderWeaponPedsForPC, PATCH_JUMP);
|
{
|
||||||
|
InjectHook(0x5E8079, RenderWeapon);
|
||||||
|
InjectHook(0x733760, RenderWeaponPedsForPC, PATCH_JUMP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
||||||
|
@ -2833,6 +2841,7 @@ BOOL InjectDelayedPatches_Steam()
|
||||||
bool bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
bool bHasImVehFt = moduleList.Get(L"ImVehFt") != nullptr;
|
||||||
bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
bool bSAMP = moduleList.Get(L"samp") != nullptr;
|
||||||
bool bSARender = moduleList.Get(L"SARender") != nullptr;
|
bool bSARender = moduleList.Get(L"SARender") != nullptr;
|
||||||
|
const bool bOutfit = moduleList.Get(L"outfit") != nullptr;
|
||||||
|
|
||||||
ReadRotorFixExceptions(wcModulePath);
|
ReadRotorFixExceptions(wcModulePath);
|
||||||
|
|
||||||
|
@ -2860,8 +2869,11 @@ BOOL InjectDelayedPatches_Steam()
|
||||||
|
|
||||||
|
|
||||||
// Weapons rendering
|
// Weapons rendering
|
||||||
InjectHook(0x604DD9, RenderWeapon);
|
if ( !bOutfit )
|
||||||
InjectHook(0x76D170, RenderWeaponPedsForPC, PATCH_JUMP);
|
{
|
||||||
|
InjectHook(0x604DD9, RenderWeapon);
|
||||||
|
InjectHook(0x76D170, RenderWeaponPedsForPC, PATCH_JUMP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
if ( GetPrivateProfileIntW(L"SilentPatch", L"EnableScriptFixes", -1, wcModulePath) == 1 )
|
||||||
|
|
Loading…
Reference in a new issue