Func nav prefer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
(nofgd)
Line 1: Line 1:
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->
{{lang}}
{{lang}}
{{ent not in fgd}}
{{CD|CFuncNavPrefer|file1=1}}
{{CD|CFuncNavPrefer|file1=1}}
{{this is a|brush entity|name=func_nav_prefer|game=Team Fortress 2|game1=Counter-Strike: Source}} It is also available in {{bms|4}}.
{{this is a|brush entity|name=func_nav_prefer|game=Team Fortress 2|game1=Counter-Strike: Source|game2=Black Mesa}}


Artificially makes bots prefer a certain area when choosing navigation paths by decreasing the pathfinding cost of progressing through the area.
Artificially makes bots prefer a certain area when choosing navigation paths by decreasing the pathfinding cost of progressing through the area.

Revision as of 23:18, 29 June 2024

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the Counter-Strike: Source FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CFuncNavPrefer
CFuncNavCost
CBaseEntity
C++ nav_entities.cpp

func_nav_prefer is a brush entity available in Team Fortress 2 Team Fortress 2, Counter-Strike: Source Counter-Strike: Source, and Black Mesa Black Mesa.

Artificially makes bots prefer a certain area when choosing navigation paths by decreasing the pathfinding cost of progressing through the area.

Note.pngNote: For this entity to take effect, it's volume must cover an entire nav cell to take effect on that cell.
Note.pngNote: The path cost of moving through this nav area is 4% of the regular cost. While unlikely, other paths could have a value lower than the preferred path.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
TeamNum:
Initial Team (TeamNum, or teamnumber Counter-Strike: Global Offensive) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator, Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2, Survivors Left 4 Dead seriesLeft 4 Dead series, Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Marines (Team-based game modes only) Black Mesa
  • 3: BLU/Robots Team Fortress 2, Infected Left 4 Dead seriesLeft 4 Dead series, Counter-Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Scientists (Team-based game modes only) Black Mesa
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD
Tags (tags) <string>
additional context for if the entity should apply to a specific bot

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

See also