okay I didn't test it, yet but this should work:
Code:
var c_trace_ent(ENTITY* trace_ent, VECTOR* from, VECTOR* to, long flags, CONTACT * _hit)
{
	var _group = trace_ent.group; // set a backup value
	
	trace_ent.group = 1;
	c_ignore(0);
	
	var _dist = c_trace(from, to, flags);
	
	if(_hit) _hit = hit; // pass hit information (if _hit exists)
	
	trace_ent.group = _group;
	
	return _dist; // return trace distance
}


Last edited by Kartoffel; 12/06/12 14:41.

POTATO-MAN saves the day! - Random