Bomb timer whats wrong
Hello,
I trying to make a bomb timer to my internal hack but the time stuck on 42**********.00 for example.
Help please!
I trying to make a bomb timer to my internal hack but the time stuck on 42**********.00 for example.
Code:
BombCarrier = nullptr;
Vector vOrig; Vector vScreen;
vOrig = pEntity->GetOrigin();
CCSBomb* Bomb = (CCSBomb*)pEntity;
IClientEntity* pLocalEntity = (IClientEntity*)Interfaces::EntList->GetClientEntity(Interfaces::Engine->GetLocalPlayer());
if (Render::WorldToScreen(vOrig, vScreen))
{
float flBlow = NetVar.GetNetVar(0x297C);
float m_nTickBase = NetVar.GetNetVar(0x3424);
float flServerTime = m_nTickBase * Interfaces::Globals->interval_per_tick;
float TimeRemaining = flBlow - flServerTime;
char buffer[64];
sprintf_s(buffer, "Bomb: %.1f", TimeRemaining);
Render::Text(vScreen.x, vScreen.y, Color(250, 42, 42, 255), Render::Fonts::ESP, buffer);
}