Skip to content

Commit

Permalink
Enable class 4 attach points (#80)
Browse files Browse the repository at this point in the history
* Enable class 4 attach points

* add nop
  • Loading branch information
Hdt80bro authored Jul 24, 2024
1 parent 010a5e5 commit db3cf6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ These don't matter except for other assembly patches
- hooks/aiinitattack.cpp

## Bugs
- Enable Class 4 attach points ("AttachPoint_Spr" bones)
- hooks/Class4AttachSize.cpp
- Remove lingering transport load factor calcuation at aircraft initialization
- hooks/RemoveTransportLoadFactor.cpp
- Fix `RolloverInfo` returning integer economy values.
Expand Down
6 changes: 6 additions & 0 deletions hooks/Class4AttachSize.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
asm(
// Moho::CAiTransportImpl::"GetAttachPointsFor"+0xAA (switch case Moho::ETransportClass::TRANSPORTCLASS_4)
".section h0; .set h0,0x5E6BDA;"
"jmp .+0x1F; nop;" // add break to case so it doesn't fall-through and get overriden by TRANSPORTCLASS_SPECIAL
// by utilizing output assignment of case TRANSPORTCLASS_3/TRANSPORTCLASS_SPECIAL to make room for the jump
);

0 comments on commit db3cf6b

Please sign in to comment.