-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make disabling taunts also disable units cheering (#31)
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
%include "macros/patch.inc" | ||
%include "macros/datatypes.inc" | ||
|
||
cextern LANTaunts | ||
cextern WOLTaunts | ||
cextern SessionType | ||
cextern Rules | ||
|
||
hack 0x0050C8F4, 0x0050C8F9 | ||
.CheckLan: | ||
mov eax, dword[SessionType] | ||
cmp eax, 3 ; GAME_IPX | ||
jne .CheckWol | ||
mov al, byte[LANTaunts] | ||
test al, al | ||
jnz .DoCheer | ||
jmp .SkipCheer | ||
.CheckWol: | ||
mov eax, dword[SessionType] | ||
cmp eax, 4 ; GAME_INTERNET | ||
jne .DoCheer | ||
mov al, byte[WOLTaunts] | ||
test al, al | ||
jnz .DoCheer | ||
jmp .SkipCheer | ||
.DoCheer: | ||
mov eax, dword[Rules] | ||
jmp hackend | ||
|
||
.SkipCheer: | ||
jmp 0x0050C910 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters