hii ,
how can i stop bullet to passes through enitity
like i am creating an enitity name SHIELD which protect from bullets of enemy
PHP Code:
public createshield(id)
{
g_Entity_Shield = engfunc(EngFunc_AllocString, "func_breakable")
new i_Ent = engfunc(EngFunc_CreateNamedEntity,g_Entity_Shield)
if(!i_Ent) return
g_iShield[id]=i_Ent
set_pev(i_Ent, pev_classname, shieldclass)
engfunc(EngFunc_SetModel, i_Ent, Shield_Model)
set_pev(i_Ent, pev_solid, SOLID_BBOX)
set_pev(i_Ent, pev_movetype, MOVETYPE_FLY)
engfunc( EngFunc_SetSize, i_Ent, Float:{ -16.0,-16.0, 0.0 }, Float:{ 16.0, 16.0, 67.0 } );
fm_set_rendering(i_Ent, kRenderFxNone, 255, 255, 255, kRenderTransAdd, 200)
set_pev(i_Ent, pev_takedamage, DAMAGE_YES)
set_pev(i_Ent, pev_iuser1, fm_cs_get_user_team(id))
set_pev(i_Ent, pev_health, get_pcvar_float(g_iCvar[1]))
set_pev(i_Ent, pev_iuser2, id)
cs_set_user_money(id, cs_get_user_money(id) - get_pcvar_num(g_iCvar[5]))
set_pdata_int(i_Ent, 36, 6, 4)
}
but i am getting promblem that if any player is standing behind the Sheild (ENITITY) , he is getting damage of bullets by enemy ,
so any way to stop those bullet damage
__________________