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

Function NPC_JumpBackingUp

code/game/NPC_move.cpp:598–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598qboolean NPC_JumpBackingUp()
599{
600 if (NPCInfo->jumpBackupTime)
601 {
602 if (level.time<NPCInfo->jumpBackupTime)
603 {
604 STEER::Activate(NPC);
605 STEER::Flee(NPC, NPCInfo->jumpDest);
606 STEER::DeActivate(NPC, &ucmd);
607 NPC_FacePosition(NPCInfo->jumpDest, qtrue);
608 NPC_UpdateAngles( qfalse, qtrue );
609 return qtrue;
610 }
611
612 NPCInfo->jumpBackupTime = 0;
613 return NPC_TryJump();
614 }
615 return qfalse;
616}
617
618
619

Callers 1

NPC_RunBehaviorFunction · 0.85

Calls 4

ActivateFunction · 0.85
NPC_TryJumpFunction · 0.85
NPC_FacePositionFunction · 0.70
NPC_UpdateAnglesFunction · 0.70

Tested by

no test coverage detected