![]() |
Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
|
Go to the source code of this file.
Macros | |
#define | COVER_AIM_ANGLE_EPSILON 10 |
#define | SENSE_DISTANCE 360 |
#define | SENSE_DISTANCE_SQ SQR(SENSE_DISTANCE) |
Functions | |
function private | canChangeStanceAtCoverCondition (behaviorTreeEntity) |
function private | cleanUpChangeStanceToCrouch (behaviorTreeEntity, asmStateName) |
function private | cleanUpChangeStanceToStand (behaviorTreeEntity, asmStateName) |
function private | coverBlindfireShootActionStart (behaviorTreeEntity, asmStateName) |
function private | coverChangeStanceActionStart (behaviorTreeEntity, asmStateName) |
function private | coverCleanUpToThrowGrenade (behaviorTreeEntity) |
function private | coverPrepareToThrowGrenade (behaviorTreeEntity) |
function private | coverVantageInitialize (behaviorTreeEntity, asmStateName) |
function private | prepareForAdjustToCover (behaviorTreeEntity, asmStateName) |
function private | prepareToChangeStanceToCrouch (behaviorTreeEntity, asmStateName) |
function private | prepareToChangeStanceToStand (behaviorTreeEntity, asmStateName) |
function autoexec | RegisterBehaviorScriptfunctions () |
function private | senseNearbyPlayers (entity) |
function private | shouldAdjustToCover (behaviorTreeEntity) |
function private | shouldReturnToCoverCondition (behaviorTreeEntity) |
function private | shouldReturnToSuppressedCover (entity) |
function | shouldThrowGrenadeAtCoverCondition (behaviorTreeEntity, throwIfPossible=false) |
function private | shouldVantageAtCoverCondition (behaviorTreeEntity) |
function private | supportsVantageCoverCondition (behaviorTreeEntity) |
function | TEMP_get_arm_offset (behaviorTreeEntity, throwPosition) |
#define COVER_AIM_ANGLE_EPSILON 10 |
Definition at line 498 of file archetype_human_cover.gsc.
#define SENSE_DISTANCE 360 |
Definition at line 184 of file archetype_human_cover.gsc.
#define SENSE_DISTANCE_SQ SQR(SENSE_DISTANCE) |
Definition at line 185 of file archetype_human_cover.gsc.
function private canChangeStanceAtCoverCondition | ( | behaviorTreeEntity | ) |
Definition at line 269 of file archetype_human_cover.gsc.
References GetBlackBoardAttribute(), isStanceAllowedAtNode(), STANCE, STANCE_CROUCH, and STANCE_STAND.
Referenced by RegisterBehaviorScriptfunctions().
function private cleanUpChangeStanceToCrouch | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 466 of file archetype_human_cover.gsc.
References releaseClaimNode().
Referenced by RegisterBehaviorScriptfunctions().
function private cleanUpChangeStanceToStand | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 454 of file archetype_human_cover.gsc.
References releaseClaimNode().
Referenced by RegisterBehaviorScriptfunctions().
function private coverBlindfireShootActionStart | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 440 of file archetype_human_cover.gsc.
References chooseCoverDirection(), COVER_BLIND_MODE, COVER_MODE, keepClaimNode(), and SetBlackBoardAttribute().
Referenced by RegisterBehaviorScriptfunctions().
function private coverChangeStanceActionStart | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 482 of file archetype_human_cover.gsc.
References COVER_ALERT_MODE, COVER_MODE, DESIRED_STANCE, GetBlackBoardAttribute(), keepClaimNode(), SetBlackBoardAttribute(), STANCE, STANCE_CROUCH, and STANCE_STAND.
Referenced by RegisterBehaviorScriptfunctions().
function private coverCleanUpToThrowGrenade | ( | behaviorTreeEntity | ) |
Definition at line 230 of file archetype_human_cover.gsc.
References CONTENTS_ACTOR, CONTENTS_CORPSE, CONTENTS_PLAYER, CONTENTS_VEHICLE, and resetCoverParameters().
Referenced by RegisterBehaviorScriptfunctions().
function private coverPrepareToThrowGrenade | ( | behaviorTreeEntity | ) |
Definition at line 208 of file archetype_human_cover.gsc.
References AddBlackboardEvent(), keepClaimedNodeAndChooseCoverDirection(), MAX_GRENADE_TEAM_TIME, MAX_GRENADE_THROW_TIME, MIN_GRENADE_TEAM_TIME, and MIN_GRENADE_THROW_TIME.
Referenced by RegisterBehaviorScriptfunctions().
function private coverVantageInitialize | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 433 of file archetype_human_cover.gsc.
References COVER_MODE, COVER_VANTAGE_MODE, keepClaimNode(), and SetBlackBoardAttribute().
Referenced by RegisterBehaviorScriptfunctions().
function private prepareForAdjustToCover | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 473 of file archetype_human_cover.gsc.
References DESIRED_STANCE, getHighestNodeStance(), keepClaimNode(), and SetBlackBoardAttribute().
Referenced by RegisterBehaviorScriptfunctions().
function private prepareToChangeStanceToCrouch | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 460 of file archetype_human_cover.gsc.
References cleanupCoverMode(), DESIRED_STANCE, SetBlackBoardAttribute(), and STANCE_CROUCH.
Referenced by RegisterBehaviorScriptfunctions().
function private prepareToChangeStanceToStand | ( | behaviorTreeEntity | , |
asmStateName | |||
) |
Definition at line 448 of file archetype_human_cover.gsc.
References cleanupCoverMode(), DESIRED_STANCE, SetBlackBoardAttribute(), and STANCE_STAND.
Referenced by RegisterBehaviorScriptfunctions().
function autoexec RegisterBehaviorScriptfunctions | ( | ) |
Definition at line 24 of file archetype_human_cover.gsc.
References BT_REGISTER_API, canChangeStanceAtCoverCondition(), cleanUpChangeStanceToCrouch(), cleanUpChangeStanceToStand(), coverBlindfireShootActionStart(), coverChangeStanceActionStart(), coverCleanUpToThrowGrenade(), coverPrepareToThrowGrenade(), coverVantageInitialize(), prepareForAdjustToCover(), prepareToChangeStanceToCrouch(), prepareToChangeStanceToStand(), senseNearbyPlayers(), shouldAdjustToCover(), shouldReturnToCoverCondition(), shouldReturnToSuppressedCover(), shouldThrowGrenadeAtCoverCondition(), shouldVantageAtCoverCondition(), and supportsVantageCoverCondition().
function private senseNearbyPlayers | ( | entity | ) |
Definition at line 186 of file archetype_human_cover.gsc.
References SENSE_DISTANCE, and SENSE_DISTANCE_SQ.
Referenced by RegisterBehaviorScriptfunctions().
function private shouldAdjustToCover | ( | behaviorTreeEntity | ) |
Definition at line 345 of file archetype_human_cover.gsc.
References COVER_ALERT_MODE, COVER_MODE, GetBlackBoardAttribute(), getHighestNodeStance(), isStanceAllowedAtNode(), PREVIOUS_COVER_MODE, STANCE, and STANCE_CROUCH.
Referenced by RegisterBehaviorScriptfunctions().
function private shouldReturnToCoverCondition | ( | behaviorTreeEntity | ) |
Definition at line 292 of file archetype_human_cover.gsc.
References COVER_SHOOT_MIN_TIME, COVER_SHOOT_TAKEDOWN_TIME, and isSuppressedAtCoverCondition().
Referenced by RegisterBehaviorScriptfunctions().
function private shouldReturnToSuppressedCover | ( | entity | ) |
Definition at line 282 of file archetype_human_cover.gsc.
Referenced by RegisterBehaviorScriptfunctions().
function shouldThrowGrenadeAtCoverCondition | ( | behaviorTreeEntity | , |
throwIfPossible | = false |
||
) |
Definition at line 54 of file archetype_human_cover.gsc.
References ALLIED_GRENADE_SAFE_DIST_SQ, GetAiAttribute(), GetBlackboardEvents(), GRENADE_OVERLAP_DIST_SQ, HasAiAttribute(), IS_TRUE, LASTSTAND_GRENADE_SAFE_DIST_SQ, MAX_GRENADE_THROW_DIST_SQ, NODE_TYPE_COVER, player_is_in_laststand(), and TEMP_get_arm_offset().
Referenced by notetrackGrenadeThrow(), and RegisterBehaviorScriptfunctions().
function private shouldVantageAtCoverCondition | ( | behaviorTreeEntity | ) |
Definition at line 385 of file archetype_human_cover.gsc.
References AIM_LEFT, AIM_LIMIT_TABLE_ENTRY_COVER_VANTAGE, and AIM_RIGHT.
Referenced by RegisterBehaviorScriptfunctions().
function private supportsVantageCoverCondition | ( | behaviorTreeEntity | ) |
Definition at line 414 of file archetype_human_cover.gsc.
Referenced by RegisterBehaviorScriptfunctions().
function TEMP_get_arm_offset | ( | behaviorTreeEntity | , |
throwPosition | |||
) |
Definition at line 500 of file archetype_human_cover.gsc.
References AIM_LIMIT_TABLE_ENTRY_PILLAR_RIGHT_LEAN, AIM_RIGHT, COVER_AIM_ANGLE_EPSILON, GetBlackBoardAttribute(), ISNODEDONTLEFT, ISNODEDONTRIGHT, NODE_COVER_CROUCH, NODE_COVER_LEFT, NODE_COVER_PILLAR, NODE_COVER_RIGHT, NODE_COVER_STAND, STANCE, and STANCE_CROUCH.
Referenced by notetrackGrenadeThrow(), and shouldThrowGrenadeAtCoverCondition().