| 43 | |
| 44 | /////////////////////////////////////// |
| 45 | private static edict_t[] SV_TestEntityPosition(edict_t ent, GameExportsImpl gameExports) { |
| 46 | int mask; |
| 47 | |
| 48 | if (ent.clipmask != 0) |
| 49 | mask = ent.clipmask; |
| 50 | else |
| 51 | mask = Defines.MASK_SOLID; |
| 52 | |
| 53 | trace_t trace = gameExports.gameImports.trace(ent.s.origin, ent.mins, ent.maxs, |
| 54 | ent.s.origin, ent, mask); |
| 55 | |
| 56 | if (trace.startsolid) |
| 57 | return gameExports.g_edicts; |
| 58 | |
| 59 | return null; |
| 60 | } |
| 61 | |
| 62 | /////////////////////////////////////// |
| 63 | private void SV_CheckVelocity(SubgameEntity ent) { |