Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 15 additions & 27 deletions spt/features/autojump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ namespace patterns
"BMS-Retail-3",
"55 8B EC 83 EC 0C 56 8B F1 8B ?? 04 80 ?? ?? ?? 00 00 00 74 0E 8B ?? 08 83 ?? 28 02 32 C0 5E 8B E5 5D C3",
"missinginfo1_6",
"55 8B EC 83 EC 1C 56 8B F1 8B 4E 04 80 B9 ?? ?? ?? ?? ?? 74 0E 8B 76 08 83 4E 28 02 32 C0 5E 8B E5");
"55 8B EC 83 EC ?? 56 8B F1 8B 4E 04 80 B9 ?? ?? ?? ?? ?? 74 ?? 8B ?? 08 83 ?? 28 02 32 C0 5E 8B E5");

PATTERNS(
FinishGravity,
"bms",
Expand Down Expand Up @@ -156,37 +157,24 @@ void AutojumpFeature::LoadFeature()
InitConcommandBase(_y_spt_autojump_ensure_legit);
JumpSignal.Works = true;
int ptnNumber = GetPatternIndex((void**)&ORIG_CheckJumpButton);
switch (ptnNumber)

if (utils::DoesGameLookLikeSteampipe() ||
utils::DoesGameLookLikeBMSRetail() ||
utils::GetBuildNumber() >= 5135)
{
case 0: // 5135
case 2: // 5339
case 3: // 2257546
case 4: // 2257546-hl1
case 9: // 6879
case 11: // te120
case 12: // BMS-Retail-3
off_mv_ptr = 2;
break;

case 1: // 4104
case 5: // 2707
case 6: // 2949
case 8: // 4044-episodic
case 10: // missinginfo1_4_7
off_mv_ptr = 1;
break;

case 7: // dmomm
off_player_ptr = 1;
}
else if (utils::DoesGameLookLikeDMoMM())
{
off_mv_ptr = 3;
break;
off_player_ptr = 4;
}
if (off_mv_ptr == 1)
off_player_ptr = 2;
else if (off_mv_ptr == 2)
off_player_ptr = 1;
else
// dmomm
off_player_ptr = 4;
{
off_mv_ptr = 1;
off_player_ptr = 2;
}

SptImGuiGroup::Cheats_Misc_Jumping.RegisterUserCallback(
[]()
Expand Down
4 changes: 3 additions & 1 deletion spt/features/generic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ namespace patterns
"dmomm",
"83 EC 0C 56 8B F1 80 BE ?? ?? ?? ?? 00 57 8B 7C 24 1C 75 ?? 80 7E ?? 00",
"2707",
"83 EC 18 56 8B F1 8A 46 ?? 84 C0 57");
"83 EC 18 56 8B F1 8A 46 ?? 84 C0 57",
"5288",
"55 8B EC 56 8B F1 80 BE ?? ?? ?? ?? 00 57 8B 7D ??");
PATTERNS(
CHudDamageIndicator__GetDamagePosition,
"5135",
Expand Down
4 changes: 3 additions & 1 deletion spt/features/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ namespace patterns
"7462488",
"55 8B EC 83 EC 2C 53 8B D9 8B 0D ?? ?? ?? ?? 56",
"4044",
"6A FF 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 64 89 25 ?? ?? ?? ?? 83 EC 1C 56 6A 04");
"6A FF 68 ?? ?? ?? ?? 64 A1 ?? ?? ?? ?? 50 64 89 25 ?? ?? ?? ?? 83 EC 1C 56 6A 04",
"5288",
"55 8B EC 83 EC 30 A1 ?? ?? ?? ?? 53 56 8B F1 33 C9");
PATTERNS(
CMatSystemSurface__StartDrawing,
"5135",
Expand Down