Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int IClientEntity::GetSequenceActivity(int sequence)
- {
- auto hdr = Interfaces::ModelInfo->GetStudiomodel(this->GetModel());
- if (!hdr)
- return -1;
- // c_csplayer vfunc 242, follow calls to find the function.
- static auto client2 = GetModuleHandleW(L"client.dll");
- static auto getSequenceActivity = (DWORD)(PatternScan(client2, "55 8B EC 83 7D 08 FF 56 8B F1 74"));
- static auto GetSequenceActivity = reinterpret_cast<int(__fastcall*)(void*, studiohdr_t*, int)>(getSequenceActivity);
- return GetSequenceActivity(this, hdr, sequence);
- }
- bool isPartOf(char *a, char *b) {
- if (std::strstr(b, a) != NULL) { //Strstr says does b contain a
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement