View Single Post
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 02-28-2015 , 10:28   Re: Showing your legs
Reply With Quote #6

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.
__________________

Last edited by claudiuhks; 02-28-2015 at 10:29.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks