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

Function NPC_FaceEntity

codeJK2/game/NPC_utils.cpp:1316–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1314*/
1315
1316qboolean NPC_FaceEntity( gentity_t *ent, qboolean doPitch )
1317{
1318 vec3_t entPos;
1319
1320 //Get the positions
1321 CalcEntitySpot( ent, SPOT_HEAD_LEAN, entPos );
1322
1323 return NPC_FacePosition( entPos, doPitch );
1324}
1325
1326/*
1327-------------------------

Callers 7

NAV_ResolveBlockFunction · 0.70
NAV_TestForBlockedFunction · 0.70
Jedi_JumpingFunction · 0.70
Jedi_PatrolFunction · 0.70
NPC_BSJedi_FollowLeaderFunction · 0.70
NPC_FaceEnemyFunction · 0.70

Calls 2

CalcEntitySpotFunction · 0.70
NPC_FacePositionFunction · 0.70

Tested by

no test coverage detected