-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNETPLAY.txt
More file actions
executable file
·3330 lines (3015 loc) · 86.6 KB
/
NETPLAY.txt
File metadata and controls
executable file
·3330 lines (3015 loc) · 86.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
############################################################################
# Project+ RSBE01.txt #
# #
# Requires GCTRealMate and the source folder provided to assemble the GCT! #
# #
# GCTconvert codes are compatible, if you want to add your own codes, go #
# into Source/Extra/More.asm to add additional codes! #
# If you wish to keep your new codes organized, you can also summon #
# separate text files by using .include Source/<filename> within more.asm, #
# or simply add them to there, directly. To disable one, simply place an #
# exclamation point in front of the name of that code! Enjoy Project+!! #
# #
# NOTE: This file is very close to its limit! Adding codes to BOOST.txt is #
# recommended to not have the build fail to load on console! #
# #
############################################################################
#############################################################################
###################### Backend Codes ######################
#############################################################################
#############################################################################
AXNextFrame -> VBI Hook Switch After Strap Screen v1.1 [Magus, Sammi-Husky]
#############################################################################
* 20200984 4BE00F24
* 20497ED0 00000001
CODE @ $80001198
{
addi r6, r7, 0x4C
mr r3, r7
addi r4, r7, 0x34
addi r5, r7, 0x38
}
address $80023D5C @ $80002778
op b -0x1E8184 @ $801E9A2C
op blr @ $80200984
PULSE
{
lis r3,0x8020
ori r3,r3,0x0984
icbi r0,r3
lis r3,0x801E
ori r3,r3,0x9A2C
icbi r0,r3
isync
blr
}
* E2000002 00000000
#############################################################################
Reset multipac stage lock status between Classic & All-Star matches [wiiztec]
#############################################################################
HOOK @ $80044A34
{
lwz r4, 0x8(r3)
cmpwi r8, 0x1
bne- %END%
lis r12, 0x8059
stw r15, -0x7D08(r12)
}
###########################################################
Stock/Frame Control not disabled in 300% Mode 1.1 [wiiztec]
###########################################################
op li r0, 0 @ $806A5C94
op NOP @ $806844DC
####################################
Special Mode flags clear [wiiztec]
####################################
* 2156369C 41517A00
* 42000000 90000000
* 0217F378 00030000
* E0000000 80008000
###############################
Reflect is Bunny 1.1d [wiiztec]
###############################
HOOK @ $806DF23C
{
lbz r8, 0x1C(r26)
cmpwi r8, 0x2
bne- %END%
li r8, 0x0
}
HOOK @ $80946954
{
lbz r0, 28(r31)
lis r12, 0x9017
ori r12, r12, 0xF37C
lbz r12, 0(r12)
cmpwi r12, 0x2
bne- %END%
mr r11, r0
addi r11, r11, 0x8
mr r0, r11
}
#################################################
Poke Balls use Normal Item Limit [standardtoaster]
#################################################
op NOP @ $809B0AC0
#######################################################
!Increase Pokemon Queue Size to Its Max (12) [Kapedani]
#######################################################
#Currently disabled until memory can be moved to a different location.
op cmpwi r3, 12 @ $809afd74
op cmpwi r3, 12 @ $809ad73c
###############################################
Explodey Items Use Normal Item Limit [Kapedani]
###############################################
op li r3, 1 @ $809b0ec8
############################################
Party Balls Use Normal Item Limit [Kapedani]
############################################
op li r3, 1 @ $809b0e5c
############################################
Bunny Hoods Use Normal Item Limit [Kapedani]
############################################
op li r3, 1 @ $809b0e2c
#############################################
!Smash Balls use Normal Item Limit [Kapedani]
#############################################
#(Currently disabled) Not recommended for normal use since vanilla behvaviour makes other players Final Smash unload upon a character receiving their Final Smash
op li r3, 1 @ $809b0c20
op li r3, 1 @ $809b0c40
######################################################
!Assist Trophy Stands Use Normal Item Limit [Kapedani]
######################################################
#Currently disabled for thematic reasons.
op li r3, 1 @ $809b0b3c
###################################################################
Team Healer's slot spawns items outside of team battles [DukeItOut]
###################################################################
op NOP @ $80055B68
##################################################
Memory Extention for FighterXResource2 [Dantarion]
##################################################
int 0x91E80 @ $80421B54
int 0x91E80 @ $80421B74
int 0x91E80 @ $80421B94
int 0x91E80 @ $80421BB4
int 0x91E80 @ $80421E1C
int 0x91E80 @ $80421E3C
int 0x91E80 @ $80421EBC
int 0x91E80 @ $80421EDC
##############################
Stage Choice Random Fix [ds22]
##############################
op bge- 0x14C @ $80055444
#######################################
Ragequit Accelerator [InternetExplorer]
#######################################
op NOP @ $800F15D8
###########################################################################################################
Sudden Death Port Fix (Requires Analog C-Stick, L R, & Light-Shield Button Stored as Variables v2.1) [ds22]
###########################################################################################################
op lwz r0, 0x44(r3) @ $8081AD08
op cmplwi r0, 0 @ $8081AD0C
op beq- 0x30 @ $8081AD10
######################################################
1 Player Matches in Time Mode only [InternetExplorer]
######################################################
* C268D420 00000007
* 2C060000 4181000C
* 39000001 48000020
* 2C060002 40800014
* 3D009017 6108F360
* 89080002 48000008
* 39000000 2C080000
* 60000000 00000000
* 0468D424 41820024
############################
1 Team Matches [spunit262]
############################
op li r3, 0 @ $8068D534
#####################################
Online Handicap Disable [spunit262]
#####################################
op nop @ $806F3DA4
#####################################
Training Room Item Fix [ds22]
#####################################
op nop @ $806D1704
################
Infinite Replays
################
op nop @ $800E5DE8
op nop @ $80953184
op nop @ $80953224
###################################################
Allow Pausing When Set to Off v3 [standardtoaster]
###################################################
HOOK @ $800505C8
{
mfcr r12
lis r4, 0x8058; ori r4, r4, 0x4084
cmpwi r3, 0x0; bne- loc_0x18
li r3, 0x2
loc_0x18:
stw r3, 0(r4)
li r4, 0x8
mtcr r12
}
##################################################
Match Loss Clears Pause Address [standardtoaster]
##################################################
HOOK @ $808363AC
{
lis r4, 0x8058
ori r4, r4, 0x4084
li r12, 0x0
stw r12, 0(r4)
li r4, 0x110
}
#################################################
Match Win Clears Pause Address [standardtoaster]
#################################################
HOOK @ $8083634C
{
lis r10, 0x8058
ori r10, r10, 0x4084
li r4, 0x0
stw r4, 0(r10)
mr r5, r31
}
#######################################################################
Pause Set to Off -> Hold Start to Pause v3 [standardtoaster, DukeItOut]
#
# v3: Made hold pause more stable by checking the pause status directly
#######################################################################
HOOK @ $801E6D24
{
lis r11, 0x8058
ori r11, r11, 0x4080
lwz r12, 4(r11)
cmpwi r12, 0x2 # Todo: Find custom code setting 80584084 and make it just read menu settings
bne- Finish
lwz r12, -0x4350(r13)# \
lwz r12, 0x18(r12) # | Get pause status
lwz r12, 0x3C(r12) # /
cmpwi r12, 1 # If paused, do not rely on hold status. We want to unpause normally!
beq- Clear #
rlwinm. r12, r0, 0, 3, 3
beq- Clear
lwzx r12, r11, r4 # \
cmpwi r12, 50 # | Pause hold timer is 50 frames. If held for that much,
bge- Finish # / THEN act like a normal pause.
addi r12, r12, 0x1 # \ Increment hold timer
stwx r12, r11, r4 # /
lis r12, 0x1000 # \ Filter out Start/Pause button
sub r0, r0, r12 # / Kind of a risky way to do it but probably safe in this context.
b Finish
Clear:
li r12, 0x0 # Clear hold timer
stwx r12, r11, r4 #
Finish:
stw r0, 0(r30) # Original operation
}
#############################################
Allow 2x Speed Setting in Training [Magus]
#############################################
* 041058C8 2C1E0006
* 041058E4 3BC00005
* 049629E8 40800008
* C29629F4 00000002
* 3860005A 41820008
* 38600078 00000000
#########################
Unrestricted Pause Camera
#########################
op blr @ $800A7D60
op li r4, 1 @ $80109D88
##########################
Unrestricted Replay Camera
##########################
op NOP @ $8009E934
op NOP @ $8009E93C
op fmr f1, f3 @ $8009E9AC
op fmr f3, f0 @ $8009E9B8
op fmr f0, f1 @ $8009E9BC
op fmr f0, f3 @ $8009E9C8
########################################################
Default Settings Modifier [Igglyboo, Brkirch, and FMK]
########################################################
* 24494A98 80000000
* 20523300 00000000
* 04523300 DEADBEEF
* 42000000 90000000
* 0417F360 00000100
* 0417F364 04000A00
* 0417F368 08010100
* 0417F36C 00000000
* E0000000 80008000
#################################################
[Legacy TE] Disable Challenger Approaches [ds22]
#################################################
op stw r24, 8(r15) @ $806F5D58
###################################################################
[Legacy TE] CPUs can attack each other in Training Mode [Fracture]
###################################################################
HOOK @ $806F1984
{
lbz r3, 0xA(r29);
ori r3, r3, 1
stb r3, 0xA(r29);
}
################################################################
[Legacy TE] Set the number of CPUs to 0 in Training Mode [Sarrg]
################################################################
op li r31, 0 @ $80105AC8
op cmpwi r31, 0 @ $80105AD8
###############################################
[Legacy TE] Target Smash levels fix [DukeItOut]
###############################################
HOOK @ $8010F984
{
cmplwi r3, 0x33
ble+ multiplayer
cmplwi r3, 0x39
blt- singleplayer
multiplayer:
li r29, 0x0 //only forces reset of stages for stable endless friendlies
stw r29, 0(r4) //if actually a multiplayer-stage by design
singleplayer:
cmpwi r6, 0x0
}
##############################################################################
[Project+] Load Common2.pac from the SD card [DukeItOut, P+ paths by waffeln]
##############################################################################
* C201BF2C 00000010
* 80630000 48000005
* 7C8802A6 3884005F
* 7C6C1B78 3CA0803F
* 60A5A3FC 7CA903A6
* 4E800421 2C030000
* 7D836378 40A20050
* 3884FFDE 3CA0803F
* 60A5A280 7CA903A6
* 4E800421 3C808063
* 3CA08001 60A5BF2C
* 90850000 48000028
* 73643A2F 502B4578
* 2F2E2F2E 2F70662F
* 73797374 656D2F63
* 6F6D6D6F 6E322E70
* 61630000 00000000
############################################################
[Legacy TE] Always use PACs instead of PCS files [DukeItOut]
############################################################
op NOP @ $8084CB40
##########################################################################################################################
[Legacy TE] Display Stack Trace, Instruction, and Address Upon Crashing [UnclePunch, Fracture] (internal crash fix by Eon)
##########################################################################################################################
HOOK @ $801D84C8
{
mflr r0
stw r0, 4(r1)
stwu r1, -1280(r1)
addi r29, r1, 0x8
mr r3, r29
addi r4, r28, 0x174
crclr 6, 6
lis r12, 0x803F
ori r12, r12, 0x89FC
mtctr r12
bctrl
add r29, r29, r3
lwz r25, 4(r30)
li r26, 0x0
b checkValidPointer
printStackTrace:
loc_0x3C:
lwz r6, 0(r25)
mr r5, r25
lwz r7, 4(r25)
addi r4, r28, 0x19C
mr r3, r29
crclr 6, 6
lis r12, 0x803F
ori r12, r12, 0x89FC
mtctr r12
bctrl
add r29, r29, r3
lwz r25, 0(r25)
checkValidPointer:
lis r0, 0x8000
cmplw r25, r0
blt printInstructionCrash
lis r0, 0x8180
cmplw r25, r0
blt cont
lis r0, 0x9000
cmplw r25, r0
blt printInstructionCrash
lis r0, 0x9400
cmplw r25, r0
bge printInstructionCrash
cont:
#check Has Printed 6 lines
cmplwi r26, 6
addi r26, r26, 0x1
blt+ printStackTrace
printInstructionCrash:
mr r3, r29
lis r4, 0x8046
ori r4, r4, 0x77D8
lwz r5, 408(r30)
word 0x7CD302A6 #`mfdar r6` not supported by gctrm
lis r12, 0x803F
ori r12, r12, 0x89FC
mtctr r12
bctrl
subi r3, r13, 0x592C
subi r4, r13, 0x5924
addi r5, r1, 0x8
lis r12, 0x801D
ori r12, r12, 0xB7E8
mtctr r12
bctrl
}
op li r7, 0 @ $801dbf60
op li r8, 0 @ $801dbf68
##########################################################################################################
Effect.pac Roster Expansion System (RSBE.Ver) V2 (Costume-Specific Etc File Support) [JOJI, DukeItOut]
##########################################################################################################
* E0000000 80008000
* 0405EAD0 3800000B
* 04451A88 8059DAB8
* 04451A8C 80452C54
* 04451A90 80452C64
* 04416F7C 80416F70
* 06416F60 00000006
* 63757374 6F6D0000
* C205EFCC 0000001F
* 3BFF0004 281B0137
* 418000E8 3FE08041
* 3BFF6F7C 281B02B7
* 41820048 281B0277
* 41820034 281B0237
* 41820020 281B0137
* 40820058 389FFFE4
* 80640000 907FFFF4
* A0640004 48000034
* 3C808059 6084D734
* 48000018 3C808059
* 6084D6F4 4800000C
* 3C808059 6084D638
* 80640000 907FFFF4
* A0640004 60630058
* B07FFFF8 38000000
* 901FFFFC 48000010
* 809FFFFC 38840001
* 909FFFFC 889FFFFF
* 2C1B0237 4180001C
* 3860000A 7C041840
* 41800010 38630010
* 38840006 4BFFFFF0
* 7C802378 7004000F
* 2804000A 38840030
* 41800008 38840007
* 989FFFFB 700400F0
* 5484E13E 2804000A
* 38840030 41800008
* 38840007 989FFFFA
* 60000000 00000000
* 0405EFD0 2C1B02F7
* 0405F01C 2C0302F7
* 0405F0A8 2C0302F7
* 04061200 28040A8D
* C2061218 00000007
* 7C84482E 28150087
* 4180002C 38800028
* 2815008D 41800020
* 38800137 38D5FF73
* 2806000A 41800010
* 38C6FFF6 38840001
* 4BFFFFF0 00000000
* 06416F80 00000011
* 54657852 6F795377
* 6F726454 72616365
* 30000000 00000000
* 06416FA0 00000009
* 54657843 7573746F
* 6D000000 00000000
* 06416FAB 00000006
* 54726163 65300000
* C2061278 00000015
* 7C84482E 28150087
* 4180009C 3C808041
* 38846F80 90640014
* 38B5FF79 38650030
* 98640011 80640014
* 2815008D 41800078
* 38B5FF73 90C40018
* 90E40034 38840020
* 38C00000 38600000
* 2805000A 41800010
* 38A5FFF6 38C60001
* 4BFFFFF0 70C7000F
* 2807000A 41800008
* 38E70007 38E70030
* 98E4000A 70C700F0
* 54E7E13E 2807000A
* 41800008 38E70007
* 38E70030 98E40009
* 38650030 98640011
* 8064FFF4 80C4FFF8
* 80E40014 00000000
* E0000000 80008000
#######################################################################
[Project+] Turbo item does not fire curry shots in any mode [DukeItOut]
#######################################################################
half 0x4800 @ $8083A0A0
####################################################
[Project+] Stickers do not randomly drop [DukeItOut]
####################################################
op b 0x140 @ $809B4BAC
##########################################################################################################
[Project+] Item Frequency None if all items turned off and Items spoofed off if item frequency None [Eon]
##########################################################################################################
#If all items turned off, save Item frequency as None
HOOK @ $806aa9bc
{
cmpwi r27, 0
bne end
cmpw r28, r0
bne end
li r29, 0
end:
stb r29, 0(r3)
}
#If Item Frequency None, pretend all items are turned off
#ScMelee
HOOK @ $806dcf58
{
lbz r0, 0x0(r25)
cmpwi r0, 0
bne %end%
stw r0, 0x34(r31)
stw r0, 0x30(r31)
}
#SpMelee
HOOK @ $806def74
{
lbz r0, 0x0(r29)
cmpwi r0, 0
bne %end%
stw r0, 0x34(r27)
stw r0, 0x30(r27)
}
#####################################################
Subspace uses same Internal Constants as Versus [Eon]
#####################################################
word 0x0 @ $80B868D8
##############################################
Preloaded Texture memory leak band-aid [Eon]
##############################################
HOOK @ $801f2f40
{
subi r4, r13, 0x5970
cmpwi r3, 0
bne %end%
lis r12, 0x801f
ori r12, r12, 0x2f60
mtctr r12
bctr
}
HOOK @ $801f3058
{
mr r31, r3
cmpwi r3, 0
bne %end%
lis r12, 0x801f
ori r12, r12, 0x30a8
mtctr r12
bctr
}
###################################################################
[Project+] Pitfall effect can have no-bury with trip rate 2.0 [Eon]
###################################################################
HOOK @ $8076CE84
{
lwz r24, 0x60(r19) #load hitbox trip rate
lis r25, 0x4000 #2.0 float
cmpw r24, r25 #if trip rate = 2.0, dont burry.
bne buryNormal
dontBury:
#pretends to be angle 0, keeps them grounded no matter the attack strength.
li r24, 0
li r25, 0
lis r12, 0x8076
ori r12, r12, 0xd0b0
mtctr r12
bctr
buryNormal:
li 24, 6
}
######################################
Ground Below on IC-Basic[20027] [Eon]
######################################
op cmplwi r0, 27 @ $807966b0
.BA<-CustomCommand
* 42100000 00000008 #BA+=8 to abuse Pulse command as an easy way to write a block of code
.BA->$80AF2888 #IC-Basic[20027]
.RESET
.GOTO->end
CustomCommand:
PULSE
{
lwz r3, 0xD8(r4) #r4 main index
li r4, 8
li r5, 0
lwz r3, 0x10(r3)
lwz r12, 0x8(r3)
lwz r12, 0x100(r12)
mtctr r12
bctrl
lis r12, 0x8079
ori r12, r12, 0x6a20
mtctr r12
bctr
}
end:
.include Source/ProjectM/ButtonPresses.asm
.include Source/ProjectM/CloneEngine.asm
.include Source/ProjectM/CustomAI.asm
.include Source/ProjectM/Events.asm
.include Source/ProjectM/Handicap.asm
.include Source/ProjectM/SpecialModes/AllStarVs.asm
.include Source/ProjectM/SpecialModes/BombRain.asm
.include Source/ProjectM/SpecialModes/RandomElement.asm
.include Source/ProjectM/SpecialModes/Rules.asm
.include Source/ProjectM/SpecialModes/Stamina.asm
.include Source/ProjectM/SpecialModes/Turbo.asm
.include Source/ProjectM/SpecialModes/Wild.asm
.include Source/ProjectM/SpecialModes/Zero2Death.asm
.include Source/LegacyTE/ASLHelper.asm
.include Source/LegacyTE/CPU.asm
.include Source/LegacyTE/LoadFlags.asm
.include Source/LegacyTE/UnboundedTeamEngine.asm
.include Source/Project+/Articles.asm
.include Source/Project+/Boss.asm
.include Source/Netplay/Net-CodeMenu.asm
.include Source/Project+/CompressPAC.asm
.include Source/Project+/FilePatchCode.asm
.include Source/Project+/IndependentSub.asm
.include Source/Project+/Memory.asm
.include Source/Project+/TrainingMode.asm
.include Source/Project+/VictoryCamera.asm
#############################################################################
###################### Engine Codes #######################
#############################################################################
#############################################
Shorthop Footstool Multiplier (0.75x) [Magus]
#############################################
HOOK @ $8086B830
{
stfd f0, 24(r2)
lis r5, 0x3F40
stw r5, 16(r2)
lfs f0, 16(r2)
fmuls f1, f1, f0
stfs f1, 36(r1)
lfd f0, 24(r2)
}
##########################################
Meteor Cancel Delay Subtractor (-4) [ds22]
##########################################
HOOK @ $80856238
{
lis r10, 0x4080
stw r10, 0x70(r25)
lfs f1, 0x70(r25)
fsubs f0, f0, f1
stfs f0, 0x6C(r25)
}
##########################################################
Custom Requirements v1.3 (ProjectM) [Magus, Sammi-Husky]
##########################################################
* C27854B0 0000003B
* DBC20010 DBE20018
* 38600001 2C040053
* 408001BC 815C0068
* 812A0074 810A0078
* 80FC0070 80E70020
* 80E7000C 80E70134
* 2C04004D 41820030
* 2C04004E 41820070
* 2C04004F 41820080
* 2C040050 4182008C
* 2C040051 41820094
* 2C040052 41820098
* 48000168 88EA00AE
* 88CA00B0 2C070002
* 4180000C 2C060002
* 40A00150 C3CA0038
* C3EA003C EFDE07B2
* EFFF07F2 EFDEF82A
* 3CE080B8 60E78350
* C3E70000 EFFF07F2
* FC1EF840 40800128
* 48000120 7D264078
* 54C60739 40820118
* 2C070001 41820110
* 48000108 55260739
* 40820104 2C070001
* 408000FC 480000F4
* 7D274078 54E604EB
* 408200EC 480000E4
* 552604EB 408200E0
* 480000D8 806600D8
* 8063001C 81830000
* 818C00F8 7D8903A6
* 4E800421 7C7C1B78
* 2C1C0000 418200B4
* 7F64DB78 38610450
* 3D808078 618C2320
* 7D8903A6 4E800421
* 81810450 38610450
* 818C0014 7D8903A6
* 4E800421 2C030001
* 40820080 81810450
* 38610450 38800000
* 818C0010 7D8903A6
* 4E800421 38000000
* 90610038 9801003C
* 8001003C 90610320
* 90010324 88010324
* 28000001 4082000C
* 38000000 48000008
* A0030006 7F830038
* 7C0300D0 7C001B78
* 54030FFE 2C030001
* 40820020 A005000C
* 80C10524 80C600D8
* 80C60070 88C600A5
* 7C003000 41820008
* 38600000 CBC20010
* CBE20018 60000000
#SDI Input (4D), Any Shield Input (4E-4F), Any Taunt Input (50-51), Specific Hitbox Connects (52)
#Syntax is XXXXYYYY
#X = HitboxID
#Y = Hit Requirement
#############################################################
Bit Variables Beyond 255 and Negative Offset Variables [Magus]
#############################################################
* C27AC9E4 00000003
* 548C0211 5484027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27ACA04 00000003
* 54AC0211 54A5027E
* 41A20008 7CA500D0
* 60000000 00000000
* C27ACB78 00000003
* 54AC0211 54A5027E
* 41A20008 7CA500D0
* 60000000 00000000
* C27ACB98 00000003
* 54AC0211 54A5027E
* 41A20008 7CA500D0
* 60000000 00000000
* C27ACAA0 00000003
* 548C0211 5484027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27ACAC0 00000003
* 548C0211 5484027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27AD114 00000003
* 57CC0211 57C5027E
* 41A20008 7CA500D0
* 60000000 00000000
* C27AD15C 00000003
* 57CC0211 57C5027E
* 41A20008 7CA500D0
* 60000000 00000000
* C27ACBB8 00000003
* 548C0211 5484027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27ACBD8 00000003
* 548C0211 5484027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27ACCA0 00000003
* 548C0211 5484027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27ACCC0 00000003
* 548C0211 5484027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27AD528 00000003
* 57CC0211 57C4027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27AD570 00000003
* 57CC0211 57C4027E
* 41A20008 7C8400D0
* 60000000 00000000
* C27ACCEC 00000003
* 5480027E 7C002E70
* 548C0211 41A20008
* 7C0000D0 00000000
* 047ACCF8 60000000
* C27ACD20 00000003
* 5480027E 7C002E70
* 548C0211 41A20008
* 7C0000D0 00000000
* 047ACD2C 60000000
* C27ACD54 00000003
* 5480027E 7C002E70
* 548C0211 41A20008
* 7C0000D0 00000000
* 047ACD60 60000000
#############################################
Multiply Frame Speed Modifier Command [Magus]
#############################################
HOOK @ $80724820
{
cmpwi r31, 0x2
bne+ loc_0x10
lfs f1, 76(r24)
fmuls f30, f1, f30
loc_0x10:
fmr f1, f30
}
######################################
Shieldstun Modifier v2.0 [Magus, ds22]
######################################
HOOK @ $808753FC
{
stfd f31, 0x10(r2)
fsubs f31, f31, f1
lis r4, 0x4036; ori r4, r4, 0xDB70; stw r4, 0x20(r2) //0x4036D870 = 2.8571434
lfs f0, 0x20(r2); fmuls f31, f31, f0
lis r4, 0x408E; ori r4, r4, 0x6666; stw r4, 0x20(r2) //0x408E6666 = 4.45
lfs f0, 0x20(r2); fadds f31, f31, f0
lis r4, 0x3EE5; ori r4, r4, 0x1531; stw r4, 0x20(r2) //0x3EE51531 = 0.4474273
lfs f0, 0x20(r2); fmuls f31, f31, f0
lis r4, 0x4000; stw r4, 0x20(r2) //0x40000000 = 2.0
lfs f0, 0x20(r2); fadds f31, f31, f0
fctiwz f0, f31
stfd f0, 0x20(r2)
lwz r28, 0x24(r2)
lfd f31, 0x10(r2)
}
################################
Defender Shield Pushback [Magus]
################################
HOOK @ $808755AC
{
stfd f2, 0x10(r2)
stfd f3, 0x18(r2)
lis r10, 0x80B8
ori r10, r10, 0x8464
lfs f3, 8(r10); fdivs f2, f30, f3
lfs f3, 4(r10); fsubs f2, f2, f3
lfs f3, 0(r10); fdivs f2, f2, f3
lis r12, 0x3E8A; ori r12, r12, 0x3D71; stw r12, 32(r2)
lfs f3, 32(r2); fmuls f2, f2, f3
lis r12, 0x3F99; ori r12, r12, 0x999A; stw r12, 32(r2)
lfs f3, 32(r2); fadds f2, f2, f3
lfs f3, 8(r10); fmuls f2, f2, f3
lfs f3, -23460(r2); fcmpo cr0, f2, f3; ble+ loc_0x68
fmr f2, f3
loc_0x68:
fmuls f1, f2, f1
lfd f2, 0x10(r2)
lfd f3, 0x18(r2)
}
##########################################################################
Powershield Window Doesn't Decrement in Hitlag or 2x Rate in Guard [Magus]
##########################################################################
op b 0x20 @ $80875164
int 0x20000 @ $80FC2230
##############################################################
Disable Footstool During Paralyze [Dantarion, standardtoaster]
##############################################################
HOOK @ $8083D134
{
lwz r29, 20(r28)
lhz r29, 90(r29)
cmpwi r29, 0xA9 # If in the paralyzer subaction
bne+ fsOkay #
li r3, 0x1 # don't allow footstool.
fsOkay:
stb r0, 4(r27)
}
##########################################################
No Autosweetspot Ledges v1.1 [spunit262, Dantarion, Magus]
##########################################################
HOOK @ $807812B0
{
cmpwi r4, 0xA; bne+ loc_0x38
lwz r12, 60(r1)
lwz r11, 24(r12)
lfs f0, 16(r11)
lfs f1, 28(r11); fcmpo cr0, f0, f1; bge+ loc_0x34
fsubs f0, f1, f0
lfs f1, -27140(r2); fcmpo cr0, f0, f1; bge+ loc_0x38
nop
loc_0x34:
li r0, 0x0
loc_0x38:
rlwinm. r0, r0, 25, 31, 31
}
####################################################
No Air Dodge in tumble [spunit262, Phantom Wings]
####################################################
* C2781310 00000006
* 80980000 2C040021
* 40A20020 8097007C
* 80840034 2C040042