Update plugins

This commit is contained in:
Jackz 2023-07-20 20:15:44 -05:00
parent cc9eb7d9d4
commit 52c3d04c89
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
25 changed files with 2163 additions and 870 deletions

View file

@ -306,6 +306,34 @@ stock bool L4D_IsPlayerBurning(int client)
return (fBurning > 0.0) ? true : false;
}
/**
* @brief Returns true if a physics object or alarmed car can be moved by the tank
*
* @param entity Entity index to check
*
* @return true if it can be moved, false otherwise
*/
stock bool L4D_IsTankProp(int entity)
{
static char classname[16];
GetEdictClassname(entity, classname, sizeof(classname));
if( strcmp(classname, "prop_physics") == 0 )
{
if( GetEntProp(entity, Prop_Send, "m_hasTankGlow") )
{
return true;
}
}
else if( strcmp(classname, "prop_car_alarm") == 0 )
{
return true;
}
return false;
}
// ==================================================