MCPcopy Create free account
hub / github.com/JACoders/OpenJK / GetTag

Method GetTag

code/game/Q3_Interface.cpp:8202–8222  ·  view source on GitHub ↗

Gets the value of a tag by the give name.

Source from the content-addressed store, hash-verified

8200
8201// Gets the value of a tag by the give name.
8202int CQuake3GameInterface::GetTag( int entID, const char *name, int lookup, vec3_t info )
8203{
8204 gentity_t *ent = &g_entities[ entID ];
8205
8206 VALIDATEB( ent );
8207
8208 switch ( lookup )
8209 {
8210 case TYPE_ORIGIN:
8211 //return TAG_GetOrigin( ent->targetname, name, info );
8212 return TAG_GetOrigin( ent->ownername, name, info );
8213 break;
8214
8215 case TYPE_ANGLES:
8216 //return TAG_GetAngles( ent->targetname, name, info );
8217 return TAG_GetAngles( ent->ownername, name, info );
8218 break;
8219 }
8220
8221 return false;
8222}
8223
8224// void CQuake3GameInterface::Lerp2Start( int taskID, int entID, float duration ) {}
8225// void CQuake3GameInterface::Lerp2End( int taskID, int entID, float duration ) {}

Callers 4

GetVectorMethod · 0.45
GetMethod · 0.45
RotateMethod · 0.45
EvaluateConditionalMethod · 0.45

Calls 2

TAG_GetOriginFunction · 0.70
TAG_GetAnglesFunction · 0.70

Tested by

no test coverage detected