mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-04-04 08:35:34 +08:00
Updated local player signature
This commit is contained in:
parent
913252320e
commit
51b639b7c9
@ -1,7 +1,7 @@
|
||||
public static class client_dll {
|
||||
public const ulong entity_list = 0x1635870;
|
||||
public const ulong global_vars = 0x157a6b8;
|
||||
public const ulong local_player_controller = 0x1725e60;
|
||||
public const ulong local_player_controller = 0x16875b0;
|
||||
public const ulong view_angles = 0x1785870;
|
||||
public const ulong view_matrix = 0x1726a20;
|
||||
}
|
@ -5,7 +5,7 @@
|
||||
namespace client_dll {
|
||||
constexpr std::ptrdiff_t entity_list = 0x1635870;
|
||||
constexpr std::ptrdiff_t global_vars = 0x157a6b8;
|
||||
constexpr std::ptrdiff_t local_player_controller = 0x1725e60;
|
||||
constexpr std::ptrdiff_t local_player_controller = 0x16875b0;
|
||||
constexpr std::ptrdiff_t view_angles = 0x1785870;
|
||||
constexpr std::ptrdiff_t view_matrix = 0x1726a20;
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
"client_dll": {
|
||||
"entity_list": 23287920,
|
||||
"global_vars": 22521528,
|
||||
"local_player_controller": 24272480,
|
||||
"local_player_controller": 23623088,
|
||||
"view_angles": 24664176,
|
||||
"view_matrix": 24275488
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
pub mod client_dll {
|
||||
pub const entity_list: usize = 0x1635870;
|
||||
pub const global_vars: usize = 0x157a6b8;
|
||||
pub const local_player_controller: usize = 0x1725e60;
|
||||
pub const local_player_controller: usize = 0x16875b0;
|
||||
pub const view_angles: usize = 0x1785870;
|
||||
pub const view_matrix: usize = 0x1726a20;
|
||||
}
|
@ -84,7 +84,7 @@ std::optional<std::uint64_t> get_global_vars() noexcept {
|
||||
}
|
||||
|
||||
std::optional<std::uint64_t> get_local_player() noexcept {
|
||||
std::optional<std::uint64_t> address = process::find_pattern("client.dll", "48 8B 0D ? ? ? ? F2 0F 11 44 24 ? F2 41 0F 10 00");
|
||||
std::optional<std::uint64_t> address = process::find_pattern("client.dll", "48 8B 05 ? ? ? ? 48 85 C0 74 4F");
|
||||
|
||||
if (!address.has_value())
|
||||
return std::nullopt;
|
||||
@ -94,7 +94,7 @@ std::optional<std::uint64_t> get_local_player() noexcept {
|
||||
if (!address.has_value())
|
||||
return std::nullopt;
|
||||
|
||||
return process::read_memory<std::uint64_t>(address.value()) + 0x50;
|
||||
return address.value();
|
||||
}
|
||||
|
||||
std::optional<std::uint64_t> get_view_angles() noexcept {
|
||||
@ -145,6 +145,8 @@ void dump_schema_classes() {
|
||||
if (declared_class == nullptr)
|
||||
continue;
|
||||
|
||||
spdlog::info("[{}] @ {:#x}", declared_class->get_class_name(), reinterpret_cast<std::uint64_t>(declared_class));
|
||||
|
||||
const sdk::CSchemaClassInfo* class_info = type_scope->find_declared_class(declared_class->get_class_name());
|
||||
|
||||
if (class_info == nullptr)
|
||||
@ -154,6 +156,8 @@ void dump_schema_classes() {
|
||||
if (field == nullptr)
|
||||
continue;
|
||||
|
||||
spdlog::info(" [{}] = {:#x}", field->get_name(), field->get_offset());
|
||||
|
||||
entries[declared_class->get_class_name()].emplace_back(field->get_name(), field->get_offset());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user