Fetch `dwForceAttack` and `dwForceAttack2` offsets

This commit is contained in:
a2x 2023-10-11 13:25:12 +10:00
parent 143a32ffbc
commit 5aa6df73f8
5 changed files with 45 additions and 3 deletions

View File

@ -22,6 +22,40 @@
}
]
},
{
"name": "dwForceAttack",
"module": "client.dll",
"pattern": "48 8B 15 ? ? ? ? 48 8D 0D ? ? ? ? E9 BD 4F FD 00",
"operations": [
{
"type": "ripRelative"
},
{
"type": "dereference"
},
{
"type": "add",
"value": 440
}
]
},
{
"name": "dwForceAttack2",
"module": "client.dll",
"pattern": "48 8B 15 ? ? ? ? 48 8D 0D ? ? ? ? E9 BD 4F FD 00",
"operations": [
{
"type": "ripRelative"
},
{
"type": "dereference"
},
{
"type": "add",
"value": 584
}
]
},
{
"name": "dwForceBackward",
"module": "client.dll",

View File

@ -1,8 +1,10 @@
// Created using https://github.com/a2x/cs2-dumper
// 2023-10-10 02:56:33.655513200 UTC
// 2023-10-11 03:22:33.060043700 UTC
public static class client_dll {
public const nint dwEntityList = 0x178A808;
public const nint dwForceAttack = 0x1691C70;
public const nint dwForceAttack2 = 0x1691D00;
public const nint dwForceBackward = 0x1691F40;
public const nint dwForceCrouch = 0x1692210;
public const nint dwForceForward = 0x1691EB0;

View File

@ -3,10 +3,12 @@
#include <cstddef>
// Created using https://github.com/a2x/cs2-dumper
// 2023-10-10 02:56:33.654268700 UTC
// 2023-10-11 03:22:33.059568400 UTC
namespace client_dll {
constexpr std::ptrdiff_t dwEntityList = 0x178A808;
constexpr std::ptrdiff_t dwForceAttack = 0x1691C70;
constexpr std::ptrdiff_t dwForceAttack2 = 0x1691D00;
constexpr std::ptrdiff_t dwForceBackward = 0x1691F40;
constexpr std::ptrdiff_t dwForceCrouch = 0x1692210;
constexpr std::ptrdiff_t dwForceForward = 0x1691EB0;

View File

@ -1,6 +1,8 @@
{
"client_dll": {
"dwEntityList": 24684552,
"dwForceAttack": 23665776,
"dwForceAttack2": 23665920,
"dwForceBackward": 23666496,
"dwForceCrouch": 23667216,
"dwForceForward": 23666352,

View File

@ -1,10 +1,12 @@
#![allow(non_snake_case, non_upper_case_globals)]
// Created using https://github.com/a2x/cs2-dumper
// 2023-10-10 02:56:33.656895 UTC
// 2023-10-11 03:22:33.060775500 UTC
pub mod client_dll {
pub const dwEntityList: usize = 0x178A808;
pub const dwForceAttack: usize = 0x1691C70;
pub const dwForceAttack2: usize = 0x1691D00;
pub const dwForceBackward: usize = 0x1691F40;
pub const dwForceCrouch: usize = 0x1692210;
pub const dwForceForward: usize = 0x1691EB0;