Hi! That entity trying to make a shield for the player.
Is a model of the shield (attached below).
I have the server will be the VIP players. Each round they will get a shield. This panel will have 500-700 to block the loss of life and in the back until the break. Upon receipt of damage or destruction of the shield should be given a sound yet.
Who is able to help? The task will be interesting and useful for beginners who read the topic. I myself have recently started working with the objects themselves.
Here is my code to create a shield:
but it just hangs the shield on the back of the player without blocking the damage and not getting hit.
PHP Code:
public set_vip_shield(id){
usr_shield[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
set_pev(usr_shield[id], pev_classname, "vip_shield")
set_pev(usr_shield[id], pev_movetype, MOVETYPE_FOLLOW)
set_pev(usr_shield[id], pev_solid, 1)
set_pev(usr_shield[id], pev_aiment, id)
set_pev(usr_shield[id], pev_health,100)
set_pev(usr_shield[id], pev_rendermode, kRenderNormal)
engfunc(EngFunc_SetModel, usr_shield[id], vip_shield)
}
I do not know how to do that until the shield on his back, the damage got a shield.
Well the mud as a shield destroyed = (