Skip to content

Commit

Permalink
write more patches
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Jan 28, 2025
1 parent b5104a7 commit b7293e7
Show file tree
Hide file tree
Showing 10 changed files with 443 additions and 0 deletions.
46 changes: 46 additions & 0 deletions system/client-functions/EnemyHPBars/EnemyHPBars.59NL.patch.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Enemy HP bars"
.meta description="Shows HP bars in\nenemy info windows"

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksBB
.data 0x007318DD
.data 6
.binary 81E2FDFFFFFF
.data 0x00731F2F
.data 1
.binary FA
.data 0x009F2DA4
.data 4
.data 0x42480000
.data 0x009F2DAC
.data 4
.data 0x41C00000
.data 0x009F2DD4
.data 4
.data 0x42480000
.data 0x009F2DDC
.data 4
.data 0x41C00000
.data 0x009F2E04
.data 4
.data 0x42480000
.data 0x009F2E0C
.data 4
.data 0x41C00000
.data 0x009F2E34
.data 4
.data 0x42480000
.data 0x009F2E3C
.data 4
.data 0x41C00000
.data 0x009F2E64
.data 4
.data 0x42200000
.data 0x009F2E80
.data 4
.data 0xFF00FF15
.data 0x00000000
.data 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Blinking SD"
.meta description="Makes the Shifta\nand Deband status\nicons flicker when\nthey are about\nto run out"
# 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

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC

.data 0x8000B86C
.data 0x00000054
code_start:
mr r3, r0
andi. r0, r31, 2
beqlr
lwz r4, [r3 + 0x0028]
cmplwi r4, 0
beqlr
lwz r4, [r4]
cmplwi r4, 0
beqlr
mulli r0, r31, 12
add r5, r29, r0
lwz r6, [r5 + 0x025C]
cmplwi r6, 450
bge full_intensity
lbz r6, [r4 + 0x002C]
subi r6, r6, 0x0008
cmpwi r6, 0
bge not_full_intensity
full_intensity:
li r6, 0x00FF
not_full_intensity:
stb [r4 + 0x002C], r6
blr
code_end:

.data 0x8026E7F4
.data 4
.data 0x4BD9D079

.data 0
.data 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Blinking SD"
.meta description="Makes the Shifta\nand Deband status\nicons flicker when\nthey are about\nto run out"
# 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

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC

.data 0x8000B86C
.data 0x00000054
code_start:
mr r3, r0
andi. r0, r31, 2
beqlr
lwz r4, [r3 + 0x0028]
cmplwi r4, 0
beqlr
lwz r4, [r4]
cmplwi r4, 0
beqlr
mulli r0, r31, 12
add r5, r29, r0
lwz r6, [r5 + 0x025C]
cmplwi r6, 450
bge full_intensity
lbz r6, [r4 + 0x002C]
subi r6, r6, 0x0008
cmpwi r6, 0
bge not_full_intensity
full_intensity:
li r6, 0x00FF
not_full_intensity:
stb [r4 + 0x002C], r6
blr
code_end:

.data 0x8026E7F4
.data 4
.data 0x4BD9D079

.data 0
.data 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Blinking SD"
.meta description="Makes the Shifta\nand Deband status\nicons flicker when\nthey are about\nto run out"
# 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

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC

.data 0x8000B86C
.data 0x00000054
code_start:
mr r3, r0
andi. r0, r31, 2
beqlr
lwz r4, [r3 + 0x0028]
cmplwi r4, 0
beqlr
lwz r4, [r4]
cmplwi r4, 0
beqlr
mulli r0, r31, 12
add r5, r29, r0
lwz r6, [r5 + 0x025C]
cmplwi r6, 450
bge full_intensity
lbz r6, [r4 + 0x002C]
subi r6, r6, 0x0008
cmpwi r6, 0
bge not_full_intensity
full_intensity:
li r6, 0x00FF
not_full_intensity:
stb [r4 + 0x002C], r6
blr
code_end:

.data 0x8026FC1C
.data 4
.data 0x4BD9BC51

.data 0
.data 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Blinking SD"
.meta description="Makes the Shifta\nand Deband status\nicons flicker when\nthey are about\nto run out"
# 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

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC

.data 0x8000B86C
.data 0x00000054
code_start:
mr r3, r0
andi. r0, r31, 2
beqlr
lwz r4, [r3 + 0x0028]
cmplwi r4, 0
beqlr
lwz r4, [r4]
cmplwi r4, 0
beqlr
mulli r0, r31, 12
add r5, r29, r0
lwz r6, [r5 + 0x025C]
cmplwi r6, 450
bge full_intensity
lbz r6, [r4 + 0x002C]
subi r6, r6, 0x0008
cmpwi r6, 0
bge not_full_intensity
full_intensity:
li r6, 0x00FF
not_full_intensity:
stb [r4 + 0x002C], r6
blr
code_end:

.data 0x8026DF94
.data 4
.data 0x4BD9D8D9

.data 0
.data 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Blinking SD"
.meta description="Makes the Shifta\nand Deband status\nicons flicker when\nthey are about\nto run out"
# 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

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC

.data 0x8000B86C
.data 0x00000054
code_start:
mr r3, r0
andi. r0, r31, 2
beqlr
lwz r4, [r3 + 0x0028]
cmplwi r4, 0
beqlr
lwz r4, [r4]
cmplwi r4, 0
beqlr
mulli r0, r31, 12
add r5, r29, r0
lwz r6, [r5 + 0x025C]
cmplwi r6, 450
bge full_intensity
lbz r6, [r4 + 0x002C]
subi r6, r6, 0x0008
cmpwi r6, 0
bge not_full_intensity
full_intensity:
li r6, 0x00FF
not_full_intensity:
stb [r4 + 0x002C], r6
blr
code_end:

.data 0x8026EC58
.data 4
.data 0x4BD9CC15

.data 0
.data 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Blinking SD"
.meta description="Makes the Shifta\nand Deband status\nicons flicker when\nthey are about\nto run out"
# 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

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC

.data 0x8000B86C
.data 0x00000054
code_start:
mr r3, r0
andi. r0, r31, 2
beqlr
lwz r4, [r3 + 0x0028]
cmplwi r4, 0
beqlr
lwz r4, [r4]
cmplwi r4, 0
beqlr
mulli r0, r31, 12
add r5, r29, r0
lwz r6, [r5 + 0x025C]
cmplwi r6, 450
bge full_intensity
lbz r6, [r4 + 0x002C]
subi r6, r6, 0x0008
cmpwi r6, 0
bge not_full_intensity
full_intensity:
li r6, 0x00FF
not_full_intensity:
stb [r4 + 0x002C], r6
blr
code_end:

.data 0x8026FCB4
.data 4
.data 0x4BD9BBB9

.data 0
.data 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.meta name="Blinking SD"
.meta description="Makes the Shifta\nand Deband status\nicons flicker when\nthey are about\nto run out"
# 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

entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC

.data 0x8000B86C
.data 0x00000054
code_start:
mr r3, r0
andi. r0, r31, 2
beqlr
lwz r4, [r3 + 0x0028]
cmplwi r4, 0
beqlr
lwz r4, [r4]
cmplwi r4, 0
beqlr
mulli r0, r31, 12
add r5, r29, r0
lwz r6, [r5 + 0x025C]
cmplwi r6, 450
bge full_intensity
lbz r6, [r4 + 0x002C]
subi r6, r6, 0x0008
cmpwi r6, 0
bge not_full_intensity
full_intensity:
li r6, 0x00FF
not_full_intensity:
stb [r4 + 0x002C], r6
blr
code_end:

.data 0x8026FA68
.data 4
.data 0x4BD9BE05

.data 0
.data 0
Loading

0 comments on commit b7293e7

Please sign in to comment.