Quote:
Originally Posted by ConnorMcLeod
Because you take in account distance to wall ?
|
Distance from player to wall — 320 units (resolution 640x480, 640/2 = 320).
Thanks for stock. I use it (hope correct):
PHP Code:
public fw_TraceAttack(victim, attacker, Float:damage, Float:direction[3], tr, damage_type)
{
new Float:rvec[3];
pev(attacker, pev_v_angle, rvec);
get_aim_origin(attacker, rvec);
client_print(0, print_console, "%f %f", rvec[1], rvec[2]);
}
And first shot got:
PHP Code:
5.581364 0.999273
Strange why not 0 0, but with this code I got:

Think is not bad result.