‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
archetype_human_locomotion.gsc File Reference

Go to the source code of this file.

Macros

#define ARRIVAL_HEIGHT_TOLERANCE   30
 
#define DEFAULT_TAC_ARRIVE_DISTANCE   35
 
#define MINIMUM_TAC_ARRIVE_ANGLE   60
 
#define MINIMUM_TAC_ARRIVE_DISTANCE   25
 
#define PAIN_CHANCE   0.25
 
#define PAIN_TIME_LENGTH   100
 
#define PAIN_TIME_WINDOW   3000
 
#define TACTICAL_SCAN_BLEND_OUT   0.2
 
#define TACTICAL_SCAN_INTERVAL   2000
 

Functions

function private beginTacticalWalkPain (entity)
 
function private BSMLocomotionHasValidPainInterrupt (entity)
 
function private checkCoverArrivalConditions (coverEnterPos, coverPos)
 
function private combatLocomotionStart (behaviorTreeEntity)
 
function private combatLocomotionUpdate (behaviorTreeEntity)
 
function private continueTacticalWalkScan (entity)
 
function private DeltaRotate (delta, yaw)
 
function private GetArrivalSplitTime (arrivalAnim, isright)
 
function private humanCombatLocomotionCondition (behaviorTreeEntity)
 
function private humanNonCombatLocomotionCondition (behaviorTreeEntity)
 
function private humanShouldSprint ()
 
function private isArrivingFour (arrivalAngle)
 
function private isArrivingOne (arrivalAngle)
 
function private isArrivingSix (arrivalAngle)
 
function private isArrivingThree (arrivalAngle)
 
function private isArrivingTwo (arrivalAngle)
 
function private isFacingEight (facingAngle)
 
function private isFacingFour (facingAngle)
 
function private isFacingNine (facingAngle)
 
function private isFacingSeven (facingAngle)
 
function private isFacingSix (facingAngle)
 
function private nonCombatLocomotionUpdate (behaviorTreeEntity)
 
function private planHumanArrivalAtCover (behaviorTreeEntity, arrivalAnim)
 
function private prepareForMovement (behaviorTreeEntity)
 
function private prepareToMoveAwayFromNearByEnemy (behaviorTreeEntity)
 
function private prepareToStopNearEnemy (behaviorTreeEntity)
 
function autoexec RegisterBehaviorScriptfunctions ()
 
function private shouldArriveExposed (behaviorTreeEntity)
 
function private shouldContinueTacticalWalkPain (entity)
 
function private shouldPlanArrivalIntoCover (behaviorTreeEntity)
 
function private shouldSwitchToTacticalWalkFromRun (behaviorTreeEntity)
 
function private shouldTacticalArriveCondition (behaviorTreeEntity)
 
function private shouldTacticalWalkPain (entity)
 
function private shouldTacticalWalkScan (entity)
 
function private tacticalWalkScanTerminate (entity)
 

Macro Definition Documentation

◆ ARRIVAL_HEIGHT_TOLERANCE

#define ARRIVAL_HEIGHT_TOLERANCE   30

Definition at line 765 of file archetype_human_locomotion.gsc.

◆ DEFAULT_TAC_ARRIVE_DISTANCE

#define DEFAULT_TAC_ARRIVE_DISTANCE   35

Definition at line 535 of file archetype_human_locomotion.gsc.

◆ MINIMUM_TAC_ARRIVE_ANGLE

#define MINIMUM_TAC_ARRIVE_ANGLE   60

Definition at line 537 of file archetype_human_locomotion.gsc.

◆ MINIMUM_TAC_ARRIVE_DISTANCE

#define MINIMUM_TAC_ARRIVE_DISTANCE   25

Definition at line 536 of file archetype_human_locomotion.gsc.

◆ PAIN_CHANCE

#define PAIN_CHANCE   0.25

Definition at line 148 of file archetype_human_locomotion.gsc.

◆ PAIN_TIME_LENGTH

#define PAIN_TIME_LENGTH   100

Definition at line 167 of file archetype_human_locomotion.gsc.

◆ PAIN_TIME_WINDOW

#define PAIN_TIME_WINDOW   3000

Definition at line 147 of file archetype_human_locomotion.gsc.

◆ TACTICAL_SCAN_BLEND_OUT

#define TACTICAL_SCAN_BLEND_OUT   0.2

Definition at line 110 of file archetype_human_locomotion.gsc.

◆ TACTICAL_SCAN_INTERVAL

#define TACTICAL_SCAN_INTERVAL   2000

Definition at line 70 of file archetype_human_locomotion.gsc.

Function Documentation

◆ beginTacticalWalkPain()

function private beginTacticalWalkPain ( entity  )

Definition at line 160 of file archetype_human_locomotion.gsc.

Referenced by RegisterBehaviorScriptfunctions().

◆ BSMLocomotionHasValidPainInterrupt()

function private BSMLocomotionHasValidPainInterrupt ( entity  )

◆ checkCoverArrivalConditions()

function private checkCoverArrivalConditions ( coverEnterPos  ,
coverPos   
)

Definition at line 766 of file archetype_human_locomotion.gsc.

References ARRIVAL_HEIGHT_TOLERANCE, RED, and trace().

Referenced by planHumanArrivalAtCover().

◆ combatLocomotionStart()

function private combatLocomotionStart ( behaviorTreeEntity  )

◆ combatLocomotionUpdate()

function private combatLocomotionUpdate ( behaviorTreeEntity  )

◆ continueTacticalWalkScan()

function private continueTacticalWalkScan ( entity  )

◆ DeltaRotate()

function private DeltaRotate ( delta  ,
yaw   
)

Definition at line 860 of file archetype_human_locomotion.gsc.

Referenced by GetArrivalSplitTime().

◆ GetArrivalSplitTime()

function private GetArrivalSplitTime ( arrivalAnim  ,
isright   
)

◆ humanCombatLocomotionCondition()

function private humanCombatLocomotionCondition ( behaviorTreeEntity  )

Definition at line 315 of file archetype_human_locomotion.gsc.

References humanShouldSprint(), and IS_TRUE.

Referenced by RegisterBehaviorScriptfunctions().

◆ humanNonCombatLocomotionCondition()

function private humanNonCombatLocomotionCondition ( behaviorTreeEntity  )

Definition at line 298 of file archetype_human_locomotion.gsc.

References humanShouldSprint(), and IS_TRUE.

Referenced by RegisterBehaviorScriptfunctions().

◆ humanShouldSprint()

◆ isArrivingFour()

function private isArrivingFour ( arrivalAngle  )

Definition at line 433 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isArrivingOne()

function private isArrivingOne ( arrivalAngle  )

Definition at line 442 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isArrivingSix()

function private isArrivingSix ( arrivalAngle  )

Definition at line 469 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isArrivingThree()

function private isArrivingThree ( arrivalAngle  )

Definition at line 460 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isArrivingTwo()

function private isArrivingTwo ( arrivalAngle  )

Definition at line 451 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isFacingEight()

function private isFacingEight ( facingAngle  )

Definition at line 499 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isFacingFour()

function private isFacingFour ( facingAngle  )

Definition at line 490 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isFacingNine()

function private isFacingNine ( facingAngle  )

Definition at line 526 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isFacingSeven()

function private isFacingSeven ( facingAngle  )

Definition at line 508 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ isFacingSix()

function private isFacingSix ( facingAngle  )

Definition at line 517 of file archetype_human_locomotion.gsc.

Referenced by shouldTacticalArriveCondition().

◆ nonCombatLocomotionUpdate()

function private nonCombatLocomotionUpdate ( behaviorTreeEntity  )

◆ planHumanArrivalAtCover()

function private planHumanArrivalAtCover ( behaviorTreeEntity  ,
arrivalAnim   
)

◆ prepareForMovement()

function private prepareForMovement ( behaviorTreeEntity  )

◆ prepareToMoveAwayFromNearByEnemy()

function private prepareToMoveAwayFromNearByEnemy ( behaviorTreeEntity  )

Definition at line 204 of file archetype_human_locomotion.gsc.

Referenced by RegisterBehaviorScriptfunctions().

◆ prepareToStopNearEnemy()

function private prepareToStopNearEnemy ( behaviorTreeEntity  )

Definition at line 198 of file archetype_human_locomotion.gsc.

Referenced by RegisterBehaviorScriptfunctions().

◆ RegisterBehaviorScriptfunctions()

◆ shouldArriveExposed()

function private shouldArriveExposed ( behaviorTreeEntity  )

Definition at line 178 of file archetype_human_locomotion.gsc.

References get_behavior_attribute().

Referenced by RegisterBehaviorScriptfunctions().

◆ shouldContinueTacticalWalkPain()

function private shouldContinueTacticalWalkPain ( entity  )

Definition at line 168 of file archetype_human_locomotion.gsc.

References PAIN_TIME_LENGTH.

Referenced by RegisterBehaviorScriptfunctions().

◆ shouldPlanArrivalIntoCover()

function private shouldPlanArrivalIntoCover ( behaviorTreeEntity  )

Definition at line 210 of file archetype_human_locomotion.gsc.

Referenced by RegisterBehaviorScriptfunctions().

◆ shouldSwitchToTacticalWalkFromRun()

function private shouldSwitchToTacticalWalkFromRun ( behaviorTreeEntity  )

Definition at line 255 of file archetype_human_locomotion.gsc.

References GetAiAttribute(), HasAiAttribute(), and SQR.

Referenced by RegisterBehaviorScriptfunctions().

◆ shouldTacticalArriveCondition()

◆ shouldTacticalWalkPain()

function private shouldTacticalWalkPain ( entity  )

◆ shouldTacticalWalkScan()

function private shouldTacticalWalkScan ( entity  )

◆ tacticalWalkScanTerminate()

function private tacticalWalkScanTerminate ( entity  )

Definition at line 63 of file archetype_human_locomotion.gsc.

Referenced by RegisterBehaviorScriptfunctions().