Third Person Cover Shooter  1.6
CoverShooter.AICover Class Reference

Finds covers when asked by the brains. More...

Inheritance diagram for CoverShooter.AICover:
CoverShooter.AIBase

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...
 

Detailed Description

Finds covers when asked by the brains.

Member Function Documentation

◆ OnHoldPosition()

void CoverShooter.AICover.OnHoldPosition ( Vector3  position)

Registers that the AI is holding a position.

Removes target cover.

◆ OnMaxCoverPivotDistance()

void CoverShooter.AICover.OnMaxCoverPivotDistance ( float  value)

Registers the max distance to search for covers.

◆ OnNoMaxCoverPivotDistance()

void CoverShooter.AICover.OnNoMaxCoverPivotDistance ( )

Registers that there is no max cover distance.

◆ OnPositionUnreachable()

void CoverShooter.AICover.OnPositionUnreachable ( Vector3  position)

Registers that the current target cover is unreachable.

◆ OnThreatPosition()

void CoverShooter.AICover.OnThreatPosition ( Vector3  position)

Notified by the brains of a new threat position.

Parameters
position

◆ ToKeepCloseTo()

void CoverShooter.AICover.ToKeepCloseTo ( KeepCloseTo  value)

Registers that the AI is told to keep close to a position.

◆ ToLeaveCover()

void CoverShooter.AICover.ToLeaveCover ( )

Told by the brains to exit cover.

◆ ToRunToCovers()

void CoverShooter.AICover.ToRunToCovers ( )

Sets the component to run towards future covers.

◆ ToStopMoving()

void CoverShooter.AICover.ToStopMoving ( )

Told by the brains to stop moving towards a cover.

◆ ToSwitchCover()

void CoverShooter.AICover.ToSwitchCover ( )

Told by the brains to take a cover closer to the enemy.

◆ ToTakeCover()

void CoverShooter.AICover.ToTakeCover ( )

Told by the brains to take the cloest cover.

◆ ToTakeCoverAgainst()

void CoverShooter.AICover.ToTakeCoverAgainst ( Vector3  position)

Told by the brains to take the closest suitable cover.

◆ ToTakeCoverCloseTo()

void CoverShooter.AICover.ToTakeCoverCloseTo ( AIBaseRegrouper  regrouper)

Told by the brains to take a cover closer to the enemy.

◆ ToTakeDefenseCover()

void CoverShooter.AICover.ToTakeDefenseCover ( Vector3  position)

Told by the brains to take a defensive cover near a position.

◆ ToWalkToCovers()

void CoverShooter.AICover.ToWalkToCovers ( )

Sets the component to walk towards future covers.

Member Data Documentation

◆ AvoidDistance

float CoverShooter.AICover.AvoidDistance = 6

AI avoids taking covers that are closer to the enemy.

◆ MaxCoverDistance

float CoverShooter.AICover.MaxCoverDistance = 30

Maximum distance of a cover for AI to take.

◆ MaxDefenseAngle

float CoverShooter.AICover.MaxDefenseAngle = 85

Maximum angle of a cover relative to the defense position.

◆ MaxLowCoverThreatAngle

float CoverShooter.AICover.MaxLowCoverThreatAngle = 60

Maximum angle of a low cover relative to the enemy.

◆ MaxTallCoverThreatAngle

float CoverShooter.AICover.MaxTallCoverThreatAngle = 40

Maximum angle of a tall cover relative to the enemy.

◆ MinDefenselessDistance

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.

◆ MinSwitchDistance

float CoverShooter.AICover.MinSwitchDistance = 6

AI won't switch to cover positions closer than this distance.


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