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

Method SV_HullForEntity

server/src/main/java/jake2/server/SV_WORLD.java:377–390  ·  view source on GitHub ↗
(edict_t ent, GameImportsImpl gameImports)

Source from the content-addressed store, hash-verified

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;

Callers 2

SV_PointContentsMethod · 0.95
SV_ClipMoveToEntitiesMethod · 0.95

Calls 2

ErrorMethod · 0.95
HeadnodeForBoxMethod · 0.80

Tested by

no test coverage detected