![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Protected Member Functions | |
| void | SCR_AIMovementDetector (IEntity myEntity) |
| void | Update (WorldTimestamp worldTime) |
| bool | GetMoving () |
| Returns current state, and updates it in lazy manner, not more often than once per UPDATE_INTERVAL_S. | |
Protected Attributes | |
| vector | m_vPrevPos |
| vector | m_vPosStopped |
| IEntity | m_OwnerEntity |
| WorldTimestamp | m_TimeLastStopped |
| WorldTimestamp | m_TimeLastMoved |
| WorldTimestamp | m_TimeLastUpdate |
| bool | m_bMoving |
Static Protected Attributes | |
| static const float | STOPPED_RADIUS = 6 |
| static const float | STOPPED_RADIUS_SQ = STOPPED_RADIUS * STOPPED_RADIUS |
| static const float | TIME_STOPPED_S = 0.7 |
| static const float | TIME_MOVING_S = 0.17 |
| static const float | UPDATE_INTERVAL_S = 0.2 |
This class is a state machine which estimates if entity is currently moving or is stopped. Main goal is to determine if player, as infantry group leader, intends to move, or intends to stay around same place. But it is used for AI squad leaders same way.
Definition at line 8 of file SCR_AIMovementDetector.c.
|
inlineprotected |
Definition at line 33 of file SCR_AIMovementDetector.c.
|
inlineprotected |
Returns current state, and updates it in lazy manner, not more often than once per UPDATE_INTERVAL_S.
Definition at line 90 of file SCR_AIMovementDetector.c.
|
inlineprotected |
Definition at line 39 of file SCR_AIMovementDetector.c.
|
protected |
Definition at line 16 of file SCR_AIMovementDetector.c.
|
protected |
Definition at line 12 of file SCR_AIMovementDetector.c.
|
protected |
Definition at line 14 of file SCR_AIMovementDetector.c.
|
protected |
Definition at line 13 of file SCR_AIMovementDetector.c.
|
protected |
Definition at line 15 of file SCR_AIMovementDetector.c.
|
protected |
Definition at line 11 of file SCR_AIMovementDetector.c.
|
protected |
Definition at line 10 of file SCR_AIMovementDetector.c.
|
staticprotected |
Definition at line 24 of file SCR_AIMovementDetector.c.
|
staticprotected |
Definition at line 25 of file SCR_AIMovementDetector.c.
|
staticprotected |
Definition at line 28 of file SCR_AIMovementDetector.c.
|
staticprotected |
Definition at line 27 of file SCR_AIMovementDetector.c.
|
staticprotected |
Definition at line 30 of file SCR_AIMovementDetector.c.