Skip to content

Commit

Permalink
[hotfix] 5/1/2024
Browse files Browse the repository at this point in the history
merge #76 to update engine interface indexes
  • Loading branch information
maecry authored May 1, 2024
2 parents b29c7e5 + 0cb652f commit 98dac1f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cstrike/sdk/interfaces/iengineclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,41 @@ class IEngineClient
public:
int GetMaxClients()
{
return MEM::CallVFunc<int, 31U>(this);
return MEM::CallVFunc<int, 34U>(this);
}

bool IsInGame()
{
return MEM::CallVFunc<bool, 32U>(this);
return MEM::CallVFunc<bool, 35U>(this);
}

bool IsConnected()
{
return MEM::CallVFunc<bool, 33U>(this);
return MEM::CallVFunc<bool, 36U>(this);
}

// return CBaseHandle index
int GetLocalPlayer()
{
int nIndex = -1;

MEM::CallVFunc<void, 44U>(this, std::ref(nIndex), 0);
MEM::CallVFunc<void, 47U>(this, std::ref(nIndex), 0);

return nIndex + 1;
}

[[nodiscard]] const char* GetLevelName()
{
return MEM::CallVFunc<const char*, 53U>(this);
return MEM::CallVFunc<const char*, 56U>(this);
}

[[nodiscard]] const char* GetLevelNameShort()
{
return MEM::CallVFunc<const char*, 54U>(this);
return MEM::CallVFunc<const char*, 57U>(this);
}

[[nodiscard]] const char* GetProductVersionString()
{
return MEM::CallVFunc<const char*, 78U>(this);
return MEM::CallVFunc<const char*, 81U>(this);
}
};

0 comments on commit 98dac1f

Please sign in to comment.