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

Go to the source code of this file.

Macros

#define COVER_AIM_ANGLE_EPSILON   10
 
#define NEAR_NODE_DIST_SQR   SQR(24)
 

Functions

function calculateCoverDirection (behaviorTreeEntity, stepOut)
 
function canBeFlanked (behaviorTreeEntity)
 
function private canBeFlankedService (behaviorTreeEntity)
 
function chooseCoverDirection (behaviorTreeEntity, stepOut)
 
function cleanupCoverMode (behaviorTreeEntity)
 
function clearCoverShootStartTime (behaviorTreeEntity)
 
function private continueLeaningAtCoverCondition (behaviorTreeEntity)
 
function private coverFlankedActionTerminate (behaviorTreeEntity)
 
function private coverFlankedInitialize (behaviorTreeEntity)
 
function private coverIdleInitialize (behaviorTreeEntity)
 
function private coverIdleTerminate (behaviorTreeEntity)
 
function private coverIdleUpdate (behaviorTreeEntity)
 
function private coverLeanInitialize (behaviorTreeEntity)
 
function private coverLeanTerminate (behaviorTreeEntity)
 
function private coverOverInitialize (behaviorTreeEntity)
 
function private coverOverTerminate (behaviorTreeEntity)
 
function private coverPeekInitialize (behaviorTreeEntity)
 
function private coverPeekTerminate (behaviorTreeEntity)
 
function private coverReloadInitialize (behaviorTreeEntity)
 
function isAtCoverCondition (behaviorTreeEntity)
 
function isAtCoverModeNone (behaviorTreeEntity)
 
function isAtCoverModeOver (behaviorTreeEntity)
 
function isAtCoverStrictCondition (behaviorTreeEntity)
 
function isAtCrouchNode (behaviorTreeEntity)
 
function isExposedAtCoverCondition (behaviorTreeEntity)
 
function private isFlankedByEnemyAtCover (behaviorTreeEntity)
 
function isSuppressedAtCoverCondition (behaviorTreeEntity)
 
function keepClaimedNodeAndChooseCoverDirection (behaviorTreeEntity)
 
function refillAmmoAndCleanupCoverMode (behaviorTreeEntity)
 
function autoexec RegisterBehaviorScriptFunctions ()
 
function resetCoverParameters (behaviorTreeEntity)
 
function setCanBeFlanked (behaviorTreeEntity, canBeFlanked)
 
function setCoverShootStartTime (behaviorTreeEntity)
 
function shouldCoverIdleOnly (behaviorTreeEntity)
 
function private shouldLeanAtCoverCondition (behaviorTreeEntity)
 
function private shouldOverAtCoverCondition (entity)
 
function private supportsLeanCoverCondition (behaviorTreeEntity)
 
function private supportsOverCoverCondition (behaviorTreeEntity)
 
function private supportsPeekCoverCondition (behaviorTreeEntity)
 

Macro Definition Documentation

◆ COVER_AIM_ANGLE_EPSILON

#define COVER_AIM_ANGLE_EPSILON   10

Definition at line 18 of file archetype_cover_utility.gsc.

◆ NEAR_NODE_DIST_SQR

#define NEAR_NODE_DIST_SQR   SQR(24)

Definition at line 355 of file archetype_cover_utility.gsc.

Function Documentation

◆ calculateCoverDirection()

◆ canBeFlanked()

function canBeFlanked ( behaviorTreeEntity  )

◆ canBeFlankedService()

function private canBeFlankedService ( behaviorTreeEntity  )

Definition at line 323 of file archetype_cover_utility.gsc.

References setCanBeFlanked().

Referenced by RegisterBehaviorScriptFunctions().

◆ chooseCoverDirection()

◆ cleanupCoverMode()

◆ clearCoverShootStartTime()

function clearCoverShootStartTime ( behaviorTreeEntity  )

◆ continueLeaningAtCoverCondition()

function private continueLeaningAtCoverCondition ( behaviorTreeEntity  )

◆ coverFlankedActionTerminate()

function private coverFlankedActionTerminate ( behaviorTreeEntity  )

Definition at line 346 of file archetype_cover_utility.gsc.

References releaseClaimNode().

Referenced by RegisterBehaviorScriptFunctions().

◆ coverFlankedInitialize()

function private coverFlankedInitialize ( behaviorTreeEntity  )

◆ coverIdleInitialize()

function private coverIdleInitialize ( behaviorTreeEntity  )

◆ coverIdleTerminate()

function private coverIdleTerminate ( behaviorTreeEntity  )

Definition at line 306 of file archetype_cover_utility.gsc.

References cleanupCoverMode(), and releaseClaimNode().

Referenced by RegisterBehaviorScriptFunctions().

◆ coverIdleUpdate()

function private coverIdleUpdate ( behaviorTreeEntity  )

Definition at line 298 of file archetype_cover_utility.gsc.

References releaseClaimNode().

Referenced by RegisterBehaviorScriptFunctions().

◆ coverLeanInitialize()

function private coverLeanInitialize ( behaviorTreeEntity  )

◆ coverLeanTerminate()

function private coverLeanTerminate ( behaviorTreeEntity  )

◆ coverOverInitialize()

function private coverOverInitialize ( behaviorTreeEntity  )

◆ coverOverTerminate()

function private coverOverTerminate ( behaviorTreeEntity  )

◆ coverPeekInitialize()

function private coverPeekInitialize ( behaviorTreeEntity  )

◆ coverPeekTerminate()

function private coverPeekTerminate ( behaviorTreeEntity  )

◆ coverReloadInitialize()

function private coverReloadInitialize ( behaviorTreeEntity  )

◆ isAtCoverCondition()

function isAtCoverCondition ( behaviorTreeEntity  )

◆ isAtCoverModeNone()

function isAtCoverModeNone ( behaviorTreeEntity  )

◆ isAtCoverModeOver()

function isAtCoverModeOver ( behaviorTreeEntity  )

◆ isAtCoverStrictCondition()

function isAtCoverStrictCondition ( behaviorTreeEntity  )

Definition at line 378 of file archetype_cover_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ isAtCrouchNode()

function isAtCrouchNode ( behaviorTreeEntity  )

◆ isExposedAtCoverCondition()

function isExposedAtCoverCondition ( behaviorTreeEntity  )

Definition at line 398 of file archetype_cover_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ isFlankedByEnemyAtCover()

function private isFlankedByEnemyAtCover ( behaviorTreeEntity  )

Definition at line 315 of file archetype_cover_utility.gsc.

References canBeFlanked().

Referenced by RegisterBehaviorScriptFunctions().

◆ isSuppressedAtCoverCondition()

function isSuppressedAtCoverCondition ( behaviorTreeEntity  )

◆ keepClaimedNodeAndChooseCoverDirection()

function keepClaimedNodeAndChooseCoverDirection ( behaviorTreeEntity  )

◆ refillAmmoAndCleanupCoverMode()

function refillAmmoAndCleanupCoverMode ( behaviorTreeEntity  )

Definition at line 75 of file archetype_cover_utility.gsc.

References cleanupCoverMode(), and refillAmmo().

Referenced by RegisterBehaviorScriptFunctions().

◆ RegisterBehaviorScriptFunctions()

◆ resetCoverParameters()

◆ setCanBeFlanked()

function setCanBeFlanked ( behaviorTreeEntity  ,
canBeFlanked   
)

◆ setCoverShootStartTime()

function setCoverShootStartTime ( behaviorTreeEntity  )

◆ shouldCoverIdleOnly()

function shouldCoverIdleOnly ( behaviorTreeEntity  )

Definition at line 403 of file archetype_cover_utility.gsc.

References get_behavior_attribute(), and IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldLeanAtCoverCondition()

◆ shouldOverAtCoverCondition()

◆ supportsLeanCoverCondition()

function private supportsLeanCoverCondition ( behaviorTreeEntity  )

◆ supportsOverCoverCondition()

function private supportsOverCoverCondition ( behaviorTreeEntity  )

◆ supportsPeekCoverCondition()

function private supportsPeekCoverCondition ( behaviorTreeEntity  )

Definition at line 86 of file archetype_cover_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().