added traceresult stuff

This commit is contained in:
David Anderson
2004-09-14 06:16:52 +00:00
parent 3d9bf8bc93
commit f171842cf8
8 changed files with 247 additions and 4 deletions

View File

@ -35,4 +35,10 @@ native register_forward(_forwardType,_function[],_post=0);
native forward_return(type,{Float,Sql,Result,_}:...);
native engfunc(type,{Float,Sql,Result,_}:...);
native dllfunc(type,{Float,Sql,Result,_}:...);
native dllfunc(type,{Float,Sql,Result,_}:...);
//only use this with functions that pass a Trace
// get: zero extra params - return int, one extra param = byref float or vector
// set: use anything
native get_tr(Trace:tr, TraceResult:tr_member, {Float,_}:...);
native set_tr(Trace:tr, TraceResult:tr_member, {Float,_}:...);

View File

@ -437,3 +437,17 @@ enum {
FM_CreateInstancedBaseline, // done
FM_AllowLagCompensation, // done
};
enum TraceResult
{
TR_AllSolid,
TR_StartSolid,
TR_InOpen,
TR_InWater,
TR_flFraction,
TR_vecEndPos,
TR_flPlaneDist,
TR_vecPlaneNormal,
TR_pHit,
TR_iHitgroup,
};