Начинающий
-
Автор темы
- #1
the grenade esp is not consistant, does not show most of the time. only happens on flash and hegrenade. the code i could find is here since there is no classid so its just checking for either but it does not work well.
Код:
ProjectileInfo_t :: ProjectileInfo_t (IBasePlayer * projectile) noexcept: BaseData {projectile}
{
name = [] (IBasePlayer * projectile) -> std :: string {
switch (projectile-> GetClientClass () -> m_ClassID) {
case (int) Z :: ClassId :: BaseCSGrenadeProjectile:
if (const auto model = projectile-> GetModel (); model && strstr (model-> name, str ("Flashbang")))
return str ("Flashbang");
else
return str ("HE Grenade");
case (int) Z :: ClassId :: BreachChargeProjectile: return str ("Breach Charge");
case (int) Z :: ClassId :: BumpMineProjectile: return str ("Bump Mine");
case (int) Z :: ClassId :: DecoyProjectile: return str ("Decoy Grenade");
case (int) Z :: ClassId :: MolotovProjectile: return str ("Molotov");
case (int) Z :: ClassId :: SensorGrenadeProjectile: return str ("TA Grenade");
case (int) Z :: ClassId :: SmokeGrenadeProjectile: return str ("Smoke");
case (int) Z :: ClassId :: SnowballProjectile: return str ("Snowball");
default: assert (false); return str ("unknown");
}
} (projectile);
if (const auto thrower = interfaces.ent_list-> GetClientEntityFromHandle (projectile-> Thrower ()); thrower && csgo-> local) {
if (thrower == csgo-> local)
thrownByLocalPlayer = true;
else
thrownByEnemy = thrower-> GetTeam ()! = csgo-> local-> GetTeam ();
}
handle = projectile-> GetRefEHandle ();
} [/ CODE]