Merge pull request #368 from diamante0018/sounds
[Weapons] Fix *gone right*
This commit is contained in:
commit
08b6924ea7
4
.gitignore
vendored
4
.gitignore
vendored
@ -149,5 +149,5 @@ ida/*
|
||||
# User scripts
|
||||
user*.bat
|
||||
|
||||
# Premake binary
|
||||
#premake5.exe
|
||||
### Visual Studio Code
|
||||
.vscode/
|
||||
|
@ -404,7 +404,6 @@ namespace Components
|
||||
// fs_game fixes
|
||||
Utils::Hook::Nop(0x4A5D74, 2); // remove fs_game profiles
|
||||
Utils::Hook::Set<BYTE>(0x4081FD, 0xEB); // defaultweapon
|
||||
Utils::Hook::Set<BYTE>(0x452C1D, 0xEB); // LoadObj weaponDefs
|
||||
|
||||
// filesystem init default_mp.cfg check
|
||||
Utils::Hook::Nop(0x461A9E, 5);
|
||||
|
@ -558,15 +558,9 @@ namespace Components
|
||||
Utils::Hook::Nop(0x4B3670, 5);
|
||||
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
|
||||
//Utils::Hook::Nop(0x452C1D, 2);
|
||||
//Utils::Hook::Nop(0x452C24, 5);
|
||||
Utils::Hook::Nop(0x452C1D, 2);
|
||||
Utils::Hook::Nop(0x452C24, 5);
|
||||
|
||||
Utils::Hook(0x59E341, CG_UpdatePrimaryForAltModeWeapon_Stub, HOOK_JUMP).install()->quick();
|
||||
Utils::Hook(0x48BB25, CG_SelectWeaponIndex_Stub, HOOK_JUMP).install()->quick();
|
||||
|
Loading…
Reference in New Issue
Block a user