Skip to content

Commit

Permalink
Enable unused console commands (#78)
Browse files Browse the repository at this point in the history
Enable unused console commands
  • Loading branch information
Hdt80bro authored May 14, 2024
1 parent acaa28b commit 9cb7b29
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ These don't matter except for other assembly patches
## Additions
These new features have been added in a backwards compatibile manner

- Enable unused console commands: ren_Steering, dbg_Ballistics, dbg_EfxBeams, dbg_Trail, dbg_CollisionBeam, dbg_Projectile
- hooks/EnableConsoleCommands.cpp
- Adds `GetHighlightCommand() - return table of command or nil` to UI (section/GetHighlightCommand.cpp)
- Adds new methods to the the `Projectile` class (section/ProjectileNewMethods.cpp):
- `Projectile:SetNewTargetGroundXYZ(x, y, z)`
Expand Down Expand Up @@ -204,4 +206,4 @@ These new features have been added in a backwards compatibile manner
- hooks/BuildUnit.cpp
- section/BuildUnit.cpp
- section/SelectUnit.cpp
- section/SimArmyCreate.cpp
- section/SimArmyCreate.cpp
13 changes: 13 additions & 0 deletions hooks/EnableConsoleCommands.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// these are the locations of the names of fully registered commands - they're null,
// so they don't work until we fill in the name
asm(R"(
.section h0; .set h0,0xE1DF0C; .string "ren_Steering"
.section h1; .set h1,0xE210E8; .string "dbg_Ballistics"
# just barely doesn't fit, slide up one into the empty description and update pointer
.section h2; .set h2,0xF59C88; .word 0xE23900 - 1
.section h3; .set h3,0xE23900 - 1; .string "dbg_EfxBeams"
#.section h4; .set h4,0xE23EC4; .string "dbg_Emitter" # actually unused by the engine
.section h5; .set h5,0xE26858; .string "dbg_Trail"
.section h6; .set h6,0xE2698C; .string "dbg_CollisionBeam"
.section h7; .set h7,0xE294E8; .string "dbg_Projectile"
)");

0 comments on commit 9cb7b29

Please sign in to comment.