View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-07-2010 , 06:41   Re: Wallbang Training
Reply With Quote #4

Another suggestion would be :

- Don't create vars into a loop, and I would use static for all the arrays since it's a function called very often.
- write_coord(floatround( : working with float and to avoid to use floatround, use directly : engfunc( EngFunc_WriteCoord,
- Use a swtich for cs_get_user_team
- You use GetBonePosition to get the head position, but I guess it would be fine if you calculate from the player's origin. You have just to add some z value.
__________________

Last edited by Arkshine; 12-07-2010 at 06:47.
Arkshine is offline