MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / LoadModel

Method LoadModel

neo/game/physics/Clip.cpp:217–232  ·  view source on GitHub ↗

================ idClipModel::LoadModel ================ */

Source from the content-addressed store, hash-verified

215================
216*/
217bool idClipModel::LoadModel( const char *name ) {
218 renderModelHandle = -1;
219 if ( traceModelIndex != -1 ) {
220 FreeTraceModel( traceModelIndex );
221 traceModelIndex = -1;
222 }
223 collisionModelHandle = collisionModelManager->LoadModel( name, false );
224 if ( collisionModelHandle ) {
225 collisionModelManager->GetModelBounds( collisionModelHandle, bounds );
226 collisionModelManager->GetModelContents( collisionModelHandle, contents );
227 return true;
228 } else {
229 bounds.Zero();
230 return false;
231 }
232}
233
234/*
235================

Callers 12

CacheDictionaryMediaMethod · 0.45
BloodSplatMethod · 0.45
SetCombatModelMethod · 0.45
SpawnMethod · 0.45
SpawnMethod · 0.45
SetCombatModelMethod · 0.45
AF_CreateMeshMethod · 0.45
TraceBoundsMethod · 0.45
RestoreMethod · 0.45
CheckModelMethod · 0.45
InitMethod · 0.45
CheckDuckMethod · 0.45

Calls 4

GetModelBoundsMethod · 0.80
GetModelContentsMethod · 0.80
ZeroMethod · 0.45
GetRenderEntityMethod · 0.45

Tested by

no test coverage detected