Thread: [Solved] stop bullets from entity
View Single Post
Author Message
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 07-08-2019 , 08:56   stop bullets from entity
Reply With Quote #1

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_Entpev_classnameshieldclass)
    
engfunc(EngFunc_SetModeli_EntShield_Model)
    
    
set_pev(i_Entpev_solidSOLID_BBOX)
    
set_pev(i_Entpev_movetypeMOVETYPE_FLY)
    
    
engfuncEngFunc_SetSizei_EntFloat:{ -16.0,-16.00.0 }, Float:{ 16.016.067.0 } );
    
    
fm_set_rendering(i_EntkRenderFxNone255255255kRenderTransAdd200)

    
set_pev(i_Entpev_takedamageDAMAGE_YES)
    
    
set_pev(i_Entpev_iuser1fm_cs_get_user_team(id))
    
    
set_pev(i_Entpev_healthget_pcvar_float(g_iCvar[1]))
    
    
set_pev(i_Entpev_iuser2id)
    
cs_set_user_money(idcs_get_user_money(id) - get_pcvar_num(g_iCvar[5]))
    
    
set_pdata_int(i_Ent3664)


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
__________________
SED LYF !!!

Last edited by SHIELD755; 07-09-2019 at 06:36.
SHIELD755 is offline