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

Method LoadScript

neo/d3xp/Item.cpp:779–791  ·  view source on GitHub ↗

=============== idItemTeam::LoadScript =============== */

Source from the content-addressed store, hash-verified

777===============
778*/
779function_t * idItemTeam::LoadScript( const char * script ) {
780 function_t * function = NULL;
781 idStr funcname = spawnArgs.GetString( script, "" );
782 if ( funcname.Length() ) {
783 function = gameLocal.program.FindFunction( funcname );
784 if ( function == NULL ) {
785#ifdef _DEBUG
786 gameLocal.Warning( "idItemTeam '%s' at (%s) calls unknown function '%s'", name.c_str(), GetPhysics()->GetOrigin().ToString(0), funcname.c_str() );
787#endif
788 }
789 }
790 return function;
791}
792
793
794/*

Callers

nothing calls this directly

Calls 7

GetStringMethod · 0.45
LengthMethod · 0.45
FindFunctionMethod · 0.45
WarningMethod · 0.45
c_strMethod · 0.45
ToStringMethod · 0.45
GetOriginMethod · 0.45

Tested by

no test coverage detected