Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_AISuppressGroupClusterBehavior Interface Reference
Inheritance diagram for SCR_AISuppressGroupClusterBehavior:
[legend]

Public Member Functions

void SCR_AISuppressGroupClusterBehavior (SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity, SCR_AISuppressionVolumeBase suppressionVolume, float suppressionDuration, float fireRate, float priorityLevel=PRIORITY_LEVEL_NORMAL, SCR_AITargetClusterState clusterState=null)
 
SCR_AITargetClusterState GetClusterState ()
 
override float CustomEvaluate ()
 
- Public Member Functions inherited from SCR_AISuppressBehavior
void SCR_AISuppressBehavior (SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity, SCR_AISuppressionVolumeBase suppressionVolume, float suppressionDuration, float fireRate, float priorityLevel=PRIORITY_LEVEL_NORMAL)
 
- Public Member Functions inherited from SCR_AIBehaviorBase
void SCR_AIBehaviorBase (SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity)
 
SCR_AIActivityBase GetGroupActivityContext ()
 
override void OnActionSelected ()
 
- Public Member Functions inherited from SCR_AIActionBase
override float EvaluatePriorityLevel ()
 
void SetPriorityLevel (int priority)
 
override void OnSetActionState (EAIActionState state)
 
override void OnSetSuspended (bool suspended)
 
override void OnComplete ()
 
override void OnFail ()
 
override void OnActionRemoved ()
 
string GetActionDebugInfo ()
 
string GetDebugPanelText ()
 
override void OnActionSelected ()
 
override void OnActionDeselected ()
 
void OnActionExecuted ()
 
void OnActionCompleted ()
 
void OnActionFailed ()
 
bool IsActionInterruptable ()
 
void SetActionInterruptable (bool IsInterruptable)
 
void SetParametersToBTVariables (SCR_AIActionTask node)
 
void GetParametersFromBTVariables (SCR_AIActionTask node)
 
TStringArray GetPortNames ()
 
float GetRestrictedPriorityLevel (float minimumLevel=PRIORITY_LEVEL_NORMAL)
 Limits priority level for actions such that those are performed in "NORMAL" and "PLAYER" priority level but not in "GAMEMASTER".
 
- Public Member Functions inherited from AIActionBase
proto external float Evaluate ()
 
proto external float GetPriority ()
 
proto external void SetPriority (float priority)
 
proto external bool GetActionIsSuspended ()
 
proto external void SetActionIsSuspended (bool val)
 
proto external bool GetIsUniqueInActionQueue ()
 
proto external void SetIsUniqueInActionQueue (bool unique)
 
proto external EAIActionState GetActionState ()
 
proto external void SetActionState (EAIActionState state)
 
proto external void Fail ()
 
proto external void Complete ()
 
proto external bool GetRemoveAction ()
 
proto external void SetRemoveAction (bool val)
 
proto external ref AIActionBase GetRelatedGroupActivity ()
 
proto external void SetRelatedGroupActivity (AIActionBase related)
 
float CustomEvaluate ()
 
float EvaluatePriorityLevel ()
 
void OnSetSuspended (bool suspended)
 
void OnSetActionState (EAIActionState state)
 
void OnFail ()
 
void OnComplete ()
 
bool OnMessage (AIMessage msg)
 
void OnActionSelected ()
 
void OnActionDeselected ()
 
void OnActionRemoved ()
 

Protected Member Functions

float GetDistance (notnull SCR_AITargetClusterState clusterState)
 
float GetFireRate (float distance, float timeSinceLastInfoS, float soldierThreat, float groupThreat, float peakReactionFactor)
 
float GetGroupThreat ()
 

Protected Attributes

SCR_ChimeraAIAgent m_Agent
 
SCR_AICombatComponent m_CombatComponent
 
SCR_AIThreatSystem m_ThreatSystem
 
float m_fNextUpdate
 
float m_fGroupThreat
 
float m_fGroupThreatPotential
 
bool m_bGroupThreatInPeak
 
float m_fGroupThreatPeakTimeout
 
float m_fGroupThreatPeakDuration
 
float m_fGroupThreatPeakReactionTimeout
 
SCR_AITargetClusterState m_ClusterState
 
ref SCR_AISuppressionVolumeClusterBox m_Volume
 
- Protected Attributes inherited from SCR_AIActionBase
ref SCR_BTParam< float > m_fPriorityLevel = new SCR_BTParam<float>(SCR_AIActionTask.PRIORITY_LEVEL_PORT)
 

Static Protected Attributes

const int VOLUME_UPDATE_INTERVAL_MS = 1*500
 
const float FIRE_RATE_SCALING_MAX_DISTANCE = 600
 
const float THREAT_MAX_INCREASE = 0.25
 
const float THREAT_MAX_DECREASE = 0.15
 
const float THREAT_POTENTIAL_DECAY = 0.6
 
const int THREAT_MAX_PEAK_DURATION_MS = 20*1000
 
const int THREAT_MAX_PEAK_REACTION_DURATION_MS = 15*1000
 

Additional Inherited Members

- Public Attributes inherited from SCR_AISuppressBehavior
ref SCR_BTParamRef< SCR_AISuppressionVolumeBasem_SuppressionVolume = new SCR_BTParamRef<SCR_AISuppressionVolumeBase>("SuppressionVolume")
 
ref SCR_BTParam< float > m_fSuppressionDuration_s = new SCR_BTParam<float>("SuppressionDuration_s")
 
ref SCR_BTParam< float > m_fFireRate = new SCR_BTParam<float>("FireRate")
 
- Public Attributes inherited from SCR_AIBehaviorBase
SCR_AIUtilityComponent m_Utility
 
float m_fThreat = 0.0
 
bool m_bAllowLook = true
 
bool m_bResetLook = false
 
bool m_bUseCombatMove = false
 
- Public Attributes inherited from SCR_AIActionBase
bool m_bIsInterruptable = true
 
ResourceName m_sBehaviorTree
 
ResourceName m_sAbortBehaviorTree
 
ref ScriptInvoker m_OnActionCompleted = new ScriptInvoker()
 
ref ScriptInvoker m_OnActionFailed = new ScriptInvoker()
 
ref array< SCR_BTParamBasem_aParams = {}
 
- Static Public Attributes inherited from SCR_AIActionBase
const static float PRIORITY_LEVEL_NORMAL = 0
 
const static float PRIORITY_LEVEL_PLAYER = 1000
 
const static float PRIORITY_LEVEL_GAMEMASTER = 2000
 
const static float PRIORITY_BEHAVIOR_RETREAT_MELEE = 190 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_GET_OUT_VEHICLE_HIGH_PRIORITY = 162 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_MOVE_FROM_DANGER = 160 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_ATTACK_HIGH_PRIORITY = 120 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_HEAL_HIGH_PRIORITY = 115 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_OBSERVE_UNKNOWN_FIRE_HIGH_PRIORITY = 113 + PRIORITY_LEVEL_PLAYER
 
const static float PRIORITY_BEHAVIOR_GET_IN_VEHICLE = 130
 
const static float PRIORITY_BEHAVIOR_GET_OUT_VEHICLE = 125
 
const static float PRIORITY_BEHAVIOR_PICKUP_INVENTORY_ITEMS = 118
 
const static float PRIORITY_BEHAVIOR_FIRE_ILLUM_FLARE = 113
 
const static float PRIORITY_BEHAVIOR_THROW_GRENADE = 112
 
const static float PRIORITY_BEHAVIOR_MEDIC_HEAL = 111
 
const static float PRIORITY_BEHAVIOR_RETREAT_FROM_TARGET = 110
 
const static float PRIORITY_BEHAVIOR_PROVIDE_AMMO = 100
 
const static float PRIORITY_BEHAVIOR_ATTACK_SELECTED = 90
 
const static float PRIORITY_BEHAVIOR_HEAL_WAIT = 83
 
const static float PRIORITY_BEHAVIOR_MOVE_FROM_VEHICLE_HORN = 72
 
const static float PRIORITY_BEHAVIOR_ATTACK_NOT_SELECTED = 70
 
const static float PRIORITY_BEHAVIOR_MOVE_FROM_UNKNOWN_FIRE = 68
 
const static float PRIORITY_BEHAVIOR_OBSERVE_UNKNOWN_FIRE = 66
 
const static float PRIORITY_BEHAVIOR_HEAL = 65
 
const static float PRIORITY_BEHAVIOR_MOVE_AND_INVESTIGATE = 64
 
const static float PRIORITY_BEHAVIOR_SUPPRESS = 63
 
const static float PRIORITY_BEHAVIOR_OBSERVE_EXPLOSION = 62
 
const static float PRIORITY_BEHAVIOR_DEFEND = 61
 
const static float PRIORITY_BEHAVIOR_FIND_FIRE_POSITION = 60
 
const static float PRIORITY_BEHAVIOR_OBSERVE_LOW_PRIORITY = 59
 
const static float PRIORITY_BEHAVIOR_MOVE_INDIVIDUALLY = 58
 
const static float PRIORITY_BEHAVIOR_OPEN_NAVLINK_DOOR = 54
 
const static float PRIORITY_BEHAVIOR_PERFORM_ACTION = 30
 
const static float PRIORITY_BEHAVIOR_MOVE = 30
 
const static float PRIORITY_BEHAVIOR_MOVE_IN_FORMATION = 30
 
const static float PRIORITY_BEHAVIOR_WAIT = 10
 
const static float PRIORITY_BEHAVIOR_IDLE_DRIVER = 2
 
const static float PRIORITY_BEHAVIOR_IDLE = 1
 
const static float PRIORITY_BEHAVIOR_DISMOUNT_TURRET = 300
 
const static float PRIORITY_BEHAVIOR_DISMOUNT_TURRET_INVESTIGATE = 21
 
const static float PRIORITY_BEHAVIOR_DISMOUNT_TURRET_GET_IN = 20
 
const static float PRIORITY_ACTIVITY_GET_IN = 130
 
const static float PRIORITY_ACTIVITY_FOLLOW = 130
 
const static float PRIORITY_ACTIVITY_RESUPPLY = 100
 
const static float PRIORITY_ACTIVITY_COMBAT_WITH_VEHICLES = 85
 
const static float PRIORITY_ACTIVITY_HEAL = 80
 
const static float PRIORITY_ACTIVITY_ATTACK_CLUSTER = 70
 
const static float PRIORITY_ACTIVITY_SEEK_AND_DESTROY = 60
 
const static float PRIORITY_ACTIVITY_INVESTIGATE_CLUSTER = 55
 
const static float PRIORITY_ACTIVITY_DEFEND_FROM_CLUSTER = 55
 
const static float PRIORITY_ACTIVITY_MOVE = 50
 
const static float PRIORITY_ACTIVITY_PERFORM_ACTION = 50
 
const static float PRIORITY_ACTIVITY_DEFEND = 50
 
const static float PRIORITY_ACTIVITY_GET_OUT = 50
 
const static float PRIORITY_ACTIVITY_SUPPRESS = 40
 

Constructor & Destructor Documentation

◆ SCR_AISuppressGroupClusterBehavior()

void SCR_AISuppressGroupClusterBehavior.SCR_AISuppressGroupClusterBehavior ( SCR_AIUtilityComponent  utility,
SCR_AIActivityBase  groupActivity,
SCR_AISuppressionVolumeBase  suppressionVolume,
float  suppressionDuration,
float  fireRate,
float  priorityLevel = PRIORITY_LEVEL_NORMAL,
SCR_AITargetClusterState  clusterState = null 
)

Member Function Documentation

◆ CustomEvaluate()

override float SCR_AISuppressGroupClusterBehavior.CustomEvaluate ( )

Implements AIActionBase.

◆ GetClusterState()

SCR_AITargetClusterState SCR_AISuppressGroupClusterBehavior.GetClusterState ( )

◆ GetDistance()

float SCR_AISuppressGroupClusterBehavior.GetDistance ( notnull SCR_AITargetClusterState  clusterState)
protected

◆ GetFireRate()

float SCR_AISuppressGroupClusterBehavior.GetFireRate ( float  distance,
float  timeSinceLastInfoS,
float  soldierThreat,
float  groupThreat,
float  peakReactionFactor 
)
protected

◆ GetGroupThreat()

float SCR_AISuppressGroupClusterBehavior.GetGroupThreat ( )
protected

Member Data Documentation

◆ FIRE_RATE_SCALING_MAX_DISTANCE

const float SCR_AISuppressGroupClusterBehavior.FIRE_RATE_SCALING_MAX_DISTANCE = 600
staticprotected

◆ m_Agent

SCR_ChimeraAIAgent SCR_AISuppressGroupClusterBehavior.m_Agent
protected

◆ m_bGroupThreatInPeak

bool SCR_AISuppressGroupClusterBehavior.m_bGroupThreatInPeak
protected

◆ m_ClusterState

SCR_AITargetClusterState SCR_AISuppressGroupClusterBehavior.m_ClusterState
protected

◆ m_CombatComponent

SCR_AICombatComponent SCR_AISuppressGroupClusterBehavior.m_CombatComponent
protected

◆ m_fGroupThreat

float SCR_AISuppressGroupClusterBehavior.m_fGroupThreat
protected

◆ m_fGroupThreatPeakDuration

float SCR_AISuppressGroupClusterBehavior.m_fGroupThreatPeakDuration
protected

◆ m_fGroupThreatPeakReactionTimeout

float SCR_AISuppressGroupClusterBehavior.m_fGroupThreatPeakReactionTimeout
protected

◆ m_fGroupThreatPeakTimeout

float SCR_AISuppressGroupClusterBehavior.m_fGroupThreatPeakTimeout
protected

◆ m_fGroupThreatPotential

float SCR_AISuppressGroupClusterBehavior.m_fGroupThreatPotential
protected

◆ m_fNextUpdate

float SCR_AISuppressGroupClusterBehavior.m_fNextUpdate
protected

◆ m_ThreatSystem

SCR_AIThreatSystem SCR_AISuppressGroupClusterBehavior.m_ThreatSystem
protected

◆ m_Volume

ref SCR_AISuppressionVolumeClusterBox SCR_AISuppressGroupClusterBehavior.m_Volume
protected

◆ THREAT_MAX_DECREASE

const float SCR_AISuppressGroupClusterBehavior.THREAT_MAX_DECREASE = 0.15
staticprotected

◆ THREAT_MAX_INCREASE

const float SCR_AISuppressGroupClusterBehavior.THREAT_MAX_INCREASE = 0.25
staticprotected

◆ THREAT_MAX_PEAK_DURATION_MS

const int SCR_AISuppressGroupClusterBehavior.THREAT_MAX_PEAK_DURATION_MS = 20*1000
staticprotected

◆ THREAT_MAX_PEAK_REACTION_DURATION_MS

const int SCR_AISuppressGroupClusterBehavior.THREAT_MAX_PEAK_REACTION_DURATION_MS = 15*1000
staticprotected

◆ THREAT_POTENTIAL_DECAY

const float SCR_AISuppressGroupClusterBehavior.THREAT_POTENTIAL_DECAY = 0.6
staticprotected

◆ VOLUME_UPDATE_INTERVAL_MS

const int SCR_AISuppressGroupClusterBehavior.VOLUME_UPDATE_INTERVAL_MS = 1*500
staticprotected

The documentation for this interface was generated from the following file: