|
Third Person Cover Shooter
1.6
|
Finds covers when asked by the brains. More...
Public Member Functions | |
| void | OnThreatPosition (Vector3 position) |
| Notified by the brains of a new threat position. More... | |
| void | OnMaxCoverPivotDistance (float value) |
| Registers the max distance to search for covers. More... | |
| void | OnNoMaxCoverPivotDistance () |
| Registers that there is no max cover distance. More... | |
| void | OnHoldPosition (Vector3 position) |
| Registers that the AI is holding a position. More... | |
| void | OnPositionUnreachable (Vector3 position) |
| Registers that the current target cover is unreachable. More... | |
| void | ToKeepCloseTo (KeepCloseTo value) |
| Registers that the AI is told to keep close to a position. More... | |
| void | ToRunToCovers () |
| Sets the component to run towards future covers. More... | |
| void | ToWalkToCovers () |
| Sets the component to walk towards future covers. More... | |
| void | ToTakeCover () |
| Told by the brains to take the cloest cover. More... | |
| void | ToTakeCoverAgainst (Vector3 position) |
| Told by the brains to take the closest suitable cover. More... | |
| void | ToTakeDefenseCover (Vector3 position) |
| Told by the brains to take a defensive cover near a position. More... | |
| void | ToSwitchCover () |
| Told by the brains to take a cover closer to the enemy. More... | |
| void | ToTakeCoverCloseTo (AIBaseRegrouper regrouper) |
| Told by the brains to take a cover closer to the enemy. More... | |
| void | ToStopMoving () |
| Told by the brains to stop moving towards a cover. More... | |
| void | ToLeaveCover () |
| Told by the brains to exit cover. More... | |
Public Member Functions inherited from CoverShooter.AIBase | |
| void | Message (string name) |
| Sends a message to other components. More... | |
| void | Message (string name, object value) |
| Sends a message to other components. More... | |
Public Attributes | |
| float | MaxLowCoverThreatAngle = 60 |
| Maximum angle of a low cover relative to the enemy. More... | |
| float | MaxTallCoverThreatAngle = 40 |
| Maximum angle of a tall cover relative to the enemy. More... | |
| float | MaxDefenseAngle = 85 |
| Maximum angle of a cover relative to the defense position. More... | |
| float | MinDefenselessDistance = 30 |
| If an enemy is on the same cover side as the AI, the cover will be taken if only the distance is greater than this value. More... | |
| float | MaxCoverDistance = 30 |
| Maximum distance of a cover for AI to take. More... | |
| float | MinSwitchDistance = 6 |
| AI won't switch to cover positions closer than this distance. More... | |
| float | AvoidDistance = 6 |
| AI avoids taking covers that are closer to the enemy. More... | |
Finds covers when asked by the brains.
| void CoverShooter.AICover.OnHoldPosition | ( | Vector3 | position | ) |
Registers that the AI is holding a position.
Removes target cover.
| void CoverShooter.AICover.OnMaxCoverPivotDistance | ( | float | value | ) |
Registers the max distance to search for covers.
| void CoverShooter.AICover.OnNoMaxCoverPivotDistance | ( | ) |
Registers that there is no max cover distance.
| void CoverShooter.AICover.OnPositionUnreachable | ( | Vector3 | position | ) |
Registers that the current target cover is unreachable.
| void CoverShooter.AICover.OnThreatPosition | ( | Vector3 | position | ) |
Notified by the brains of a new threat position.
| position |
| void CoverShooter.AICover.ToKeepCloseTo | ( | KeepCloseTo | value | ) |
Registers that the AI is told to keep close to a position.
| void CoverShooter.AICover.ToLeaveCover | ( | ) |
Told by the brains to exit cover.
| void CoverShooter.AICover.ToRunToCovers | ( | ) |
Sets the component to run towards future covers.
| void CoverShooter.AICover.ToStopMoving | ( | ) |
Told by the brains to stop moving towards a cover.
| void CoverShooter.AICover.ToSwitchCover | ( | ) |
Told by the brains to take a cover closer to the enemy.
| void CoverShooter.AICover.ToTakeCover | ( | ) |
Told by the brains to take the cloest cover.
| void CoverShooter.AICover.ToTakeCoverAgainst | ( | Vector3 | position | ) |
Told by the brains to take the closest suitable cover.
| void CoverShooter.AICover.ToTakeCoverCloseTo | ( | AIBaseRegrouper | regrouper | ) |
Told by the brains to take a cover closer to the enemy.
| void CoverShooter.AICover.ToTakeDefenseCover | ( | Vector3 | position | ) |
Told by the brains to take a defensive cover near a position.
| void CoverShooter.AICover.ToWalkToCovers | ( | ) |
Sets the component to walk towards future covers.
| float CoverShooter.AICover.AvoidDistance = 6 |
AI avoids taking covers that are closer to the enemy.
| float CoverShooter.AICover.MaxCoverDistance = 30 |
Maximum distance of a cover for AI to take.
| float CoverShooter.AICover.MaxDefenseAngle = 85 |
Maximum angle of a cover relative to the defense position.
| float CoverShooter.AICover.MaxLowCoverThreatAngle = 60 |
Maximum angle of a low cover relative to the enemy.
| float CoverShooter.AICover.MaxTallCoverThreatAngle = 40 |
Maximum angle of a tall cover relative to the enemy.
| float CoverShooter.AICover.MinDefenselessDistance = 30 |
If an enemy is on the same cover side as the AI, the cover will be taken if only the distance is greater than this value.
| float CoverShooter.AICover.MinSwitchDistance = 6 |
AI won't switch to cover positions closer than this distance.