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

Go to the source code of this file.

Macros

#define AGGRESSIVE_BOOST_TIME   5000
 
#define ARCHETYPE_VEHICLE_RAPS   "raps"
 
#define DEFAULT_ENEMY_YAW   0
 
#define MAX_FRUSTRATION   4
 
#define MIN_FRUSTRATION   0
 
#define NEAR_COVER_NODE_SQ   SQR( 24 )
 
#define NEAR_COVER_NODE_WIDE_SQ   SQR( 64 )
 
#define SHOULD_MELEE_CHECK_TIME   50
 
#define TRACKING_TURN_GIVE_UP_TIME   5000
 
#define TRACKING_TURN_PERFECT_INFO_DIST   180
 

Functions

function private _dropRiotShield (riotshieldInfo)
 
function ActorGetPredictedYawToEnemy (entity, lookAheadTime)
 
function AddAIOverrideDamageCallback (entity, callback, addToFront)
 
function AddAIOverrideKilledCallback (entity, callback)
 
function attachRiotshield (entity, riotshieldWeapon, riotshieldModel, riotshieldTag)
 
function balconyDeath (behaviorTreeEntity)
 
function BB_ActorGetDamageLocation ()
 
function BB_ActorGetEnemyYaw ()
 
function BB_ActorGetFatalDamageLocation ()
 
function BB_ActorGetPerfectEnemyYaw ()
 
function BB_ActorGetReactYaw ()
 
function BB_ActorGetTrackingTurnYaw ()
 
function BB_ActorHasEnemy ()
 
function BB_ActorIsPatroling ()
 
function private BB_GetAwareness ()
 
function private BB_GetAwarenessPrevious ()
 
function BB_GetCoverConcealed ()
 
function BB_GetCurrentCoverNodeType ()
 
function BB_GetCurrentLocationCoverNodeType ()
 
function BB_GetDamageDirection ()
 
function BB_GetDamageMOD ()
 
function BB_GetDamageTaken ()
 
function BB_GetDamageWeapon ()
 
function BB_GetDamageWeaponClass ()
 
function BB_GetHighestStance ()
 
function BB_GetLocomotionExitYaw (blackboard, yaw)
 
function BB_GetLocomotionFaceEnemyQuadrant ()
 
function BB_GetLocomotionFaceEnemyQuadrantPrevious ()
 
function BB_GetLocomotionPainType ()
 
function BB_GetLookaheadAngle ()
 
function BB_GetPreviousCoverNodeType ()
 
function private BB_GetStairsNumSkipSteps ()
 
function BB_GetWeaponClass ()
 
function private BB_GetYawToCoverNode ()
 
function burnedKilled (behaviorTreeEntity)
 
function calculateNodeOffsetPosition (node, nodeOffset)
 
function canSeeEnemyWrapper ()
 
function chooseBestCoverNodeASAP (behaviorTreeEntity)
 
function private chooseBetterCoverService (behaviorTreeEntity)
 
function chooseBetterCoverServiceCodeVersion (behaviorTreeEntity)
 
function chooseFrontCoverDirection (behaviorTreeEntity)
 ‪Sets the cover direction blackboard to the front direction. More...
 
function clampFrustration (frustrationLevel)
 
function private cleanupChargeMelee (behaviorTreeEntity)
 
function cleanupChargeMeleeAttack (behaviorTreeEntity)
 
function private cleanupMelee (behaviorTreeEntity)
 
function ClearAIOverrideDamageCallbacks (entity)
 
function dropRiotshield (behaviorTreeEntity)
 
function electrifiedKilled (behaviorTreeEntity)
 
function explosiveKilled (behaviorTreeEntity)
 
function flagEnemyUnAttackableService (behaviorTreeEntity)
 
function forceRagdoll (entity)
 
function getAimPitchToEnemyFromNode (behaviorTreeEntity, node, enemy)
 ‪Returns the pitch angles between a node and an enemy behaviorTreeEntity. More...
 
function getAimYawToEnemyFromNode (behaviorTreeEntity, node, enemy)
 ‪Returns the yaw angles between a node and an enemy behaviorTreeEntity. More...
 
function GetAngleUsingDirection (direction)
 
function getBestCoverNodeIfAvailable (behaviorTreeEntity)
 
function getCoverType (node)
 
function getHighestNodeStance (node)
 
function getSecondBestCoverNodeIfAvailable (behaviorTreeEntity)
 
function hasAmmo (behaviorTreeEntity)
 
function hasCloseEnemyToMelee (entity)
 
function hasCloseEnemyToMeleeWithRange (entity, melee_range_sq)
 
function hasEnemy (behaviorTreeEntity)
 
function hasLowAmmo (behaviorTreeEntity)
 
function hasWeaponMalfunctioned (behaviorTreeEntity)
 
function inGrenadeBlastRadius (entity)
 
function isAtAttackObject (entity)
 
function isBalconyDeath (behaviorTreeEntity)
 
function isCoverConcealed (node)
 
function isFrustrated (behaviorTreeEntity)
 
function private isInPhalanx (entity)
 
function private isInPhalanxStance (entity)
 
function isLastKnownEnemyPositionApproachable (behaviorTreeEntity)
 
function isSafeFromGrenades (entity)
 
function isStanceAllowedAtNode (stance, node)
 
function isUnarmed (behaviorTreeEntity)
 
function keepClaimNode (behaviorTreeEntity)
 
function locomotionShouldPatrol (behaviorTreeEntity)
 
function locomotionShouldStealth (behaviorTreeEntity)
 
function meleeAcquireMutex (behaviorTreeEntity)
 
function meleeReleaseMutex (behaviorTreeEntity)
 
function notCrouchingCondition (behaviorTreeEntity)
 
function notStandingCondition (behaviorTreeEntity)
 
function postShootLaserAndGlintOff (ai)
 
function private prepareForExposedMelee (behaviorTreeEntity)
 
function preShootLaserAndGlintOn (ai)
 
function rapsKilled (behaviorTreeEntity)
 
function recentlySawEnemy (behaviorTreeEntity)
 
function refillAmmo (behaviorTreeEntity)
 
function autoexec RegisterBehaviorScriptFunctions ()
 
function RegisterUtilityBlackboardAttributes ()
 
function releaseClaimNode (behaviorTreeEntity)
 
function RemoveAIOverrideDamageCallback (entity, callback)
 
function scriptStartRagdoll (behaviorTreeEntity)
 
function setCurrentWeapon (weapon)
 
function setNextFindBestCoverTime (behaviorTreeEntity, node)
 
function setPrimaryWeapon (weapon)
 
function setSecondaryWeapon (weapon)
 
function private setupChargeMeleeAttack (behaviorTreeEntity)
 
function private setupExplosionAnimScale (entity, asmStateName)
 
function private shouldAttackInChargeMelee (behaviorTreeEntity)
 
function shouldAttackObject (entity)
 
function shouldBeAggressive (behaviorTreeEntity)
 
function shouldChargeMelee (entity)
 
function shouldChooseBetterCover (behaviorTreeEntity)
 
function private shouldChooseSpecialDeath (behaviorTreeEntity)
 
function private shouldChooseSpecialPain (behaviorTreeEntity)
 
function private shouldChooseSpecialProneDeath (behaviorTreeEntity)
 
function private shouldChooseSpecialPronePain (behaviorTreeEntity)
 
function shouldMelee (entity)
 
function shouldMutexMelee (behaviorTreeEntity)
 
function shouldNormalMelee (behaviorTreeEntity)
 
function shouldOnlyFireAccurately (behaviorTreeEntity)
 
function shouldReactToNewEnemy (behaviorTreeEntity)
 
function shouldStealth (behaviorTreeEntity)
 
function shouldStealthResume (behaviorTreeEntity)
 
function shouldStopMoving (behaviorTreeEntity)
 
function shouldTacticalWalk (behaviorTreeEntity)
 
function private stealthIdleTerminate (behaviorTreeEntity)
 
function private stealthReactCondition (entity)
 
function private stealthReactStart (behaviorTreeEntity)
 
function private stealthReactTerminate (behaviorTreeEntity)
 
function private togglePhalanxStance (entity)
 
function private tookFlashbangDamage (entity)
 
function trackCoverParamsService (behaviorTreeEntity)
 
function tryAdvancingOnLastKnownPositionBehavior (behaviorTreeEntity)
 
function tryGoingToClosestNodeToEnemyBehavior (behaviorTreeEntity)
 
function tryRunningDirectlyToEnemyBehavior (behaviorTreeEntity)
 
function tryStoppingService (behaviorTreeEntity)
 
function updateFrustrationLevel (entity)
 
function useCoverNodeWrapper (behaviorTreeEntity, node)
 
function useCurrentPosition (entity)
 
function wasAtCoverNode ()
 

Macro Definition Documentation

◆ AGGRESSIVE_BOOST_TIME

#define AGGRESSIVE_BOOST_TIME   5000

Definition at line 1103 of file archetype_utility.gsc.

◆ ARCHETYPE_VEHICLE_RAPS

#define ARCHETYPE_VEHICLE_RAPS   "raps"

Definition at line 23 of file archetype_utility.gsc.

◆ DEFAULT_ENEMY_YAW

#define DEFAULT_ENEMY_YAW   0

Definition at line 672 of file archetype_utility.gsc.

◆ MAX_FRUSTRATION

#define MAX_FRUSTRATION   4

Definition at line 1086 of file archetype_utility.gsc.

◆ MIN_FRUSTRATION

#define MIN_FRUSTRATION   0

Definition at line 1087 of file archetype_utility.gsc.

◆ NEAR_COVER_NODE_SQ

#define NEAR_COVER_NODE_SQ   SQR( 24 )

Definition at line 250 of file archetype_utility.gsc.

◆ NEAR_COVER_NODE_WIDE_SQ

#define NEAR_COVER_NODE_WIDE_SQ   SQR( 64 )

Definition at line 251 of file archetype_utility.gsc.

◆ SHOULD_MELEE_CHECK_TIME

#define SHOULD_MELEE_CHECK_TIME   50

Definition at line 2706 of file archetype_utility.gsc.

◆ TRACKING_TURN_GIVE_UP_TIME

#define TRACKING_TURN_GIVE_UP_TIME   5000

Definition at line 981 of file archetype_utility.gsc.

◆ TRACKING_TURN_PERFECT_INFO_DIST

#define TRACKING_TURN_PERFECT_INFO_DIST   180

Definition at line 980 of file archetype_utility.gsc.

Function Documentation

◆ _dropRiotShield()

function private _dropRiotShield ( riotshieldInfo  )

Definition at line 2498 of file archetype_utility.gsc.

References ThrowWeapon().

Referenced by dropRiotshield().

◆ ActorGetPredictedYawToEnemy()

function ActorGetPredictedYawToEnemy ( entity  ,
lookAheadTime   
)

Definition at line 627 of file archetype_utility.gsc.

Referenced by BB_ActorGetEnemyYaw().

◆ AddAIOverrideDamageCallback()

◆ AddAIOverrideKilledCallback()

function AddAIOverrideKilledCallback ( entity  ,
callback   
)

◆ attachRiotshield()

function attachRiotshield ( entity  ,
riotshieldWeapon  ,
riotshieldModel  ,
riotshieldTag   
)

Definition at line 2522 of file archetype_utility.gsc.

Referenced by humanRiotshieldSpawnSetup().

◆ balconyDeath()

◆ BB_ActorGetDamageLocation()

◆ BB_ActorGetEnemyYaw()

function BB_ActorGetEnemyYaw ( )

recordEntText( "EnemyYaw: " + toEnemyYaw, self, RED, "Animscript" ); #/

Definition at line 673 of file archetype_utility.gsc.

References ActorGetPredictedYawToEnemy(), and DEFAULT_ENEMY_YAW.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_ActorGetFatalDamageLocation()

◆ BB_ActorGetPerfectEnemyYaw()

function BB_ActorGetPerfectEnemyYaw ( )

Definition at line 687 of file archetype_utility.gsc.

References DEFAULT_ENEMY_YAW, and RED.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_ActorGetReactYaw()

function BB_ActorGetReactYaw ( )

Definition at line 702 of file archetype_utility.gsc.

References result(), and YAW.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_ActorGetTrackingTurnYaw()

function BB_ActorGetTrackingTurnYaw ( )

◆ BB_ActorHasEnemy()

function BB_ActorHasEnemy ( )

Definition at line 660 of file archetype_utility.gsc.

References HAS_ENEMY, and NO_ENEMY.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_ActorIsPatroling()

function BB_ActorIsPatroling ( )

◆ BB_GetAwareness()

function private BB_GetAwareness ( )

Definition at line 232 of file archetype_utility.gsc.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetAwarenessPrevious()

function private BB_GetAwarenessPrevious ( )

Definition at line 241 of file archetype_utility.gsc.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetCoverConcealed()

function BB_GetCoverConcealed ( )

◆ BB_GetCurrentCoverNodeType()

function BB_GetCurrentCoverNodeType ( )

◆ BB_GetCurrentLocationCoverNodeType()

function BB_GetCurrentLocationCoverNodeType ( )

◆ BB_GetDamageDirection()

◆ BB_GetDamageMOD()

function BB_GetDamageMOD ( )

Definition at line 482 of file archetype_utility.gsc.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetDamageTaken()

function BB_GetDamageTaken ( )

◆ BB_GetDamageWeapon()

function BB_GetDamageWeapon ( )

Definition at line 467 of file archetype_utility.gsc.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetDamageWeaponClass()

function BB_GetDamageWeaponClass ( )

Definition at line 447 of file archetype_utility.gsc.

References array.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetHighestStance()

function BB_GetHighestStance ( )

Definition at line 278 of file archetype_utility.gsc.

References GetBlackBoardAttribute(), getHighestNodeStance(), and STANCE.

◆ BB_GetLocomotionExitYaw()

function BB_GetLocomotionExitYaw ( blackboard  ,
yaw   
)

#recordEntText( "Exit Yaw: "+angleDifference, self, RED, "Animscript" );#/

#recordEntText( "Exit Yaw: undefined", self, RED, "Animscript" );#/

#recordEntText( "Exit Yaw: "+angleDifference, self, RED, "Animscript" );#/

Definition at line 792 of file archetype_utility.gsc.

References CORNER_PREDICTOR_STATUS_EXITING_COVER, CORNER_PREDICTOR_STATUS_EXITING_EXPOSED, CORNER_PREDICTOR_STATUS_STRAIGHT_LINE_TO_GOAL, CORNER_PREDICTOR_STATUS_SUCCESS, end(), GetAngleUsingDirection(), INVALID_EXIT_YAW, MIN_EXITYAW_DISTANCE_SQ, RED, and wasAtCoverNode().

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetLocomotionFaceEnemyQuadrant()

◆ BB_GetLocomotionFaceEnemyQuadrantPrevious()

◆ BB_GetLocomotionPainType()

◆ BB_GetLookaheadAngle()

function BB_GetLookaheadAngle ( )

Definition at line 970 of file archetype_utility.gsc.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetPreviousCoverNodeType()

function BB_GetPreviousCoverNodeType ( )

◆ BB_GetStairsNumSkipSteps()

◆ BB_GetWeaponClass()

function BB_GetWeaponClass ( )

Definition at line 1018 of file archetype_utility.gsc.

References DEFAULT_WEAPON.

Referenced by RegisterUtilityBlackboardAttributes().

◆ BB_GetYawToCoverNode()

function private BB_GetYawToCoverNode ( )

◆ burnedKilled()

function burnedKilled ( behaviorTreeEntity  )

Definition at line 2589 of file archetype_utility.gsc.

References DAMAGE_MOD, and GetBlackBoardAttribute().

Referenced by RegisterBehaviorScriptFunctions().

◆ calculateNodeOffsetPosition()

function calculateNodeOffsetPosition ( node  ,
nodeOffset   
)

Definition at line 2042 of file archetype_utility.gsc.

Referenced by canSeeEnemyWrapper().

◆ canSeeEnemyWrapper()

function canSeeEnemyWrapper ( )

recordLine( self.origin, self.enemy.origin, RED, "Animscript", self ); #/

recordLine( self.origin, self.enemy.origin, RED, "Animscript", self ); #/

recordLine( lookFromPoint, self.enemy.origin, GREEN, "Animscript", self ); #/

recordLine( lookFromPoint, self.enemy.origin, RED, "Animscript", self ); #/

Definition at line 1947 of file archetype_utility.gsc.

References calculateNodeOffsetPosition(), COVER_CORNER_VALID_YAW_RANGE_MAX, COVER_CORNER_VALID_YAW_RANGE_MIN, COVER_CROUCH_OFFSET, COVER_LEFT_OFFSET, COVER_PILLAR_LEFT_OFFSET, COVER_PILLAR_RIGHT_OFFSET, COVER_RIGHT_OFFSET, COVER_STAND_OFFSET, GET_YAW_TO_ORIGIN180, ISNODEDONTLEFT, ISNODEDONTRIGHT, NODE_COVER_CROUCH, NODE_COVER_LEFT, NODE_COVER_PILLAR, NODE_COVER_RIGHT, NODE_COVER_STAND, and NODE_SUPPORTS_STANCE_STAND.

◆ chooseBestCoverNodeASAP()

function chooseBestCoverNodeASAP ( behaviorTreeEntity  )

◆ chooseBetterCoverService()

function private chooseBetterCoverService ( behaviorTreeEntity  )

◆ chooseBetterCoverServiceCodeVersion()

function chooseBetterCoverServiceCodeVersion ( behaviorTreeEntity  )

◆ chooseFrontCoverDirection()

function chooseFrontCoverDirection ( behaviorTreeEntity  )

‪Sets the cover direction blackboard to the front direction.

Definition at line 2215 of file archetype_utility.gsc.

References COVER_DIRECTION, COVER_FRONT_DIRECTION, GetBlackBoardAttribute(), PREVIOUS_COVER_DIRECTION, and SetBlackBoardAttribute().

Referenced by coverLeanTerminate(), coverPeekTerminate(), and resetCoverParameters().

◆ clampFrustration()

function clampFrustration ( frustrationLevel  )

Definition at line 1089 of file archetype_utility.gsc.

References MAX_FRUSTRATION, and MIN_FRUSTRATION.

Referenced by updateFrustrationLevel().

◆ cleanupChargeMelee()

function private cleanupChargeMelee ( behaviorTreeEntity  )

◆ cleanupChargeMeleeAttack()

function cleanupChargeMeleeAttack ( behaviorTreeEntity  )

◆ cleanupMelee()

function private cleanupMelee ( behaviorTreeEntity  )

◆ ClearAIOverrideDamageCallbacks()

function ClearAIOverrideDamageCallbacks ( entity  )

Definition at line 604 of file archetype_utility.gsc.

◆ dropRiotshield()

function dropRiotshield ( behaviorTreeEntity  )

Definition at line 2543 of file archetype_utility.gsc.

References _dropRiotShield().

Referenced by notetrackDropShield(), and riotshieldKilledOverride().

◆ electrifiedKilled()

function electrifiedKilled ( behaviorTreeEntity  )

Definition at line 2564 of file archetype_utility.gsc.

References DAMAGE_MOD, and GetBlackBoardAttribute().

Referenced by RegisterBehaviorScriptFunctions().

◆ explosiveKilled()

function explosiveKilled ( behaviorTreeEntity  )

◆ flagEnemyUnAttackableService()

function flagEnemyUnAttackableService ( behaviorTreeEntity  )

Definition at line 1208 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ forceRagdoll()

function forceRagdoll ( entity  )

Definition at line 3044 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ getAimPitchToEnemyFromNode()

function getAimPitchToEnemyFromNode ( behaviorTreeEntity  ,
node  ,
enemy   
)

‪Returns the pitch angles between a node and an enemy behaviorTreeEntity.

Definition at line 2206 of file archetype_utility.gsc.

◆ getAimYawToEnemyFromNode()

function getAimYawToEnemyFromNode ( behaviorTreeEntity  ,
node  ,
enemy   
)

‪Returns the yaw angles between a node and an enemy behaviorTreeEntity.

Definition at line 2198 of file archetype_utility.gsc.

◆ GetAngleUsingDirection()

function GetAngleUsingDirection ( direction  )

recordEntText( "YawAngle: " + AbsAngleClamp360( turnAngle ), self, RED, "Animscript" ); #/

Definition at line 767 of file archetype_utility.gsc.

Referenced by BB_GetLocomotionExitYaw().

◆ getBestCoverNodeIfAvailable()

function getBestCoverNodeIfAvailable ( behaviorTreeEntity  )

Definition at line 1822 of file archetype_utility.gsc.

Referenced by chooseBestCoverNodeASAP(), and chooseBetterCoverService().

◆ getCoverType()

◆ getHighestNodeStance()

◆ getSecondBestCoverNodeIfAvailable()

function getSecondBestCoverNodeIfAvailable ( behaviorTreeEntity  )

Definition at line 1851 of file archetype_utility.gsc.

◆ hasAmmo()

function hasAmmo ( behaviorTreeEntity  )

Definition at line 1776 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ hasCloseEnemyToMelee()

function hasCloseEnemyToMelee ( entity  )

◆ hasCloseEnemyToMeleeWithRange()

function hasCloseEnemyToMeleeWithRange ( entity  ,
melee_range_sq   
)

◆ hasEnemy()

function hasEnemy ( behaviorTreeEntity  )

Definition at line 1803 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ hasLowAmmo()

function hasLowAmmo ( behaviorTreeEntity  )

Definition at line 1784 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ hasWeaponMalfunctioned()

function hasWeaponMalfunctioned ( behaviorTreeEntity  )

Definition at line 1368 of file archetype_utility.gsc.

References IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions().

◆ inGrenadeBlastRadius()

function inGrenadeBlastRadius ( entity  )

Definition at line 1428 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ isAtAttackObject()

function isAtAttackObject ( entity  )

Definition at line 3157 of file archetype_utility.gsc.

References IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions().

◆ isBalconyDeath()

◆ isCoverConcealed()

function isCoverConcealed ( node  )

Definition at line 1928 of file archetype_utility.gsc.

References NODE_CONCEALED.

Referenced by BB_GetCoverConcealed(), and shouldOverAtCoverCondition().

◆ isFrustrated()

function isFrustrated ( behaviorTreeEntity  )

Definition at line 1081 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ isInPhalanx()

function private isInPhalanx ( entity  )

Definition at line 3106 of file archetype_utility.gsc.

References get_behavior_attribute().

Referenced by RegisterBehaviorScriptFunctions().

◆ isInPhalanxStance()

function private isInPhalanxStance ( entity  )

◆ isLastKnownEnemyPositionApproachable()

function isLastKnownEnemyPositionApproachable ( behaviorTreeEntity  )

Definition at line 1222 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ isSafeFromGrenades()

function isSafeFromGrenades ( entity  )

◆ isStanceAllowedAtNode()

◆ isUnarmed()

function isUnarmed ( behaviorTreeEntity  )

Definition at line 3025 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ keepClaimNode()

◆ locomotionShouldPatrol()

function locomotionShouldPatrol ( behaviorTreeEntity  )

◆ locomotionShouldStealth()

function locomotionShouldStealth ( behaviorTreeEntity  )

Definition at line 2335 of file archetype_utility.gsc.

References shouldStealth().

Referenced by RegisterBehaviorScriptFunctions().

◆ meleeAcquireMutex()

function meleeAcquireMutex ( behaviorTreeEntity  )

◆ meleeReleaseMutex()

function meleeReleaseMutex ( behaviorTreeEntity  )

◆ notCrouchingCondition()

function notCrouchingCondition ( behaviorTreeEntity  )

Definition at line 1035 of file archetype_utility.gsc.

References GetBlackBoardAttribute(), STANCE, and STANCE_CROUCH.

Referenced by RegisterBehaviorScriptFunctions().

◆ notStandingCondition()

function notStandingCondition ( behaviorTreeEntity  )

Definition at line 1025 of file archetype_utility.gsc.

References GetBlackBoardAttribute(), STANCE, and STANCE_STAND.

Referenced by RegisterBehaviorScriptFunctions().

◆ postShootLaserAndGlintOff()

function postShootLaserAndGlintOff ( ai  )

◆ prepareForExposedMelee()

◆ preShootLaserAndGlintOn()

function preShootLaserAndGlintOn ( ai  )

Definition at line 3051 of file archetype_utility.gsc.

References STR.

Referenced by ArchetypeHumanBlackboardInit(), and ArchetypeRobotBlackboardInit().

◆ rapsKilled()

function rapsKilled ( behaviorTreeEntity  )

Definition at line 2608 of file archetype_utility.gsc.

References ARCHETYPE_VEHICLE_RAPS.

Referenced by RegisterBehaviorScriptFunctions().

◆ recentlySawEnemy()

function recentlySawEnemy ( behaviorTreeEntity  )

Definition at line 1442 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ refillAmmo()

function refillAmmo ( behaviorTreeEntity  )

◆ RegisterBehaviorScriptFunctions()

function autoexec RegisterBehaviorScriptFunctions ( )

Definition at line 29 of file archetype_utility.gsc.

References balconyDeath(), BSM_REGISTER_API, BSM_REGISTER_CONDITION, BT_REGISTER_ACTION_SIMPLE, BT_REGISTER_API, burnedKilled(), chooseBestCoverNodeASAP(), chooseBetterCoverServiceCodeVersion(), cleanupChargeMelee(), cleanupChargeMeleeAttack(), cleanupMelee(), electrifiedKilled(), explosiveKilled(), flagEnemyUnAttackableService(), forceRagdoll(), hasAmmo(), hasCloseEnemyToMelee(), hasEnemy(), hasLowAmmo(), hasWeaponMalfunctioned(), inGrenadeBlastRadius(), isAtAttackObject(), isBalconyDeath(), isFrustrated(), isInPhalanx(), isInPhalanxStance(), isLastKnownEnemyPositionApproachable(), isSafeFromGrenades(), isUnarmed(), keepClaimNode(), locomotionShouldStealth(), meleeAcquireMutex(), meleeReleaseMutex(), notCrouchingCondition(), notStandingCondition(), prepareForExposedMelee(), rapsKilled(), recentlySawEnemy(), refillAmmo(), RegisterAIvsAIMeleeBehaviorFunctions(), releaseClaimNode(), scriptStartRagdoll(), setupChargeMeleeAttack(), setupExplosionAnimScale(), shouldAttackInChargeMelee(), shouldAttackObject(), shouldBeAggressive(), shouldChargeMelee(), shouldChooseSpecialDeath(), shouldChooseSpecialPain(), shouldChooseSpecialProneDeath(), shouldChooseSpecialPronePain(), shouldMelee(), shouldMutexMelee(), shouldNormalMelee(), shouldOnlyFireAccurately(), shouldReactToNewEnemy(), shouldStealth(), shouldStealthResume(), shouldStopMoving(), stealthIdleTerminate(), stealthReactCondition(), stealthReactStart(), stealthReactTerminate(), togglePhalanxStance(), tookFlashbangDamage(), trackCoverParamsService(), tryAdvancingOnLastKnownPositionBehavior(), tryGoingToClosestNodeToEnemyBehavior(), tryRunningDirectlyToEnemyBehavior(), tryStoppingService(), updateFrustrationLevel(), and useCurrentPosition().

◆ RegisterUtilityBlackboardAttributes()

function RegisterUtilityBlackboardAttributes ( )

Definition at line 139 of file archetype_utility.gsc.

References ARRIVAL_STANCE, AST_AWARENESS, AST_AWARENESS_PREVIOUS, BB_ActorGetDamageLocation(), BB_ActorGetEnemyYaw(), BB_ActorGetFatalDamageLocation(), BB_ActorGetPerfectEnemyYaw(), BB_ActorGetReactYaw(), BB_ActorGetTrackingTurnYaw(), BB_ActorHasEnemy(), BB_ActorIsPatroling(), BB_GetAwareness(), BB_GetAwarenessPrevious(), BB_GetCoverConcealed(), BB_GetCurrentCoverNodeType(), BB_GetCurrentLocationCoverNodeType(), BB_GetDamageDirection(), BB_GetDamageMOD(), BB_GetDamageTaken(), BB_GetDamageWeapon(), BB_GetDamageWeaponClass(), BB_GetLocomotionExitYaw(), BB_GetLocomotionFaceEnemyQuadrant(), BB_GetLocomotionFaceEnemyQuadrantPrevious(), BB_GetLocomotionPainType(), BB_GetLookaheadAngle(), BB_GetPreviousCoverNodeType(), BB_GetStairsNumSkipSteps(), BB_GetWeaponClass(), BB_GetYawToCoverNode(), BB_REGISTER_ATTRIBUTE, CONTEXT, CONTEXT_2, COVER_CONCEALED, COVER_DIRECTION, COVER_FRONT_DIRECTION, COVER_MODE, COVER_MODE_NONE, COVER_TYPE, CURRENT_LOCATION_COVER_TYPE, DAMAGE_DIRECTION, DAMAGE_LOCATION, DAMAGE_MOD, DAMAGE_TAKEN, DAMAGE_WEAPON, DAMAGE_WEAPON_CLASS, DESIRED_STANCE, ENABLE_BLACKBOARD_DEBUG_TRACKING, ENEMY, ENEMY_YAW, EXPOSED_TYPE, FATAL_DAMAGE_LOCATION, FIRE_MODE, GIB_LOCATION, JUKE_DIRECTION, JUKE_DISTANCE, LOCOMOTION_ARRIVAL_DISTANCE, LOCOMOTION_ARRIVAL_YAW, LOCOMOTION_EXIT_YAW, LOCOMOTION_FACE_ENEMY_NONE, LOCOMOTION_FACE_ENEMY_QUADRANT, LOCOMOTION_FACE_ENEMY_QUADRANT_PREVIOUS, LOCOMOTION_MOTION_ANGLE, LOCOMOTION_PAIN_TYPE, LOCOMOTION_TURN_YAW, LOOKAHEAD_ANGLE, MELEE_DISTANCE, MELEE_ENEMY_TYPE, PATROL, PERFECT_ENEMY_YAW, PREVIOUS_COVER_DIRECTION, PREVIOUS_COVER_MODE, PREVIOUS_COVER_TYPE, REACT_YAW, SPECIAL_DEATH, SPECIAL_DEATH_NONE, STAIRCASE_DIRECTION, STAIRCASE_EXIT_TYPE, STAIRCASE_NUM_STEPS, STAIRCASE_NUM_TOTAL_STEPS, STAIRCASE_STATE, STAIRCASE_STEP_SKIP_NUM, STANCE, STANCE_STAND, THROW_DISTANCE, TRACKING_TURN_YAW, TRAVERSAL_TYPE, WEAPON_CLASS, and YAW_TO_COVER.

Referenced by ApothiconFuryBlackboardInit(), ArchetypeCloneBlackboardInit(), ArchetypeHumanBlackboardInit(), ArchetypeHumanRiotshieldBlackboardInit(), ArchetypeHumanRpgBlackboardInit(), ArchetypeMargwaBlackboardInit(), ArchetypeMechzBlackboardInit(), ArchetypeQuadBlackboardInit(), ArchetypeRazBlackboardInit(), ArchetypeRobotBlackboardInit(), ArchetypeSkeletonBlackboardInit(), ArchetypeThrasherBlackboardInit(), ArchetypeZombieBlackboardInit(), ArchetypeZombieDogBlackboardInit(), and civilianBlackboardInit().

◆ releaseClaimNode()

◆ RemoveAIOverrideDamageCallback()

function RemoveAIOverrideDamageCallback ( entity  ,
callback   
)

Definition at line 577 of file archetype_utility.gsc.

References callback().

Referenced by _ReleaseRobot(), and _ReleaseSentient().

◆ scriptStartRagdoll()

function scriptStartRagdoll ( behaviorTreeEntity  )

Definition at line 1045 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ setCurrentWeapon()

function setCurrentWeapon ( weapon  )

Definition at line 2152 of file archetype_utility.gsc.

Referenced by DropAIWeapon(), DropAllAIWeapons(), main(), and placeWeaponOn().

◆ setNextFindBestCoverTime()

◆ setPrimaryWeapon()

function setPrimaryWeapon ( weapon  )

Definition at line 2163 of file archetype_utility.gsc.

Referenced by DropAIWeapon(), and main().

◆ setSecondaryWeapon()

function setSecondaryWeapon ( weapon  )

Definition at line 2172 of file archetype_utility.gsc.

Referenced by DropAIWeapon(), and main().

◆ setupChargeMeleeAttack()

function private setupChargeMeleeAttack ( behaviorTreeEntity  )

◆ setupExplosionAnimScale()

function private setupExplosionAnimScale ( entity  ,
asmStateName   
)

Definition at line 2918 of file archetype_utility.gsc.

References BHTN_SUCCESS.

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldAttackInChargeMelee()

function private shouldAttackInChargeMelee ( behaviorTreeEntity  )

◆ shouldAttackObject()

function shouldAttackObject ( entity  )

Definition at line 3181 of file archetype_utility.gsc.

References IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions(), and thrasherNotetrackMelee().

◆ shouldBeAggressive()

function shouldBeAggressive ( behaviorTreeEntity  )

Definition at line 1478 of file archetype_utility.gsc.

References IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldChargeMelee()

◆ shouldChooseBetterCover()

function shouldChooseBetterCover ( behaviorTreeEntity  )

◆ shouldChooseSpecialDeath()

function private shouldChooseSpecialDeath ( behaviorTreeEntity  )

Definition at line 2903 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldChooseSpecialPain()

function private shouldChooseSpecialPain ( behaviorTreeEntity  )

Definition at line 2892 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldChooseSpecialProneDeath()

function private shouldChooseSpecialProneDeath ( behaviorTreeEntity  )

◆ shouldChooseSpecialPronePain()

function private shouldChooseSpecialPronePain ( behaviorTreeEntity  )

◆ shouldMelee()

◆ shouldMutexMelee()

function shouldMutexMelee ( behaviorTreeEntity  )

◆ shouldNormalMelee()

function shouldNormalMelee ( behaviorTreeEntity  )

Definition at line 2701 of file archetype_utility.gsc.

References hasCloseEnemyToMelee().

Referenced by RegisterBehaviorScriptFunctions(), and shouldMelee().

◆ shouldOnlyFireAccurately()

function shouldOnlyFireAccurately ( behaviorTreeEntity  )

Definition at line 1461 of file archetype_utility.gsc.

References IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldReactToNewEnemy()

function shouldReactToNewEnemy ( behaviorTreeEntity  )

◆ shouldStealth()

function shouldStealth ( behaviorTreeEntity  )

◆ shouldStealthResume()

function shouldStealthResume ( behaviorTreeEntity  )

Definition at line 2380 of file archetype_utility.gsc.

References IS_TRUE, and shouldStealth().

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldStopMoving()

function shouldStopMoving ( behaviorTreeEntity  )

Definition at line 2142 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ shouldTacticalWalk()

function shouldTacticalWalk ( behaviorTreeEntity  )

◆ stealthIdleTerminate()

function private stealthIdleTerminate ( behaviorTreeEntity  )

Definition at line 2441 of file archetype_utility.gsc.

References IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions().

◆ stealthReactCondition()

function private stealthReactCondition ( entity  )

Definition at line 2403 of file archetype_utility.gsc.

References IS_TRUE.

Referenced by RegisterBehaviorScriptFunctions().

◆ stealthReactStart()

function private stealthReactStart ( behaviorTreeEntity  )

Definition at line 2417 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ stealthReactTerminate()

function private stealthReactTerminate ( behaviorTreeEntity  )

Definition at line 2429 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ togglePhalanxStance()

function private togglePhalanxStance ( entity  )

◆ tookFlashbangDamage()

function private tookFlashbangDamage ( entity  )

Definition at line 3142 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ trackCoverParamsService()

function trackCoverParamsService ( behaviorTreeEntity  )

Definition at line 1527 of file archetype_utility.gsc.

References setNextFindBestCoverTime().

Referenced by RegisterBehaviorScriptFunctions().

◆ tryAdvancingOnLastKnownPositionBehavior()

function tryAdvancingOnLastKnownPositionBehavior ( behaviorTreeEntity  )

Definition at line 1249 of file archetype_utility.gsc.

References IS_TRUE, and setNextFindBestCoverTime().

Referenced by RegisterBehaviorScriptFunctions().

◆ tryGoingToClosestNodeToEnemyBehavior()

function tryGoingToClosestNodeToEnemyBehavior ( behaviorTreeEntity  )

Definition at line 1283 of file archetype_utility.gsc.

References useCoverNodeWrapper().

Referenced by RegisterBehaviorScriptFunctions().

◆ tryRunningDirectlyToEnemyBehavior()

function tryRunningDirectlyToEnemyBehavior ( behaviorTreeEntity  )

Definition at line 1314 of file archetype_utility.gsc.

References IS_TRUE, and setNextFindBestCoverTime().

Referenced by RegisterBehaviorScriptFunctions().

◆ tryStoppingService()

function tryStoppingService ( behaviorTreeEntity  )

Definition at line 2120 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ updateFrustrationLevel()

function updateFrustrationLevel ( entity  )

◆ useCoverNodeWrapper()

◆ useCurrentPosition()

function useCurrentPosition ( entity  )

Definition at line 3011 of file archetype_utility.gsc.

Referenced by RegisterBehaviorScriptFunctions().

◆ wasAtCoverNode()

function wasAtCoverNode ( )

Definition at line 781 of file archetype_utility.gsc.

References NODE_TYPE_COVER.

Referenced by BB_GetLocomotionExitYaw().