Add pattern for dwWeaponC4

This commit is contained in:
a2x
2024-04-10 11:20:31 +10:00
parent 9b8bd68308
commit 80334adade
6 changed files with 17 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ macro_rules! pattern_map {
pattern_map! {
client => {
"dwCSGOInput" => pattern!("4c8b0d${*{'}} 488d045b") => Some(|view, map, rva| {
"dwCSGOInput" => pattern!("488905${'} 488d05${} 48890d${} 488905${} 488d05") => Some(|view, map, rva| {
let mut save = [0; 2];
if view.scanner().finds_code(pattern!("498d81u4 4803c7"), &mut save) {
@@ -92,6 +92,7 @@ pattern_map! {
"dwSensitivity_sensitivity" => pattern!("ff50u1 4c8bc6 488d55? 488bcf e8${} 84c0 0f85${} 4c8d45? 8bd3 488bcf e8${} e9${} f30f1006") => None,
"dwViewMatrix" => pattern!("488d0d${'} 48c1e006") => None,
"dwViewRender" => pattern!("488905${'} 488bc8 4885c0") => None,
"dwWeaponC4" => pattern!("488b15${'} ffc0 8905${} 488bc7") => None,
},
engine2 => {
"dwBuildNumber" => pattern!("8905${'} 488d0d${} ff15${} e9") => None,

View File

@@ -93,7 +93,12 @@ fn read_class_binding(
let base_class = ptr.read(process).ok()?;
let parent_class = base_class.prev.read(process).ok()?;
let module_name = parent_class.module_name.read_string(process).ok()?.to_string();
let module_name = parent_class
.module_name
.read_string(process)
.ok()?
.to_string();
let name = parent_class.name.read_string(process).ok()?.to_string();
Some(Box::new(Class {