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

Function GetOrigin

code/cgame/FxPrimitives.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void GetOrigin( int clientID, vec3_t org )
64{
65 if ( clientID >=0 )
66 {
67 centity_t *cent = &cg_entities[clientID];
68
69 if ( cent && cent->gent && cent->gent->client )
70 {
71 VectorCopy( cent->gent->client->renderInfo.muzzlePoint, org );
72 }
73 }
74}
75
76void GetDir( int clientID, vec3_t org )
77{

Callers 1

UpdateMethod · 0.70

Calls 1

VectorCopyFunction · 0.85

Tested by

no test coverage detected