View Single Post
BB.O.
Member
Join Date: Feb 2011
Old 02-28-2015 , 13:45   Re: Showing your legs
Reply With Quote #10

Quote:
Originally Posted by claudiuhks View Post
PHP Code:
    static ent
    ent 
engfunc(EngFunc_CreateNamedEntityengfunc(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.0offset)
xs_vec_mul_scalar(offset0.15offset)
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

Last edited by BB.O.; 02-28-2015 at 13:47. Reason: something wrong :\
BB.O. is offline