Nuclide
Software Development Kit for id Technology (BETA)
Loading...
Searching...
No Matches
ncNavInfo Class Reference

Public Member Functions

nonvirtual vector PositionOfClosestNode (vector)
 
nonvirtual vector FindCoverFromEnemy (ncActor targetEnemy)
 Returns the position of a spot that'll provide cover from the specified enemy.
 
nonvirtual vector FindBackFromPosition (vector targetPosition, vector eulerDirection)
 Returns the position of a spot that'll be behind where you're currently standing.
 
nonvirtual vector FindCoverFromEnemyNearNode (ncActor targetEnemy, vector nodePosition)
 Returns the position of a spot that'll provide cover from the specified enemy, closest to a specified node.
 
nonvirtual vector FindCoverFromEnemyFarNode (ncActor targetEnemy, vector nodePosition)
 Returns the position of a spot that'll provide cover from the specified enemy, furthest from a specified node.
 
nonvirtual vector FindCoverFromPosition (entity traceEntity, vector targetOrigin)
 Returns the position of a spot that'll provide cover from the specified enemy.
 
nonvirtual vector FindEmptySpotNearPosition (entity traceEntity, vector position, float minRadius, float maxRadius)
 Returns the position of a spot that is accessible within a specified position.
 
nonvirtual vector FindEmptySpotAwayFromPosition (entity traceEntity, vector position, float minRadius, float maxRadius)
 Returns the position of a spot that is far away within a specified position.
 

Member Function Documentation

◆ FindBackFromPosition()

vector ncNavInfo::FindBackFromPosition ( vector targetPosition,
vector eulerDirection )

Returns the position of a spot that'll be behind where you're currently standing.

Parameters
targetPositionThe position to back away from.
eulerDirectionThe direction we're looking in, in euler-angles.
Returns
Absolute position of a valid cover spot.

◆ FindCoverFromEnemy()

vector ncNavInfo::FindCoverFromEnemy ( ncActor targetEnemy)

Returns the position of a spot that'll provide cover from the specified enemy.

Parameters
targetEnemyThe enemy to hide from.
Returns
Absolute position of a valid cover spot.

◆ FindCoverFromEnemyFarNode()

vector ncNavInfo::FindCoverFromEnemyFarNode ( ncActor targetEnemy,
vector nodePosition )

Returns the position of a spot that'll provide cover from the specified enemy, furthest from a specified node.

Parameters
targetEnemyThe enemy to hide from.
nodePositionThe position we should get as far away from as possible from.
Returns
Absolute position of a valid cover spot.

◆ FindCoverFromEnemyNearNode()

vector ncNavInfo::FindCoverFromEnemyNearNode ( ncActor targetEnemy,
vector nodePosition )

Returns the position of a spot that'll provide cover from the specified enemy, closest to a specified node.

Parameters
targetEnemyThe enemy to hide from.
nodePositionThe position we should get closest to.
Returns
Absolute position of a valid cover spot.

◆ FindCoverFromPosition()

vector ncNavInfo::FindCoverFromPosition ( entity traceEntity,
vector targetOrigin )

Returns the position of a spot that'll provide cover from the specified enemy.

Parameters
traceEntityThe entity which will be testing for collisions.
targetOriginThe spot to hide from.
Returns
Absolute position of a valid cover spot.

◆ FindEmptySpotAwayFromPosition()

vector ncNavInfo::FindEmptySpotAwayFromPosition ( entity traceEntity,
vector position,
float minRadius,
float maxRadius )

Returns the position of a spot that is far away within a specified position.

Parameters
traceEntityThe entity which will be testing for collisions.
targetOriginThe spot to be near.
minRadiusThe mininum distance / search radius from the targetOrigin.
maxRadiusThe maximum Radius in which we'll look for a free spot.
Returns
Absolute position of a valid cover spot.

◆ FindEmptySpotNearPosition()

vector ncNavInfo::FindEmptySpotNearPosition ( entity traceEntity,
vector position,
float minRadius,
float maxRadius )

Returns the position of a spot that is accessible within a specified position.

Parameters
traceEntityThe entity which will be testing for collisions.
targetOriginThe spot to be near.
minRadiusThe mininum distance / search radius from the targetOrigin.
maxRadiusThe maximum Radius in which we'll look for a free spot.
Returns
Absolute position of a valid cover spot.

◆ PositionOfClosestNode()

vector ncNavInfo::PositionOfClosestNode ( vector pointOrigin)

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