@@ -44,6 +44,7 @@ class Engine : public Module {
4444 using _ClientTime = float (*)(void *thisptr);
4545 using _DebugDrawPhysCollide = bool (__rescall *)(void *thisptr, const void *collide, IMaterial *material, const matrix3x4_t &transform, const Color &color);
4646 using _IsPaused = bool (*)(void *thisptr);
47+ using _IsActiveApp = bool (*)(void *thisptr);
4748 using _TraceRay = void (__rescall *)(void *thisptr, const Ray_t &ray, unsigned int fMask , ITraceFilter *pTraceFilter, CGameTrace *pTrace);
4849 using _PointOutsideWorld = bool (__rescall *)(void *thisptr, const Vector &test);
4950 using _GetCount = int (__rescall *)(void *thisptr);
@@ -90,6 +91,7 @@ class Engine : public Module {
9091 _GetLightForPoint GetLightForPoint = nullptr ;
9192 _DebugDrawPhysCollide DebugDrawPhysCollide = nullptr ;
9293 _IsPaused IsPaused = nullptr ;
94+ _IsActiveApp IsActiveApp = nullptr ;
9395 _TraceRay TraceRay = nullptr ;
9496 _TraceRay TraceRayClient = nullptr ;
9597 _PointOutsideWorld PointOutsideWorld = nullptr ;
@@ -144,6 +146,7 @@ class Engine : public Module {
144146 float GetHostTime ();
145147 bool isRunning ();
146148 bool IsGamePaused ();
149+ bool IsGameFocused ();
147150 int GetMapIndex (const std::string map);
148151 std::string GetCurrentMapName ();
149152 std::string GetMapTitle (std::string map);
0 commit comments