PHP Code:
static ent
ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
You must check if the entity is VALID by using pev_valid.
I am pretty sure you might cache 'info_target' Allocated String ID globally.
Also, add '//' comments explaining the following.
PHP Code:
if (angles[0] > 60.0)
angles[0] = 0.0
xs_vec_mul_scalar(offset, -32.0, offset)
xs_vec_mul_scalar(offset, 0.15, offset)
angles[0] = 30.0
At least, explain what they are/ how they help so I understand.
You didn't have to remove the Zombie Plague forwards if you wish this plug-in to work with Zombie Plague game mod as well.
__________________