AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   plz move to bug report thx , help for trace_forward problem (https://forums.alliedmods.net/showthread.php?t=46129)

jopmako 10-19-2006 01:35

plz move to bug report thx , help for trace_forward problem
 
Code:
   new hitEntity = -1    new Float:User_origin[3],Float:User_angles[3]    entity_get_vector(id, EV_VEC_origin, User_origin)    entity_get_vector(id, EV_VEC_angles, User_angles)    new Float:hitX, Float:hitY, Float:F_Distance, Float:F_DistLow, Float:F_DistHigh    hitEntity = trace_forward ( User_origin, User_angles, 50.0, id, hitX, hitY, F_Distance, F_DistLow, F_DistHigh )
i cannt get the (hitX, hitY) in front of the player,
it's always in front left of the player (about left 40 degree),
and result don't ignore the id.

trace_forward function
http://www.amxmodx.org/funcwiki.php?go=func&id=797

Anyone help to fix this or may be a bug? thx.

jopmako 10-20-2006 23:53

Re: plz move to bug report thx , help for trace_forward problem
 
plz move to bug report thx


All times are GMT -4. The time now is 04:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.