isFlashed flag
- Added Player is flashed flag to show when a player is flashed
This commit is contained in:
@@ -213,6 +213,8 @@ namespace updater {
|
||||
offsets::m_vecAbsOrigin = data["m_vecAbsOrigin"];
|
||||
if (data["m_pGameSceneNode"].is_number())
|
||||
offsets::m_pGameSceneNode = data["m_pGameSceneNode"];
|
||||
if (data["m_flFlashDuration"].is_number())
|
||||
offsets::m_flFlashDuration = data["m_flFlashDuration"];
|
||||
if (data["m_bIsDefusing"].is_number())
|
||||
offsets::m_bIsDefusing = data["m_bIsDefusing"];
|
||||
if (data["m_szName"].is_number())
|
||||
@@ -254,6 +256,7 @@ namespace updater {
|
||||
data["m_iAccount"] = offsets::m_iAccount;
|
||||
data["m_vecAbsOrigin"] = offsets::m_vecAbsOrigin;
|
||||
data["m_pGameSceneNode"] = offsets::m_pGameSceneNode;
|
||||
data["m_flFlashDuration"] = offsets::m_flFlashDuration;
|
||||
data["m_bIsDefusing"] = offsets::m_bIsDefusing;
|
||||
data["m_szName"] = offsets::m_szName;
|
||||
data["m_pClippingWeapon"] = offsets::m_pClippingWeapon;
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace updater {
|
||||
inline std::ptrdiff_t m_iAccount = 0x40;
|
||||
inline std::ptrdiff_t m_vecAbsOrigin = 0xC8;
|
||||
inline std::ptrdiff_t m_pGameSceneNode = 0x310;
|
||||
inline std::ptrdiff_t m_flFlashDuration = 0x1450;
|
||||
inline std::ptrdiff_t m_bIsDefusing = 0x1390;
|
||||
inline std::ptrdiff_t m_szName = 0xC18;
|
||||
inline std::ptrdiff_t m_pClippingWeapon = 0x1290;
|
||||
|
||||
@@ -74,8 +74,6 @@ namespace hack {
|
||||
* (This could have been done by getting a entity list count from the engine, but I'm too lazy to do that)
|
||||
**/
|
||||
while (true) {
|
||||
|
||||
|
||||
playerIndex++;
|
||||
list_entry = process->read<uintptr_t>(entity_list + (8 * (playerIndex & 0x7FFF) >> 9) + 16);
|
||||
if (!list_entry)
|
||||
@@ -268,6 +266,22 @@ namespace hack {
|
||||
10
|
||||
);
|
||||
|
||||
float flashDuration = process->read<float>(pCSPlayerPawn + updater::offsets::m_flFlashDuration);
|
||||
bool isFlashed;
|
||||
if (flashDuration > 0.0)
|
||||
isFlashed = true;
|
||||
if (isFlashed)
|
||||
{
|
||||
render::RenderText(
|
||||
g::hdcBuffer,
|
||||
screenHead.x + (width / 2 + 5),
|
||||
screenHead.y + 60,
|
||||
"Player is flashed",
|
||||
config::esp_distance_color,
|
||||
10
|
||||
);
|
||||
}
|
||||
|
||||
std::string defuText = "Player is defusing";
|
||||
|
||||
if (isDefusing)
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"m_iAccount": 64,
|
||||
"m_vecAbsOrigin": 200,
|
||||
"m_pGameSceneNode": 784,
|
||||
"m_flFlashDuration": 5200,
|
||||
"m_bIsDefusing": 5008,
|
||||
"m_szName": 3096,
|
||||
"m_pClippingWeapon": 4752,
|
||||
|
||||
Reference in New Issue
Block a user