Fix `dwForceAttack` and `dwForceAttack2` patterns

This commit is contained in:
a2x 2023-12-15 01:23:32 +10:00
parent a69276402b
commit 8aa2b8400c
8 changed files with 20 additions and 20 deletions

View File

@ -25,7 +25,7 @@
{
"name": "dwForceAttack",
"module": "client.dll",
"pattern": "48 8D 0D ? ? ? ? E9 44 42 B4 FF",
"pattern": "48 8D 0D ? ? ? ? E9 C4 42 B4 FF",
"operations": [
{
"type": "rip"
@ -39,7 +39,7 @@
{
"name": "dwForceAttack2",
"module": "client.dll",
"pattern": "48 8D 0D ? ? ? ? E9 54 42 B4 FF",
"pattern": "48 8D 0D ? ? ? ? E9 D4 42 B4 FF",
"operations": [
{
"type": "rip"

View File

@ -1,12 +1,12 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Thu, 14 Dec 2023 11:58:28 +0000
* Thu, 14 Dec 2023 15:21:21 +0000
*/
public static class client_dll { // client.dll
public const nint dwEntityList = 0x17C18E0;
public const nint dwForceAttack = 0x16C2190;
public const nint dwForceAttack2 = 0x16C2340;
public const nint dwForceAttack = 0x16C1E30;
public const nint dwForceAttack2 = 0x16C1EC0;
public const nint dwForceBackward = 0x16C2100;
public const nint dwForceCrouch = 0x16C23D0;
public const nint dwForceForward = 0x16C2070;

View File

@ -1,6 +1,6 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Thu, 14 Dec 2023 11:58:28 +0000
* Thu, 14 Dec 2023 15:21:21 +0000
*/
#pragma once
@ -9,8 +9,8 @@
namespace client_dll { // client.dll
constexpr std::ptrdiff_t dwEntityList = 0x17C18E0;
constexpr std::ptrdiff_t dwForceAttack = 0x16C2190;
constexpr std::ptrdiff_t dwForceAttack2 = 0x16C2340;
constexpr std::ptrdiff_t dwForceAttack = 0x16C1E30;
constexpr std::ptrdiff_t dwForceAttack2 = 0x16C1EC0;
constexpr std::ptrdiff_t dwForceBackward = 0x16C2100;
constexpr std::ptrdiff_t dwForceCrouch = 0x16C23D0;
constexpr std::ptrdiff_t dwForceForward = 0x16C2070;

View File

@ -6,11 +6,11 @@
"comment": null
},
"dwForceAttack": {
"value": 23863696,
"value": 23862832,
"comment": null
},
"dwForceAttack2": {
"value": 23864128,
"value": 23862976,
"comment": null
},
"dwForceBackward": {

View File

@ -1,12 +1,12 @@
'''
Created using https://github.com/a2x/cs2-dumper
Thu, 14 Dec 2023 11:58:28 +0000
Thu, 14 Dec 2023 15:21:21 +0000
'''
class client_dll: # client.dll
dwEntityList = 0x17C18E0
dwForceAttack = 0x16C2190
dwForceAttack2 = 0x16C2340
dwForceAttack = 0x16C1E30
dwForceAttack2 = 0x16C1EC0
dwForceBackward = 0x16C2100
dwForceCrouch = 0x16C23D0
dwForceForward = 0x16C2070

View File

@ -1,14 +1,14 @@
/*
* Created using https://github.com/a2x/cs2-dumper
* Thu, 14 Dec 2023 11:58:28 +0000
* Thu, 14 Dec 2023 15:21:21 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]
pub mod client_dll { // client.dll
pub const dwEntityList: usize = 0x17C18E0;
pub const dwForceAttack: usize = 0x16C2190;
pub const dwForceAttack2: usize = 0x16C2340;
pub const dwForceAttack: usize = 0x16C1E30;
pub const dwForceAttack2: usize = 0x16C1EC0;
pub const dwForceBackward: usize = 0x16C2100;
pub const dwForceCrouch: usize = 0x16C23D0;
pub const dwForceForward: usize = 0x16C2070;

View File

@ -1,8 +1,8 @@
---
client_dll: # client.dll
dwEntityList: 24910048
dwForceAttack: 23863696
dwForceAttack2: 23864128
dwForceAttack: 23862832
dwForceAttack2: 23862976
dwForceBackward: 23863552
dwForceCrouch: 23864272
dwForceForward: 23863408

View File

@ -235,7 +235,7 @@ mod tests {
.expect("Failed to find client.dll")
.base();
const BUTTONS: [&str; 8] = [
const FORCE_BUTTONS: [&str; 8] = [
"dwForceAttack",
"dwForceAttack2",
"dwForceBackward",
@ -257,7 +257,7 @@ mod tests {
// Sleep for a second so we're able to test.
sleep(Duration::from_secs(1));
for button in &BUTTONS {
for button in &FORCE_BUTTONS {
let offset = get_offset_value("client.dll", button)
.expect(&format!("Failed to find {} offset", button));