Third Person Cover Shooter
1.6
|
When the fighter brains enters investigation mode it passes the command of the character motor to this component. More...
Public Member Functions | |
void | InvestigationCheck () |
Responds with an answer to a brain enquiry. More... | |
void | ToInvestigatePosition (Vector3 position) |
Told by the brains to investigate a position. More... | |
void | ToStopInvestigation () |
Told by the brains to stop investigating. More... | |
void | OnPositionUnreachable (Vector3 position) |
Notified that a position is unreachable. 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 | VerifyDistance = 10 |
Distance to the investigation position for it to be marked as investigated. More... | |
float | VerifyHeight = 0.3f |
At which height the AI confirms the point as investigated. More... | |
float | VerifyRadius = 1 |
Radius of an investigation point when it's close to a cover. More... | |
float | FieldOfView = 90 |
Field of view when checking an investigation position. More... | |
float | CoverOffset = 2 |
Distance to a cover to maintain when approaching to see behind it. More... | |
float | CoverSearchDistance = 3 |
Cover search radius around an investigation point. More... | |
When the fighter brains enters investigation mode it passes the command of the character motor to this component.
It makes the AI walk slowly towards the position the enemy was last seen at.
void CoverShooter.AIInvestigation.InvestigationCheck | ( | ) |
Responds with an answer to a brain enquiry.
void CoverShooter.AIInvestigation.OnPositionUnreachable | ( | Vector3 | position | ) |
Notified that a position is unreachable.
Sets the investigation as finished if the position has been being investigated.
void CoverShooter.AIInvestigation.ToInvestigatePosition | ( | Vector3 | position | ) |
Told by the brains to investigate a position.
void CoverShooter.AIInvestigation.ToStopInvestigation | ( | ) |
Told by the brains to stop investigating.
float CoverShooter.AIInvestigation.CoverOffset = 2 |
Distance to a cover to maintain when approaching to see behind it.
float CoverShooter.AIInvestigation.CoverSearchDistance = 3 |
Cover search radius around an investigation point.
Closest cover will be checked when investigating.
float CoverShooter.AIInvestigation.FieldOfView = 90 |
Field of view when checking an investigation position.
float CoverShooter.AIInvestigation.VerifyDistance = 10 |
Distance to the investigation position for it to be marked as investigated.
float CoverShooter.AIInvestigation.VerifyHeight = 0.3f |
At which height the AI confirms the point as investigated.
float CoverShooter.AIInvestigation.VerifyRadius = 1 |
Radius of an investigation point when it's close to a cover.
AI tries to verify all of it is clear of enemies when investigating. Aiming is done at the central point so keep the radius small.