MCPcopy Create free account
hub / github.com/demoth/jake2 / PMTrace

Method PMTrace

client/src/main/java/jake2/client/CL_pred.java:153–168  ·  view source on GitHub ↗
(float[] start, float[] mins, float[] maxs,
            float[] end)

Source from the content-addressed store, hash-verified

151 public static edict_t DUMMY_ENT = new edict_t(-1);
152
153 static trace_t PMTrace(float[] start, float[] mins, float[] maxs,
154 float[] end) {
155 trace_t t;
156
157 // check against world
158 t = ClientGlobals.cm.BoxTrace(start, end, mins, maxs, 0, Defines.MASK_PLAYERSOLID);
159
160 if (t.fraction < 1.0f) {
161 t.ent = DUMMY_ENT;
162 }
163
164 // check all other solid models
165 ClipMoveToEntities(start, mins, maxs, end, t);
166
167 return t;
168 }
169
170 /*
171 * ================= PMpointcontents

Callers 1

traceMethod · 0.95

Calls 2

ClipMoveToEntitiesMethod · 0.95
BoxTraceMethod · 0.80

Tested by

no test coverage detected