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

Function GetDir

code/cgame/FxPrimitives.cpp:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void GetDir( int clientID, vec3_t org )
77{
78 if ( clientID >=0 )
79 {
80 centity_t *cent = &cg_entities[clientID];
81
82 if ( cent && cent->gent && cent->gent->client )
83 {
84 VectorCopy( cent->gent->client->renderInfo.muzzleDir, org );
85 }
86 }
87}
88
89//--------------------------
90//

Callers 1

UpdateMethod · 0.70

Calls 1

VectorCopyFunction · 0.85

Tested by

no test coverage detected