I want to make a weapon like BFG9000 in Doom3, but I dnt know how to check if theres not any blocks between the shell and the enemy player
sorry for my bad english and thx for care
xPaw: thank u ,but im afraid that is_in_viewcone returns true only if the player looks at the shell, i mean ,the shell should have the effect as irradiation, the enemies must hide themselves to prevent from being hurt
[X]-RayCat: thanks for your information,the code is like the following:
new Float:ret[3]
hitid = trace_line(bhs[j], bhpos[j], zmpos[i], ret)
if(hitid != zms[i])continue //skip if the shell cannot radiate the zombie
Also thank Bugsy
Last edited by powwoww; 05-24-2009 at 12:35.
Reason: solved