(float[] start, float[] mins, float[] maxs,
float[] end)
| 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 |
no test coverage detected