Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marioCST committed Nov 17, 2024
1 parent 5fc8219 commit 7e918a3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/sdk/common/world/actor/Mob.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ namespace SDK {
class Mob : public Actor {
public:
void setSprinting(bool b) {
memory::callVirtual<void>(this, SDK::mvGetOffset<0x96, 0x99, 0xAF, 0xFB, 0x115, 0x11C>(), b);
memory::callVirtual<void>(this, SDK::mvGetOffset<0x92, 0x96, 0x96, 0x99, 0xAF, 0xFB, 0x115, 0x11C>(), b);
}

int getItemUseDuration() {
return memory::callVirtual<int>(this, SDK::mvGetOffset<0x9F, 0xA2, 0xB9, 0x109, 0x12A, 0x12F>());
return memory::callVirtual<int>(this, SDK::mvGetOffset<0x9B, 0x9F, 0x9F, 0xA2, 0xB9, 0x109, 0x12A, 0x12F>());
}
};
}
2 changes: 1 addition & 1 deletion src/sdk/common/world/actor/player/Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ namespace SDK {
// @dump-wbds Player::getName, 3
MVCLASS_FIELD(std::string, playerName, 0xCB0, 0xCA0, 0xC88, 0x1D30, 0x1CB8, 0x1C78, 0x8C0, 0x2478); // xref: getName
// @dump-wbds ServerPlayer::sendNetworkPacket, 18
MVCLASS_FIELD(PacketSender*, packetSender, 0x8A0, 0x890, 0x890, 0xC48, 0xC70, 0xC70, 0x1020, 0x1438); // xref: Player::Player a3
MVCLASS_FIELD(PacketSender*, packetSender, 0x898, 0x890, 0x890, 0xC48, 0xC70, 0xC70, 0x1020, 0x1438); // xref: Player::Player a3
};
}
2 changes: 1 addition & 1 deletion src/sdk/common/world/level/Level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ std::vector<SDK::Actor*> SDK::Level::getRuntimeActorList() {

std::unordered_map<UUID, SDK::PlayerListEntry>* SDK::Level::getPlayerList() {
if (internalVers >= SDK::V1_21_40) {
return reinterpret_cast<std::unordered_map<UUID, SDK::PlayerListEntry>*>(reinterpret_cast<uintptr_t>(this) + 0xBF0);
return *reinterpret_cast<std::unordered_map<UUID, SDK::PlayerListEntry>**>(reinterpret_cast<uintptr_t>(this) + 0xBF0);
}

static int index = SDK::mvGetOffset<0x112, 0x111, 0x120, 0x120, 0x128, 0x137>();
Expand Down
6 changes: 3 additions & 3 deletions src/sdk/signature/storage_latest.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Signatures {
"48 8B 05 ? ? ? ? 4C 8B AD"_sig,
"UIFillColorMaterial"};
inline static SigImpl thirdPersonNametag{ [](memory::signature_store&, uintptr_t res) { return res; },
"0F 84 ? ? ? ? 49 8B D4 49 8B CD"_sig,
"0F 84 ? ? ? ? 49 8B 07 49 8B CF 48 8B 80 ? ? ? ? FF 15 ? ? ? ? 84 C0 0F 85 ? ? ? ? 41 8B 47"_sig,
"ThirdPersonNametag" };

};
Expand Down Expand Up @@ -99,7 +99,7 @@ class Signatures {
"LevelRenderer::renderLevel"};

inline static SigImpl Keyboard_feed{[](memory::signature_store&, uintptr_t res) { return res; },
"48 83 ec ? 0f b6 c1 4c 8d 05"_sig,
"48 83 EC ? ? ? C1 4C 8D 05"_sig,
"Keyboard::feed"};

// The signature is big but it hasn't died in a while soo
Expand Down Expand Up @@ -189,7 +189,7 @@ class Signatures {
"RakPeer::GetAveragePing"};

inline static SigImpl LocalPlayer_applyTurnDelta{[](memory::signature_store&, uintptr_t res) { return res; },
"48 89 74 24 ? 57 48 81 EC ? ? ? ? 48 8D 4A ? 48 8B F2"_sig,
"48 8B C4 48 89 58 ? 48 89 70 ? 48 89 78 ? 55 41 56 41 57 48 8D 68 ? 48 81 EC ? ? ? ? 0F 29 70 ? 0F 29 78 ? 44 0F 29 40 ? 44 0F 29 48 ? 44 0F 29 50 ? 48 8B 05"_sig,
"LocalPlayer::applyTurnDelta"};

// see what accesses things in moveinputhandler
Expand Down

0 comments on commit 7e918a3

Please sign in to comment.