This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic knife changer through NetVar proxy function.
- Loading branch information
Showing
9 changed files
with
183 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#pragma once | ||
|
||
class ClientClass { | ||
private: | ||
char __pad[0x8]; | ||
public: | ||
char* m_pNetworkName; | ||
RecvTable* m_pRecvTable; | ||
ClientClass* m_pNext; | ||
int m_ClassID; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#pragma once | ||
|
||
struct RecvProp; | ||
|
||
struct DVariant { | ||
union { | ||
float m_Float; | ||
long m_Int; | ||
char* m_pString; | ||
void* m_pData; | ||
float m_Vector[3]; | ||
__int64 m_Int64; | ||
}; | ||
|
||
int m_Type; | ||
}; | ||
|
||
struct CRecvProxyData { | ||
const RecvProp* m_pRecvProp; | ||
DVariant m_Value; | ||
int m_iElement; | ||
int m_ObjectID; | ||
}; | ||
|
||
struct RecvTable { | ||
public: | ||
RecvProp* m_pProps; | ||
int m_nProps; | ||
void* m_pDecoder; | ||
char* m_pNetTableName; | ||
private: | ||
char pad00[2]; | ||
}; | ||
|
||
typedef void(__cdecl *RecvVarProxyFn)(const CRecvProxyData*, void*, void*); | ||
|
||
struct RecvProp { | ||
char* m_pVarName; | ||
int m_RecvType; | ||
int m_Flags; | ||
int m_StringBufferSize; | ||
bool m_bInsideArray; | ||
const void* m_pExtraData; | ||
RecvProp* m_pArrayProp; | ||
void* m_ArrayLengthProxy; | ||
RecvVarProxyFn m_ProxyFn; | ||
void* m_DataTableProxyFn; | ||
RecvTable* m_pDataTable; | ||
int m_Offset; | ||
int m_ElementStride; | ||
int m_nElements; | ||
const char* m_pParentArrayPropName; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
class IBaseClientDLL { | ||
public: | ||
inline ClientClass* GetAllClasses() { | ||
return CallVirtualFunction<ClientClass*(__thiscall *)(void*)>(this, 8)(this); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#pragma once | ||
|
||
class IVModelInfoClient { | ||
public: | ||
inline int GetModelIndex(const char* Filename) { | ||
return CallVirtualFunction<int(__thiscall *)(void*, const char*)>(this, 2)(this, Filename); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters