Skip to content

Commit

Permalink
Make disabling taunts also disable units cheering (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivDero authored Nov 22, 2024
1 parent a7c3fa3 commit 368ca11
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ EXE_OBJS = \
src/single-proc-affinity.o \
src/online_optimizations.o \
src/rage_quit.o \
src/silent_cheer.o \
res/res.o \
sym.o

Expand Down
37 changes: 37 additions & 0 deletions src/silent_cheer.asm
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
3 changes: 3 additions & 0 deletions sym.asm
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ setcglob 0x0052F620, Parse_Command_Line
;CCHyper 18.06.2015
setcglob 0x00A8B31C, AlliesAllowed

setcglob 0x00A8D110, LANTaunts
setcglob 0x00A8D111, WOLTaunts

; Network
setcglob 0x00841F30, ListenPort
setcglob 0x004A1D50, CRC_DWORD
Expand Down

0 comments on commit 368ca11

Please sign in to comment.