Quote:
Originally Posted by claudiuhks
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.
|
At first, I used fw_PlayerSpawn_Post, a very poor way to do the trick.
Changing the models in the same time sucks,
and I'm quite sure that it would carry out a SVC_BAD problem if I'm right..
So that's why I used the random method to prevent the SVC_BAD problem
But it seems it is not needed now for using the new solution