[Weapons] Fix *gone right* (gone thankful for JTAG)
This commit is contained in:
parent
63ce4095e0
commit
e556b835cd
4
.gitignore
vendored
4
.gitignore
vendored
@ -149,5 +149,5 @@ ida/*
|
|||||||
# User scripts
|
# User scripts
|
||||||
user*.bat
|
user*.bat
|
||||||
|
|
||||||
# Premake binary
|
### Visual Studio Code
|
||||||
#premake5.exe
|
.vscode/
|
||||||
|
@ -404,7 +404,6 @@ namespace Components
|
|||||||
// fs_game fixes
|
// fs_game fixes
|
||||||
Utils::Hook::Nop(0x4A5D74, 2); // remove fs_game profiles
|
Utils::Hook::Nop(0x4A5D74, 2); // remove fs_game profiles
|
||||||
Utils::Hook::Set<BYTE>(0x4081FD, 0xEB); // defaultweapon
|
Utils::Hook::Set<BYTE>(0x4081FD, 0xEB); // defaultweapon
|
||||||
Utils::Hook::Set<BYTE>(0x452C1D, 0xEB); // LoadObj weaponDefs
|
|
||||||
|
|
||||||
// filesystem init default_mp.cfg check
|
// filesystem init default_mp.cfg check
|
||||||
Utils::Hook::Nop(0x461A9E, 5);
|
Utils::Hook::Nop(0x461A9E, 5);
|
||||||
|
@ -558,15 +558,9 @@ namespace Components
|
|||||||
Utils::Hook::Nop(0x4B3670, 5);
|
Utils::Hook::Nop(0x4B3670, 5);
|
||||||
Utils::Hook(0x57B4F0, LoadNoneWeaponHookStub, HOOK_JUMP).install()->quick();
|
Utils::Hook(0x57B4F0, LoadNoneWeaponHookStub, HOOK_JUMP).install()->quick();
|
||||||
|
|
||||||
// Don't load bounce sounds for now, it causes crashes
|
|
||||||
// TODO: Actually check the weaponfiles and/or reset the soundtable correctly!
|
|
||||||
//Utils::Hook::Nop(0x57A360, 5);
|
|
||||||
//Utils::Hook::Nop(0x57A366, 6);
|
|
||||||
Utils::Hook::Nop(0x5795E9, 2);
|
|
||||||
|
|
||||||
// Clear weapons independently from fs_game
|
// Clear weapons independently from fs_game
|
||||||
//Utils::Hook::Nop(0x452C1D, 2);
|
Utils::Hook::Nop(0x452C1D, 2);
|
||||||
//Utils::Hook::Nop(0x452C24, 5);
|
Utils::Hook::Nop(0x452C24, 5);
|
||||||
|
|
||||||
Utils::Hook(0x59E341, CG_UpdatePrimaryForAltModeWeapon_Stub, HOOK_JUMP).install()->quick();
|
Utils::Hook(0x59E341, CG_UpdatePrimaryForAltModeWeapon_Stub, HOOK_JUMP).install()->quick();
|
||||||
Utils::Hook(0x48BB25, CG_SelectWeaponIndex_Stub, HOOK_JUMP).install()->quick();
|
Utils::Hook(0x48BB25, CG_SelectWeaponIndex_Stub, HOOK_JUMP).install()->quick();
|
||||||
|
Loading…
Reference in New Issue
Block a user