(edict_t ent, GameImportsImpl gameImports)
| 375 | * returned hull. ================ |
| 376 | */ |
| 377 | private static int SV_HullForEntity(edict_t ent, GameImportsImpl gameImports) { |
| 378 | cmodel_t model; |
| 379 | // decide which clipping hull to use, based on the size |
| 380 | if (ent.solid == Defines.SOLID_BSP) { |
| 381 | // explicit hulls in the BSP model |
| 382 | model = gameImports.sv.models[ent.s.modelindex]; |
| 383 | if (null == model) |
| 384 | Com.Error(Defines.ERR_FATAL, |
| 385 | "MOVETYPE_PUSH with a non bsp model"); |
| 386 | return model.headnode; |
| 387 | } |
| 388 | // create a temp hull from bounding box sizes |
| 389 | return gameImports.cm.HeadnodeForBox(ent.mins, ent.maxs); |
| 390 | } |
| 391 | |
| 392 | private static void SV_ClipMoveToEntities(moveclip_t clip, GameImportsImpl gameImports) { |
| 393 | int i, num; |
no test coverage detected