Quote:
|
Originally Posted by XxAvalanchexX
pHit would probably be 0, and I assume that flFraction would be 1.0
|
no it would be -1, even though proly should be 0 as 0 is world in HL engine
Code:
case TR_Hit:
if (!FNullEnt(g_tr.pHit))
return ENTINDEX(g_tr.pHit);
else
return -1;
and yes use avalanches way as it sets the var to return value by the native.