add more xbox patches

This commit is contained in:
Martin Michelsen
2024-02-25 21:41:18 -08:00
parent 79f85f46dc
commit ac62cc455c
22 changed files with 421 additions and 8 deletions
@@ -0,0 +1,41 @@
.meta name="Enemy HP bars"
.meta description="Show HP bars in\nenemy info windows"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x0026B063
.data 0x00000001
.binary A0
.data 0x0026B06C
.data 0x00000001
.binary DA
.data 0x0026B266
.data 0x00000004
.binary 836004FD
.data 0x0054A92C
.data 0x00000004
.data 0x42640000
.data 0x0054A938
.data 0x00000004
.data 0x42640000
.data 0x0054A944
.data 0x00000004
.data 0x42640000
.data 0x0054A950
.data 0x00000004
.data 0x42640000
.data 0x0054A9EC
.data 0x00000004
.data 0x42300000
.data 0x0054AA08
.data 0x00000004
.data 0xFF00FF15
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,41 @@
.meta name="Enemy HP bars"
.meta description="Show HP bars in\nenemy info windows"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x0026B193
.data 0x00000001
.binary A0
.data 0x0026B19C
.data 0x00000001
.binary DA
.data 0x0026B396
.data 0x00000004
.binary 836004FD
.data 0x0054A1CC
.data 0x00000004
.data 0x42640000
.data 0x0054A1D8
.data 0x00000004
.data 0x42640000
.data 0x0054A1E4
.data 0x00000004
.data 0x42640000
.data 0x0054A1F0
.data 0x00000004
.data 0x42640000
.data 0x0054A28C
.data 0x00000004
.data 0x42300000
.data 0x0054A2A8
.data 0x00000004
.data 0xFF00FF15
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,41 @@
.meta name="Enemy HP bars"
.meta description="Show HP bars in\nenemy info windows"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x0026ABA3
.data 0x00000001
.binary A0
.data 0x0026ABAC
.data 0x00000001
.binary DA
.data 0x0026ADA6
.data 0x00000004
.binary 836004FD
.data 0x00545334
.data 0x00000004
.data 0x42640000
.data 0x00545340
.data 0x00000004
.data 0x42640000
.data 0x0054534C
.data 0x00000004
.data 0x42640000
.data 0x00545358
.data 0x00000004
.data 0x42640000
.data 0x005453F4
.data 0x00000004
.data 0x42300000
.data 0x00545410
.data 0x00000004
.data 0xFF00FF15
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,41 @@
.meta name="Enemy HP bars"
.meta description="Show HP bars in\nenemy info windows"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x0026AF13
.data 0x00000001
.binary A0
.data 0x0026AF1C
.data 0x00000001
.binary DA
.data 0x0026B116
.data 0x00000004
.binary 836004FD
.data 0x005459C4
.data 0x00000004
.data 0x42640000
.data 0x005459D0
.data 0x00000004
.data 0x42640000
.data 0x005459DC
.data 0x00000004
.data 0x42640000
.data 0x005459E8
.data 0x00000004
.data 0x42640000
.data 0x00545A84
.data 0x00000004
.data 0x42300000
.data 0x00545AA0
.data 0x00000004
.data 0xFF00FF15
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,41 @@
.meta name="Enemy HP bars"
.meta description="Show HP bars in\nenemy info windows"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x0026B2F3
.data 0x00000001
.binary A0
.data 0x0026B2FC
.data 0x00000001
.binary DA
.data 0x0026B4F6
.data 0x00000004
.binary 836004FD
.data 0x0054D4AC
.data 0x00000004
.data 0x42640000
.data 0x0054D4B8
.data 0x00000004
.data 0x42640000
.data 0x0054D4C4
.data 0x00000004
.data 0x42640000
.data 0x0054D4D0
.data 0x00000004
.data 0x42640000
.data 0x0054D56C
.data 0x00000004
.data 0x42300000
.data 0x0054D588
.data 0x00000004
.data 0xFF00FF15
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,41 @@
.meta name="Enemy HP bars"
.meta description="Show HP bars in\nenemy info windows"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x0026B083
.data 0x00000001
.binary A0
.data 0x0026B08C
.data 0x00000001
.binary DA
.data 0x0026B286
.data 0x00000004
.binary 836004FD
.data 0x0054A92C
.data 0x00000004
.data 0x42640000
.data 0x0054A938
.data 0x00000004
.data 0x42640000
.data 0x0054A944
.data 0x00000004
.data 0x42640000
.data 0x0054A950
.data 0x00000004
.data 0x42640000
.data 0x0054A9EC
.data 0x00000004
.data 0x42300000
.data 0x0054AA08
.data 0x00000004
.data 0xFF00FF15
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,41 @@
.meta name="Enemy HP bars"
.meta description="Show HP bars in\nenemy info windows"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x0026B193
.data 0x00000001
.binary A0
.data 0x0026B19C
.data 0x00000001
.binary DA
.data 0x0026B396
.data 0x00000004
.binary 836004FD
.data 0x0054ACCC
.data 0x00000004
.data 0x42640000
.data 0x0054ACD8
.data 0x00000004
.data 0x42640000
.data 0x0054ACE4
.data 0x00000004
.data 0x42640000
.data 0x0054ACF0
.data 0x00000004
.data 0x42640000
.data 0x0054AD8C
.data 0x00000004
.data 0x42300000
.data 0x0054ADA8
.data 0x00000004
.data 0xFF00FF15
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,17 @@
.meta name="Invisible MAG"
.meta description="Make MAGs invisible"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x00183941
.data 0x00000002
.binary 90E9
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,17 @@
.meta name="Invisible MAG"
.meta description="Make MAGs invisible"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x00183971
.data 0x00000002
.binary 90E9
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,17 @@
.meta name="Invisible MAG"
.meta description="Make MAGs invisible"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x001837C1
.data 0x00000002
.binary 90E9
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,17 @@
.meta name="Invisible MAG"
.meta description="Make MAGs invisible"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x00183951
.data 0x00000002
.binary 90E9
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,17 @@
.meta name="Invisible MAG"
.meta description="Make MAGs invisible"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x00183A01
.data 0x00000002
.binary 90E9
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,17 @@
.meta name="Invisible MAG"
.meta description="Make MAGs invisible"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x00183961
.data 0x00000002
.binary 90E9
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,17 @@
.meta name="Invisible MAG"
.meta description="Make MAGs invisible"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksXB
.data 0x00183931
.data 0x00000002
.binary 90E9
.data 0x00000000
.data 0x00000000
@@ -2,7 +2,8 @@
.meta description="Don't lose items if\nyou don't log off\nnormally"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049; Xbox port by fuzziqersoftware
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
@@ -2,7 +2,8 @@
.meta description="Don't lose items if\nyou don't log off\nnormally"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049; Xbox port by fuzziqersoftware
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
@@ -2,7 +2,8 @@
.meta description="Don't lose items if\nyou don't log off\nnormally"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049; Xbox port by fuzziqersoftware
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
@@ -2,7 +2,8 @@
.meta description="Don't lose items if\nyou don't log off\nnormally"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049; Xbox port by fuzziqersoftware
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
@@ -2,7 +2,8 @@
.meta description="Don't lose items if\nyou don't log off\nnormally"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049; Xbox port by fuzziqersoftware
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
@@ -2,7 +2,8 @@
.meta description="Don't lose items if\nyou don't log off\nnormally"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049; Xbox port by fuzziqersoftware
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
@@ -2,7 +2,8 @@
.meta description="Don't lose items if\nyou don't log off\nnormally"
# Original code by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049; Xbox port by fuzziqersoftware
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
# Xbox port by fuzziqersoftware
entry_ptr:
reloc0:
+1 -1
View File
@@ -28,7 +28,7 @@ process_stick_value:
cmova ecx, eax # if X2 out of deadzone range, use eax
mov edx, eax
bswap edx # dh = Y2
lea edx, [edx + 0x2800] # dh = Y2 = 0x28
lea edx, [edx + 0x2800] # dh = Y2 + 0x28
cmp dh, 0x50
cmova ecx, eax # if Y2 out of deadzone range, use eax