Alright thanks. This doesn't seem to be working properly for me yet.
I'm trying to return the entity index the traceline is hitting but it seems to be incorrect.
PHP Code:
engfunc(EngFunc_TraceLine, playerOrg, grenadeOrg, 0, 2, 0);
client_print(0, print_chat, "%i", get_tr2(0, TR_pHit));
The above code will always either return the players index, or the grenades index. Is it supposed to be random like that? Shouldn't it only be displaying the grenade index since I'm tracing from the players origin to the grenades?
Also, it seems tracelines go through walls? When I run out of view of the grenade it will still display the player index or the grenade index.