|
Arma Reforger Script API
|
Public Member Functions | |
| override void | OnInit (AIAgent owner) |
| vector | GetEntityVelocity (IEntity entity) |
| float | GetMuzzleAimData (BaseMuzzleComponent currentMuzzle, vector targetPos, vector targetVelocity, int iterations, out float targetDistance, out float predictionTime, out vector muzzlePos, out vector muzzleDir) |
| float | GetEntityAimData (IEntity entity, float initSpeedCoef, vector targetPos, vector targetVelocity, int iterations, out float targetDistance, out float predictionTime, out vector muzzlePos, out vector muzzleDir) |
| IEntity | GetRelevantEntity (IEntity entity) |
| void | CorrectForSurface (out vector aimCorrectionVector, vector targetPos, vector aimPos, float speedMs, float targetDistance) |
| void | CreateFixedAimPoint (BaseWeaponComponent currentWeapon, BaseMuzzleComponent currentMuzzle, vector targetPos, vector targetVelocity, float initSpeedCoef, float time) |
| void | ValidateFixedAimPoint (out vector fixedAimPoint, vector targetPos, float time) |
| void | GetDynamicAimCorrectionFactors (out float angleFactor, out float distanceFactor) |
| vector | GetDynamicAimCorrectionVector (vector targetPos, vector aimVector, vector muzzlePos, vector targetVelocity, float targetDistance) |
| override ENodeResult | EOnTaskSimulate (AIAgent owner, float dt) |
| Scripted nodes are suposed to return SUCCESS, FAIL or RUNNING state. | |
| override TStringArray | GetVariablesOut () |
| override TStringArray | GetVariablesIn () |
Public Member Functions inherited from AITaskScripted | |
| void | OnEnter (AIAgent owner) |
| void | OnAbort (AIAgent owner, Node nodeCausingAbort) |
Public Member Functions inherited from Node | |
| proto external int | GetNodeID () |
| proto external TypeName | GetVariableType (bool inputPort, string name) |
| proto bool | GetVariableIn (string name, out void val) |
| proto void | SetVariableOut (string name, void val) |
| proto void | ClearVariable (string name) |
| proto void | GetCallstackStr (out string val) |
| proto void | GetParentTreeName (out string val) |
Static Public Member Functions | |
| static override bool | VisibleInPalette () |
Public Attributes | |
| ref array< ref Shape > | m_aDbgShapes = {} |
Static Protected Member Functions | |
| static override string | GetOnHoverDescription () |
Static Protected Member Functions inherited from Node | |
| static bool | CanReturnRunning () |
Static Protected Attributes | |
| static float | FIXED_AIM_POINT_LEAD_TIME_FACTOR = 3.5 |
| static float | FIXED_AIM_POINT_TIMEOUT_FACTOR = 0.5 |
| static float | FIXED_AIM_POINT_TIMEOUT_LERP_FACTOR = 0.04 |
| static float | FIXED_AIM_POINT_MIN_SPEED_MS = 6 |
| static float | FIXED_AIM_POINT_MIN_DIST_M = 15 |
| static float | CQB_COMPENSATION_MAX_DIST_M = 30 |
| static float | CQB_COMPENSATION_MAX_MULTIPLIER = 0.4 |
| static float | SURFACE_CORRECTION_MAX_ELEVATION_M = 2.5 |
| static float | GL_SURFACE_AIMING_MIN_DIST_M = 30 |
| static float | SOLUTION_UPDATE_INTERVAL_MS = 750 |
| static string | TARGET_ENTITY_PORT = "TargetEntity" |
| static string | TARGET_POSITION_PORT = "TargetPosition" |
| static string | AIMPOINT_PORT = "AimPoint" |
| static string | VECTOR_IN_PORT = "VectorIn" |
| static string | INITIAL_SPEED_COEFFICIENT = "InitialSpeedCoefficient" |
| static string | VECTOR_OUT_PORT = "VectorOut" |
| static ref TStringArray | s_aVarsOut = {VECTOR_OUT_PORT} |
| static ref TStringArray | s_aVarsIn = {TARGET_ENTITY_PORT, TARGET_POSITION_PORT, AIMPOINT_PORT, VECTOR_IN_PORT, INITIAL_SPEED_COEFFICIENT} |
Static Protected Attributes inherited from Node | |
| static ref TStringArray | m_aEmptyVars = {} |
Additional Inherited Members | |
Protected Member Functions inherited from AITaskScripted | |
| string | GetNodeMiddleText () |
| void SCR_AIGetAimCompensation.CorrectForSurface | ( | out vector | aimCorrectionVector, |
| vector | targetPos, | ||
| vector | aimPos, | ||
| float | speedMs, | ||
| float | targetDistance ) |
| void SCR_AIGetAimCompensation.CreateFixedAimPoint | ( | BaseWeaponComponent | currentWeapon, |
| BaseMuzzleComponent | currentMuzzle, | ||
| vector | targetPos, | ||
| vector | targetVelocity, | ||
| float | initSpeedCoef, | ||
| float | time ) |
| override ENodeResult SCR_AIGetAimCompensation.EOnTaskSimulate | ( | AIAgent | owner, |
| float | dt ) |
Scripted nodes are suposed to return SUCCESS, FAIL or RUNNING state.
Implements AITaskScripted.
| void SCR_AIGetAimCompensation.GetDynamicAimCorrectionFactors | ( | out float | angleFactor, |
| out float | distanceFactor ) |
| vector SCR_AIGetAimCompensation.GetDynamicAimCorrectionVector | ( | vector | targetPos, |
| vector | aimVector, | ||
| vector | muzzlePos, | ||
| vector | targetVelocity, | ||
| float | targetDistance ) |
| float SCR_AIGetAimCompensation.GetEntityAimData | ( | IEntity | entity, |
| float | initSpeedCoef, | ||
| vector | targetPos, | ||
| vector | targetVelocity, | ||
| int | iterations, | ||
| out float | targetDistance, | ||
| out float | predictionTime, | ||
| out vector | muzzlePos, | ||
| out vector | muzzleDir ) |
| vector SCR_AIGetAimCompensation.GetEntityVelocity | ( | IEntity | entity | ) |
| float SCR_AIGetAimCompensation.GetMuzzleAimData | ( | BaseMuzzleComponent | currentMuzzle, |
| vector | targetPos, | ||
| vector | targetVelocity, | ||
| int | iterations, | ||
| out float | targetDistance, | ||
| out float | predictionTime, | ||
| out vector | muzzlePos, | ||
| out vector | muzzleDir ) |
|
staticprotected |
Implements Node.
| IEntity SCR_AIGetAimCompensation.GetRelevantEntity | ( | IEntity | entity | ) |
| override TStringArray SCR_AIGetAimCompensation.GetVariablesIn | ( | ) |
Implements Node.
| override TStringArray SCR_AIGetAimCompensation.GetVariablesOut | ( | ) |
Implements Node.
| override void SCR_AIGetAimCompensation.OnInit | ( | AIAgent | owner | ) |
Implements AITaskScripted.
| void SCR_AIGetAimCompensation.ValidateFixedAimPoint | ( | out vector | fixedAimPoint, |
| vector | targetPos, | ||
| float | time ) |
|
static |
Implements Node.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
| ref array<ref Shape> SCR_AIGetAimCompensation.m_aDbgShapes = {} |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |