Grenade entities are class-named "grenade", simply that
There are several ways to detect them, but this one will work:
Code:
edict_t *pGrenade = NULL;
// is there an armed grenade near here?
while (!FNullEnt (pGrenade = UTIL_FindEntityInSphere (pGrenade, pPlayer->v_origin, 300)))
{
if (strcmp ("grenade", STRING (pGrenade->v.classname)) == 0)
continue; // discard entity if it is NOT an armed grenade
// do stuff with grenade (check if bot can see it and check the grenade's velocity...