Compare commits

...

2 Commits

Author SHA1 Message Date
Albert24GG 0846602d63 Game update 13998 2024-03-17 00:09:52 +02:00
Albert24GG e50d781c0d Use separate structs for windows and linux 2024-03-17 00:09:13 +02:00
80 changed files with 218 additions and 193 deletions

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:40 +0000
* Sat, 16 Mar 2024 22:03:50 +0000
*/
public static class libanimationsystem_so { // libanimationsystem.so
@ -9,8 +9,8 @@ public static class libanimationsystem_so { // libanimationsystem.so
}
public static class libclient_so { // libclient.so
public const nint LegacyGameUI001 = 0xF1FD40;
public const nint Source2ClientUI001 = 0xEDE680;
public const nint LegacyGameUI001 = 0xF1FDB0;
public const nint Source2ClientUI001 = 0xEDE7C0;
public const nint Source2ClientPrediction001 = 0xDE3760;
public const nint ClientToolsInfo_001 = 0xD54560;
public const nint Source2Client002 = 0xD54220;

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:40 +0000
* Sat, 16 Mar 2024 22:03:50 +0000
*/
#pragma once
@ -13,8 +13,8 @@ namespace libanimationsystem_so { // libanimationsystem.so
}
namespace libclient_so { // libclient.so
constexpr std::ptrdiff_t LegacyGameUI001 = 0xF1FD40;
constexpr std::ptrdiff_t Source2ClientUI001 = 0xEDE680;
constexpr std::ptrdiff_t LegacyGameUI001 = 0xF1FDB0;
constexpr std::ptrdiff_t Source2ClientUI001 = 0xEDE7C0;
constexpr std::ptrdiff_t Source2ClientPrediction001 = 0xDE3760;
constexpr std::ptrdiff_t ClientToolsInfo_001 = 0xD54560;
constexpr std::ptrdiff_t Source2Client002 = 0xD54220;

View File

@ -27,7 +27,7 @@
"comment": null
},
"LegacyGameUI001": {
"value": 15859008,
"value": 15859120,
"comment": null
},
"Source2Client002": {
@ -43,7 +43,7 @@
"comment": null
},
"Source2ClientUI001": {
"value": 15591040,
"value": 15591360,
"comment": null
}
},

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:40 +0000
Sat, 16 Mar 2024 22:03:50 +0000
'''
class libanimationsystem_so: # libanimationsystem.so
@ -8,8 +8,8 @@ class libanimationsystem_so: # libanimationsystem.so
AnimationSystem_001 = 0x18C850
class libclient_so: # libclient.so
LegacyGameUI001 = 0xF1FD40
Source2ClientUI001 = 0xEDE680
LegacyGameUI001 = 0xF1FDB0
Source2ClientUI001 = 0xEDE7C0
Source2ClientPrediction001 = 0xDE3760
ClientToolsInfo_001 = 0xD54560
Source2Client002 = 0xD54220

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:40 +0000
* Sat, 16 Mar 2024 22:03:50 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]
@ -11,8 +11,8 @@ pub mod libanimationsystem_so { // libanimationsystem.so
}
pub mod libclient_so { // libclient.so
pub const LegacyGameUI001: usize = 0xF1FD40;
pub const Source2ClientUI001: usize = 0xEDE680;
pub const LegacyGameUI001: usize = 0xF1FDB0;
pub const Source2ClientUI001: usize = 0xEDE7C0;
pub const Source2ClientPrediction001: usize = 0xDE3760;
pub const ClientToolsInfo_001: usize = 0xD54560;
pub const Source2Client002: usize = 0xD54220;

View File

@ -3,8 +3,8 @@ libanimationsystem_so: # libanimationsystem.so
AnimationSystemUtils_001: 1624672
AnimationSystem_001: 1624144
libclient_so: # libclient.so
LegacyGameUI001: 15859008
Source2ClientUI001: 15591040
LegacyGameUI001: 15859120
Source2ClientUI001: 15591360
Source2ClientPrediction001: 14563168
ClientToolsInfo_001: 13976928
Source2Client002: 13976096

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class AimMatrixOpFixedSettings_t {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:38 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class AimMatrixOpFixedSettings_t:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:49 +0000
*/
public static class ActiveModelConfig_t {
@ -1800,6 +1800,7 @@ public static class C_CSGO_PreviewModel { // C_BaseFlex
public const nint m_defaultAnim = 0x1020; // CUtlString
public const nint m_nDefaultAnimLoopMode = 0x1028; // AnimLoopMode_t
public const nint m_flInitialModelScale = 0x102C; // float
public const nint m_sInitialWeaponState = 0x1030; // CUtlString
}
public static class C_CSGO_PreviewModelAlias_csgo_item_previewmodel { // C_CSGO_PreviewModel

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:49 +0000
*/
#pragma once
@ -1804,6 +1804,7 @@ namespace C_CSGO_PreviewModel { // C_BaseFlex
constexpr std::ptrdiff_t m_defaultAnim = 0x1020; // CUtlString
constexpr std::ptrdiff_t m_nDefaultAnimLoopMode = 0x1028; // AnimLoopMode_t
constexpr std::ptrdiff_t m_flInitialModelScale = 0x102C; // float
constexpr std::ptrdiff_t m_sInitialWeaponState = 0x1030; // CUtlString
}
namespace C_CSGO_PreviewModelAlias_csgo_item_previewmodel { // C_CSGO_PreviewModel

View File

@ -5954,6 +5954,10 @@
"m_nDefaultAnimLoopMode": {
"value": 4136,
"comment": "AnimLoopMode_t"
},
"m_sInitialWeaponState": {
"value": 4144,
"comment": "CUtlString"
}
},
"comment": "C_BaseFlex"

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:39 +0000
Sat, 16 Mar 2024 22:03:49 +0000
'''
class ActiveModelConfig_t:
@ -1632,6 +1632,7 @@ class C_CSGO_PreviewModel: # C_BaseFlex
m_defaultAnim = 0x1020 # CUtlString
m_nDefaultAnimLoopMode = 0x1028 # AnimLoopMode_t
m_flInitialModelScale = 0x102C # float
m_sInitialWeaponState = 0x1030 # CUtlString
class C_CSGO_PreviewModelAlias_csgo_item_previewmodel: # C_CSGO_PreviewModel

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:49 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]
@ -1802,6 +1802,7 @@ pub mod C_CSGO_PreviewModel { // C_BaseFlex
pub const m_defaultAnim: usize = 0x1020; // CUtlString
pub const m_nDefaultAnimLoopMode: usize = 0x1028; // AnimLoopMode_t
pub const m_flInitialModelScale: usize = 0x102C; // float
pub const m_sInitialWeaponState: usize = 0x1030; // CUtlString
}
pub mod C_CSGO_PreviewModelAlias_csgo_item_previewmodel { // C_CSGO_PreviewModel

View File

@ -1460,6 +1460,7 @@ C_CSGO_PreviewModel: # C_BaseFlex
m_defaultAnim: 4128 # CUtlString
m_nDefaultAnimLoopMode: 4136 # AnimLoopMode_t
m_flInitialModelScale: 4140 # float
m_sInitialWeaponState: 4144 # CUtlString
C_CSGO_PreviewModelAlias_csgo_item_previewmodel: # C_CSGO_PreviewModel
C_CSGO_PreviewModel_GraphController: # CAnimGraphControllerBase
m_pszCharacterMode: 24 # CAnimGraphParamOptionalRef<char*>

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class CEmptyEntityInstance {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:37 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class CEmptyEntityInstance:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:49 +0000
*/
public static class CAnimScriptBase {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:49 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:39 +0000
Sat, 16 Mar 2024 22:03:49 +0000
'''
class CAnimScriptBase:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:49 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class MaterialParamBuffer_t { // MaterialParam_t

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:37 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class MaterialParamBuffer_t: # MaterialParam_t

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class ChangeAccessorFieldPathIndex_t {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:37 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class ChangeAccessorFieldPathIndex_t:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:48 +0000
*/
public static class CBaseRendererSource2 { // CParticleFunctionRenderer

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:48 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:38 +0000
Sat, 16 Mar 2024 22:03:48 +0000
'''
class CBaseRendererSource2: # CParticleFunctionRenderer

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:48 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class CBasePulseGraphInstance {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:38 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class CBasePulseGraphInstance:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class RenderInputLayoutField_t {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:37 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class RenderInputLayoutField_t:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class AABB_t {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:37 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class AABB_t:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class CSSDSEndFrameViewInfo {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:38 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class CSSDSEndFrameViewInfo:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class CExampleSchemaVData_Monomorphic {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:37 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class CExampleSchemaVData_Monomorphic:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:37 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:48 +0000
*/
public static class ActiveModelConfig_t {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:48 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:39 +0000
Sat, 16 Mar 2024 22:03:49 +0000
'''
class ActiveModelConfig_t:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:39 +0000
* Sat, 16 Mar 2024 22:03:49 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class CDSPMixgroupModifier {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:38 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class CDSPMixgroupModifier:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class CFeIndexedJiggleBone {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:38 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class CFeIndexedJiggleBone:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
public static class AggregateLODSetup_t {

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#pragma once

View File

@ -1,6 +1,6 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:09:38 +0000
Sat, 16 Mar 2024 22:03:47 +0000
'''
class AggregateLODSetup_t:

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:09:38 +0000
* Sat, 16 Mar 2024 22:03:47 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]

View File

@ -1,30 +1,30 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:10:00 +0000
* Sat, 16 Mar 2024 22:04:11 +0000
*/
public static class game_info { // Some additional information about the game at dump time
public const nint buildNumber = 0x36AC; // Game build number
public const nint buildNumber = 0x36AE; // Game build number
}
public static class libclient_so { // libclient.so
public const nint dwEntityList = 0x35A7848;
public const nint dwForceAttack = 0x3731FD0;
public const nint dwForceAttack2 = 0x3731F30;
public const nint dwGameEntitySystem = 0x385D880;
public const nint dwEntityList = 0x35AA8C8;
public const nint dwForceAttack = 0x3735050;
public const nint dwForceAttack2 = 0x3734FB0;
public const nint dwGameEntitySystem = 0x38609C0;
public const nint dwGameEntitySystem_getHighestEntityIndex = 0x1540;
public const nint dwGameRules = 0x3733368;
public const nint dwGlobalVars = 0x35689D0;
public const nint dwGlowManager = 0x3737C70;
public const nint dwInterfaceLinkList = 0x37D00B0;
public const nint dwLocalPlayerController = 0x3718898;
public const nint dwLocalPlayerPawn = 0x3738C58;
public const nint dwPlantedC4 = 0x374D4B8;
public const nint dwPrediction = 0x3738B20;
public const nint dwGameRules = 0x37363E8;
public const nint dwGlobalVars = 0x379E780;
public const nint dwGlowManager = 0x373ACF0;
public const nint dwInterfaceLinkList = 0x37D3130;
public const nint dwLocalPlayerController = 0x371B918;
public const nint dwLocalPlayerPawn = 0x373BCD8;
public const nint dwPlantedC4 = 0x3750538;
public const nint dwPrediction = 0x373BBA0;
public const nint dwSensitivity_sensitivity = 0x40;
public const nint dwViewAngles = 0x37459A0;
public const nint dwViewMatrix = 0x3739780;
public const nint dwViewRender = 0x3739930;
public const nint dwViewAngles = 0x3748A20;
public const nint dwViewMatrix = 0x373C800;
public const nint dwViewRender = 0x373C9B0;
}
public static class libengine2_so { // libengine2.so

View File

@ -1,6 +1,6 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:10:00 +0000
* Sat, 16 Mar 2024 22:04:11 +0000
*/
#pragma once
@ -8,27 +8,27 @@
#include <cstddef>
namespace game_info { // Some additional information about the game at dump time
constexpr std::ptrdiff_t buildNumber = 0x36AC; // Game build number
constexpr std::ptrdiff_t buildNumber = 0x36AE; // Game build number
}
namespace libclient_so { // libclient.so
constexpr std::ptrdiff_t dwEntityList = 0x35A7848;
constexpr std::ptrdiff_t dwForceAttack = 0x3731FD0;
constexpr std::ptrdiff_t dwForceAttack2 = 0x3731F30;
constexpr std::ptrdiff_t dwGameEntitySystem = 0x385D880;
constexpr std::ptrdiff_t dwEntityList = 0x35AA8C8;
constexpr std::ptrdiff_t dwForceAttack = 0x3735050;
constexpr std::ptrdiff_t dwForceAttack2 = 0x3734FB0;
constexpr std::ptrdiff_t dwGameEntitySystem = 0x38609C0;
constexpr std::ptrdiff_t dwGameEntitySystem_getHighestEntityIndex = 0x1540;
constexpr std::ptrdiff_t dwGameRules = 0x3733368;
constexpr std::ptrdiff_t dwGlobalVars = 0x35689D0;
constexpr std::ptrdiff_t dwGlowManager = 0x3737C70;
constexpr std::ptrdiff_t dwInterfaceLinkList = 0x37D00B0;
constexpr std::ptrdiff_t dwLocalPlayerController = 0x3718898;
constexpr std::ptrdiff_t dwLocalPlayerPawn = 0x3738C58;
constexpr std::ptrdiff_t dwPlantedC4 = 0x374D4B8;
constexpr std::ptrdiff_t dwPrediction = 0x3738B20;
constexpr std::ptrdiff_t dwGameRules = 0x37363E8;
constexpr std::ptrdiff_t dwGlobalVars = 0x379E780;
constexpr std::ptrdiff_t dwGlowManager = 0x373ACF0;
constexpr std::ptrdiff_t dwInterfaceLinkList = 0x37D3130;
constexpr std::ptrdiff_t dwLocalPlayerController = 0x371B918;
constexpr std::ptrdiff_t dwLocalPlayerPawn = 0x373BCD8;
constexpr std::ptrdiff_t dwPlantedC4 = 0x3750538;
constexpr std::ptrdiff_t dwPrediction = 0x373BBA0;
constexpr std::ptrdiff_t dwSensitivity_sensitivity = 0x40;
constexpr std::ptrdiff_t dwViewAngles = 0x37459A0;
constexpr std::ptrdiff_t dwViewMatrix = 0x3739780;
constexpr std::ptrdiff_t dwViewRender = 0x3739930;
constexpr std::ptrdiff_t dwViewAngles = 0x3748A20;
constexpr std::ptrdiff_t dwViewMatrix = 0x373C800;
constexpr std::ptrdiff_t dwViewRender = 0x373C9B0;
}
namespace libengine2_so { // libengine2.so

View File

@ -2,7 +2,7 @@
"game_info": {
"data": {
"buildNumber": {
"value": 13996,
"value": 13998,
"comment": "Game build number"
}
},
@ -11,19 +11,19 @@
"libclient_so": {
"data": {
"dwEntityList": {
"value": 56260680,
"value": 56273096,
"comment": null
},
"dwForceAttack": {
"value": 57876432,
"value": 57888848,
"comment": null
},
"dwForceAttack2": {
"value": 57876272,
"value": 57888688,
"comment": null
},
"dwGameEntitySystem": {
"value": 59103360,
"value": 59115968,
"comment": null
},
"dwGameEntitySystem_getHighestEntityIndex": {
@ -31,35 +31,35 @@
"comment": null
},
"dwGameRules": {
"value": 57881448,
"value": 57893864,
"comment": null
},
"dwGlobalVars": {
"value": 56003024,
"value": 58320768,
"comment": null
},
"dwGlowManager": {
"value": 57900144,
"value": 57912560,
"comment": null
},
"dwInterfaceLinkList": {
"value": 58523824,
"value": 58536240,
"comment": null
},
"dwLocalPlayerController": {
"value": 57772184,
"value": 57784600,
"comment": null
},
"dwLocalPlayerPawn": {
"value": 57904216,
"value": 57916632,
"comment": null
},
"dwPlantedC4": {
"value": 57988280,
"value": 58000696,
"comment": null
},
"dwPrediction": {
"value": 57903904,
"value": 57916320,
"comment": null
},
"dwSensitivity_sensitivity": {
@ -67,15 +67,15 @@
"comment": null
},
"dwViewAngles": {
"value": 57956768,
"value": 57969184,
"comment": null
},
"dwViewMatrix": {
"value": 57907072,
"value": 57919488,
"comment": null
},
"dwViewRender": {
"value": 57907504,
"value": 57919920,
"comment": null
}
},

View File

@ -1,29 +1,29 @@
'''
Generated using https://github.com/a2x/cs2-dumper
Fri, 15 Mar 2024 16:10:00 +0000
Sat, 16 Mar 2024 22:04:11 +0000
'''
class game_info: # Some additional information about the game at dump time
buildNumber = 0x36AC # Game build number
buildNumber = 0x36AE # Game build number
class libclient_so: # libclient.so
dwEntityList = 0x35A7848
dwForceAttack = 0x3731FD0
dwForceAttack2 = 0x3731F30
dwGameEntitySystem = 0x385D880
dwEntityList = 0x35AA8C8
dwForceAttack = 0x3735050
dwForceAttack2 = 0x3734FB0
dwGameEntitySystem = 0x38609C0
dwGameEntitySystem_getHighestEntityIndex = 0x1540
dwGameRules = 0x3733368
dwGlobalVars = 0x35689D0
dwGlowManager = 0x3737C70
dwInterfaceLinkList = 0x37D00B0
dwLocalPlayerController = 0x3718898
dwLocalPlayerPawn = 0x3738C58
dwPlantedC4 = 0x374D4B8
dwPrediction = 0x3738B20
dwGameRules = 0x37363E8
dwGlobalVars = 0x379E780
dwGlowManager = 0x373ACF0
dwInterfaceLinkList = 0x37D3130
dwLocalPlayerController = 0x371B918
dwLocalPlayerPawn = 0x373BCD8
dwPlantedC4 = 0x3750538
dwPrediction = 0x373BBA0
dwSensitivity_sensitivity = 0x40
dwViewAngles = 0x37459A0
dwViewMatrix = 0x3739780
dwViewRender = 0x3739930
dwViewAngles = 0x3748A20
dwViewMatrix = 0x373C800
dwViewRender = 0x373C9B0
class libengine2_so: # libengine2.so
dwBuildNumber = 0x6D35F4

View File

@ -1,32 +1,32 @@
/*
* Generated using https://github.com/a2x/cs2-dumper
* Fri, 15 Mar 2024 16:10:00 +0000
* Sat, 16 Mar 2024 22:04:11 +0000
*/
#![allow(non_snake_case, non_upper_case_globals)]
pub mod game_info { // Some additional information about the game at dump time
pub const buildNumber: usize = 0x36AC; // Game build number
pub const buildNumber: usize = 0x36AE; // Game build number
}
pub mod libclient_so { // libclient.so
pub const dwEntityList: usize = 0x35A7848;
pub const dwForceAttack: usize = 0x3731FD0;
pub const dwForceAttack2: usize = 0x3731F30;
pub const dwGameEntitySystem: usize = 0x385D880;
pub const dwEntityList: usize = 0x35AA8C8;
pub const dwForceAttack: usize = 0x3735050;
pub const dwForceAttack2: usize = 0x3734FB0;
pub const dwGameEntitySystem: usize = 0x38609C0;
pub const dwGameEntitySystem_getHighestEntityIndex: usize = 0x1540;
pub const dwGameRules: usize = 0x3733368;
pub const dwGlobalVars: usize = 0x35689D0;
pub const dwGlowManager: usize = 0x3737C70;
pub const dwInterfaceLinkList: usize = 0x37D00B0;
pub const dwLocalPlayerController: usize = 0x3718898;
pub const dwLocalPlayerPawn: usize = 0x3738C58;
pub const dwPlantedC4: usize = 0x374D4B8;
pub const dwPrediction: usize = 0x3738B20;
pub const dwGameRules: usize = 0x37363E8;
pub const dwGlobalVars: usize = 0x379E780;
pub const dwGlowManager: usize = 0x373ACF0;
pub const dwInterfaceLinkList: usize = 0x37D3130;
pub const dwLocalPlayerController: usize = 0x371B918;
pub const dwLocalPlayerPawn: usize = 0x373BCD8;
pub const dwPlantedC4: usize = 0x3750538;
pub const dwPrediction: usize = 0x373BBA0;
pub const dwSensitivity_sensitivity: usize = 0x40;
pub const dwViewAngles: usize = 0x37459A0;
pub const dwViewMatrix: usize = 0x3739780;
pub const dwViewRender: usize = 0x3739930;
pub const dwViewAngles: usize = 0x3748A20;
pub const dwViewMatrix: usize = 0x373C800;
pub const dwViewRender: usize = 0x373C9B0;
}
pub mod libengine2_so { // libengine2.so

View File

@ -1,24 +1,24 @@
---
game_info: # Some additional information about the game at dump time
buildNumber: 13996 # Game build number
buildNumber: 13998 # Game build number
libclient_so: # libclient.so
dwEntityList: 56260680
dwForceAttack: 57876432
dwForceAttack2: 57876272
dwGameEntitySystem: 59103360
dwEntityList: 56273096
dwForceAttack: 57888848
dwForceAttack2: 57888688
dwGameEntitySystem: 59115968
dwGameEntitySystem_getHighestEntityIndex: 5440
dwGameRules: 57881448
dwGlobalVars: 56003024
dwGlowManager: 57900144
dwInterfaceLinkList: 58523824
dwLocalPlayerController: 57772184
dwLocalPlayerPawn: 57904216
dwPlantedC4: 57988280
dwPrediction: 57903904
dwGameRules: 57893864
dwGlobalVars: 58320768
dwGlowManager: 57912560
dwInterfaceLinkList: 58536240
dwLocalPlayerController: 57784600
dwLocalPlayerPawn: 57916632
dwPlantedC4: 58000696
dwPrediction: 57916320
dwSensitivity_sensitivity: 64
dwViewAngles: 57956768
dwViewMatrix: 57907072
dwViewRender: 57907504
dwViewAngles: 57969184
dwViewMatrix: 57919488
dwViewRender: 57919920
libengine2_so: # libengine2.so
dwBuildNumber: 7157236
dwNetworkGameClient_deltaTick: 632

View File

@ -10,6 +10,7 @@ use goblin::elf::{sym, Elf, SectionHeader};
#[cfg(target_os = "linux")]
use std::path::PathBuf;
/// Represents the data associated with a specific module on Linux.
#[cfg(target_os = "linux")]
#[derive(Debug)]
pub struct ModuleEntry {
@ -17,22 +18,30 @@ pub struct ModuleEntry {
pub start_addr: usize,
pub data: Vec<u8>,
}
/// Represents a module loaded in a Windows process.
#[cfg(target_os = "windows")]
pub struct Module<'a> {
/// The name of the module.
pub name: &'a str,
/// A reference to a slice of bytes containing the module data.
#[cfg(target_os = "windows")]
pub data: &'a [u8],
#[cfg(target_os = "linux")]
pub module_info: &'a ModuleEntry,
#[cfg(target_os = "windows")]
/// The PE file format representation of the module.
pub pe: PE<'a>,
}
#[cfg(target_os = "linux")]
/// Represents a module loaded in a Linux process.
#[cfg(target_os = "linux")]
pub struct Module<'a> {
/// The name of the module.
pub name: &'a str,
/// A reference to a slice of bytes containing the module info.
pub module_info: &'a ModuleEntry,
/// The Elf file format representation of the module.
pub elf: Elf<'a>,
}

View File

@ -30,20 +30,27 @@ use std::io::{Read, Seek, SeekFrom};
use std::path::{Path, PathBuf};
/// Represents a Windows process.
#[cfg(target_os = "windows")]
#[derive(Debug)]
pub struct Process {
/// ID of the process.
id: u32,
#[cfg(target_os = "windows")]
/// Handle to the process.
handle: HANDLE,
/// A HashMap containing the name of each module and its corresponding raw data.
#[cfg(target_os = "windows")]
modules: HashMap<String, Vec<u8>>,
}
#[cfg(target_os = "linux")]
/// Represents a Linux process.
#[cfg(target_os = "linux")]
#[derive(Debug)]
pub struct Process {
/// PID of the process.
pid: u32,
/// A HashMap containing the name of each module and its corresponding data.
modules: HashMap<String, ModuleEntry>,
}
@ -65,9 +72,9 @@ impl Process {
#[cfg(target_os = "linux")]
pub fn new(name: &str) -> Result<Self> {
let id = Self::get_process_id_by_name(name)?;
let pid = Self::get_process_pid_by_name(name)?;
let mut process = Self {
id,
pid,
modules: HashMap::new(),
};
process.parse_loaded_modules()?;
@ -160,7 +167,7 @@ impl Process {
#[cfg(target_os = "linux")]
pub fn read_memory_raw(&self, address: usize, buffer: *mut c_void, size: usize) -> Result<()> {
let proc_mem_path = format!("/proc/{}/mem", self.id);
let proc_mem_path = format!("/proc/{}/mem", self.pid);
let mut mem_file = File::open(proc_mem_path)?;
// Go to the start address
@ -257,7 +264,7 @@ impl Process {
}
#[cfg(target_os = "linux")]
fn get_process_id_by_name(process_name: &str) -> Result<u32> {
fn get_process_pid_by_name(process_name: &str) -> Result<u32> {
use std::io::{BufRead, BufReader};
for process_iter in all_processes()? {
@ -308,7 +315,7 @@ impl Process {
#[cfg(target_os = "linux")]
fn parse_loaded_modules(&mut self) -> Result<()> {
let process = process::Process::new(self.id as i32)?;
let process = process::Process::new(self.pid as i32)?;
let mut modules_info: HashMap<String, ((u64, u64), PathBuf)> = HashMap::new();