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

Function NPC_Jumping

code/game/NPC_move.cpp:573–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573qboolean NPC_Jumping()
574{
575 if ( NPCInfo->jumpTime )
576 {
577 if ( !(NPC->client->ps.pm_flags & PMF_JUMPING )//forceJumpZStart )
578 && !(NPC->client->ps.pm_flags&PMF_TRIGGER_PUSHED))
579 {//landed
580 NPCInfo->jumpTime = 0;
581 }
582 else
583 {
584 // if (NPCInfo->jumpTarget)
585 // {
586 // NPC_FaceEntity(NPCInfo->jumpTarget, qtrue);
587 // }
588 // else
589 {
590 NPC_FacePosition(NPCInfo->jumpDest, qtrue);
591 }
592 return qtrue;
593 }
594 }
595 return qfalse;
596}
597
598qboolean NPC_JumpBackingUp()
599{

Callers 4

Jedi_AttackDecideFunction · 0.85
Jedi_CombatFunction · 0.85
DeActivateMethod · 0.85
NPC_BSFollowLeaderFunction · 0.85

Calls 1

NPC_FacePositionFunction · 0.70

Tested by

no test coverage detected