Template:L4D series navbits table: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Use <includeonly> and <onlyinclude> instead of <noinclude>. Added a Template "Template:Lang")
(TODO Cleared and added various "{{only|l4d2}}"; Removed leftover "{{#ifeq:}}"; Added the missing "OBSCURED" Spawn Attribute; CSS settings)
Line 1: Line 1:
{{lang|Template:L4D series navbits table}}
{{lang|Template:L4D series navbits table}}
<onlyinclude><includeonly>The * character designates a name created by the community for easy identification.
<onlyinclude><includeonly>The * character designates a name created by the community for easy identification.
 
{{tip|Any attribute here can be used in [[func_nav_attribute_region]] by inserting their bit value as a [[flag]]!}}
{{tip|Any attribute here can be used in [[func_nav_attribute_region]] by inserting their bit value as a [[flag]]!}}{{ExpandBox|{{todo|The following needs to be checked for {{game name|l4d|name=Left 4 Dead}}:
<div style="display:flex; margin:auto auto; text-align:center;">
# Compass Bitflags - Spawn Attributes
{| class="wikitable" style="flex:1.0 1.5;"
# <code>NAV_MESH_FLOW_BLOCKED</code> - Base Attributes
# NAV_MESH_OUTSIDE_WORLD - Base Attributes
# NAV_MESH_MOSTLY_FLAT - Base Attributes
}}|TODO:}}
<div style="display:flex;flex-wrap:wrap; width:70%;margin: auto auto; text-align:center;">
{| class="wikitable" style="flex:1;width:20%;"
!colspan=2|Base Attributes
!colspan=2|Base Attributes
|-
|-
! Name !! Bit
! Name !! Bit
|-  
|-
| <code>CROUCH</code>  || <code>1 <nowiki><<</nowiki> 0 (1)</code>
| <code>CROUCH</code>  || <code>1 <nowiki><<</nowiki> 0 (1)</code>
|-
|-
Line 54: Line 48:
| <code>BREAKABLEWALL</code><br>{{only|{{l4d2}}}}  || <code>1 <nowiki><<</nowiki> 19 (524288)</code>
| <code>BREAKABLEWALL</code><br>{{only|{{l4d2}}}}  || <code>1 <nowiki><<</nowiki> 19 (524288)</code>
|-
|-
| <code>NAV_MESH_FLOW_BLOCKED</code>*  || <code>1 <nowiki><<</nowiki> 27 (134217728)</code>
| style="font-size:13px"| <code>NAV_MESH_FLOW_BLOCKED</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 27 (134217728)</code>
|-
|-
| <code>NAV_MESH_OUTSIDE_WORLD</code>  || <code>1 <nowiki><<</nowiki> 28 (268435456)</code>
| style="font-size:13px"| <code>NAV_MESH_OUTSIDE_WORLD</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 28 (268435456)</code>
|-
|-
| <code>NAV_MESH_MOSTLY_FLAT</code>  || <code>1 <nowiki><<</nowiki> 29 (536870912)</code>
| style="font-size:13px"| <code>NAV_MESH_MOSTLY_FLAT</code><br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 29 (536870912)</code>
|-
|-
| <code>NAV_MESH_HAS_ELEVATOR</code>  || <code>1 <nowiki><<</nowiki> 30 (1073741824)</code>
| style="font-size:13px"| <code>NAV_MESH_HAS_ELEVATOR</code>  || <code>1 <nowiki><<</nowiki> 30 (1073741824)</code>
|-
|-
| <code>NAV_MESH_NAV_BLOCKER</code>  || <code>1 <nowiki><<</nowiki> 31 (-2147483648)</code>
| style="font-size:13px"| <code>NAV_MESH_NAV_BLOCKER</code>  || <code>1 <nowiki><<</nowiki> 31 (-2147483648)</code>
|}
|}


{| class="wikitable" style="flex:0.5;"
{| class="wikitable" style="flex:0.5 2.0;"
| style="font-size:150%"| L4D Series<br>Navigation Attribute<br>Bits
| style="font-size:150%"| L4D Series<br>Navigation Attribute<br>Bits
|}
|}


{| class="wikitable" style="flex:1;width:20%;"
{| class="wikitable" style="flex:1.0 1.5;"
!colspan=2|Spawn Attributes
!colspan=2|Spawn Attributes
|-
|-
Line 79: Line 73:
|-
|-
| <code>STOP_SCAN</code>  || <code>1 <nowiki><<</nowiki> 2 (4)</code>
| <code>STOP_SCAN</code>  || <code>1 <nowiki><<</nowiki> 2 (4)</code>
{{#ifeq: {{{context|}}} | mapping ||
|-
|-
| (No name)  || <code>1 <nowiki><<</nowiki> 3 (8)</code>
| (No name)  || <code>1 <nowiki><<</nowiki> 3 (8)</code>
|-
|-
| (No name)  || <code>1 <nowiki><<</nowiki> 4 (16)</code>
| (No name)  || <code>1 <nowiki><<</nowiki> 4 (16)</code>
}}
|-
|-
| <code>BATTLESTATION</code>  || <code>1 <nowiki><<</nowiki> 5 (32)</code>
| <code>BATTLESTATION</code>  || <code>1 <nowiki><<</nowiki> 5 (32)</code>
Line 97: Line 89:
|-
|-
| <code>NOT_CLEARABLE</code> || <code>1 <nowiki><<</nowiki> 10 (1024)</code>
| <code>NOT_CLEARABLE</code> || <code>1 <nowiki><<</nowiki> 10 (1024)</code>
|-
| <code>OBSCURED</code> || <code>1 <nowiki><<</nowiki> 11 (2048)</code>
|-
|-
| <code>CHECKPOINT</code> || <code>1 <nowiki><<</nowiki> 12 (4096)</code>
| <code>CHECKPOINT</code> || <code>1 <nowiki><<</nowiki> 12 (4096)</code>
Line 116: Line 110:
| <code>LYINGDOWN</code><br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 20 (1048576)</code>
| <code>LYINGDOWN</code><br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 20 (1048576)</code>
|-
|-
| <code>COMPASS_NORTH</code>*  || <code>1 <nowiki><<</nowiki> 24 (16777216)</code>
| <code>COMPASS_NORTH</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 24 (16777216)</code>
|-
|-
| <code>COMPASS_NORTHEAST</code>*  || <code>1 <nowiki><<</nowiki> 25 (33554432)</code>
| <code>COMPASS_NORTHEAST</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 25 (33554432)</code>
|-
|-
| <code>COMPASS_EAST</code>*  || <code>1 <nowiki><<</nowiki> 26 (67108864)</code>
| <code>COMPASS_EAST</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 26 (67108864)</code>
|-
|-
| <code>COMPASS_EASTSOUTH</code>*  || <code>1 <nowiki><<</nowiki> 27 (134217728)</code>
| <code>COMPASS_EASTSOUTH</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 27 (134217728)</code>
|-
|-
| <code>COMPASS_SOUTH</code>*  || <code>1 <nowiki><<</nowiki> 28 (268435456)</code>
| <code>COMPASS_SOUTH</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 28 (268435456)</code>
|-
|-
| <code>COMPASS_SOUTHWEST</code>*  || <code>1 <nowiki><<</nowiki> 29 (536870912)</code>
| <code>COMPASS_SOUTHWEST</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 29 (536870912)</code>
|-
|-
| <code>COMPASS_WEST</code>*  || <code>1 <nowiki><<</nowiki> 30 (1073741824)</code>
| <code>COMPASS_WEST</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 30 (1073741824)</code>
|-
|-
| <code>COMPASS_WESTNORTH</code>*  || <code>1 <nowiki><<</nowiki> 31 (-2147483648)</code>
| <code>COMPASS_WESTNORTH</code>*<br>{{only|{{l4d2}}}} || <code>1 <nowiki><<</nowiki> 31 (-2147483648)</code>
|}
|}
</div></includeonly></onlyinclude>
</div></includeonly></onlyinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->

Revision as of 04:55, 17 October 2021


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

A template for a chart consisting all of Left 4 Dead 2 Left 4 Dead 2 nav attributes's bits. Not only it makes things more tidy with a template, this chart may be present in multiple pages for the future.

Example

{{L4D series navbits table}}

will:
The * character designates a name created by the community for easy identification.
Tip.pngTip:Any attribute here can be used in func_nav_attribute_region by inserting their bit value as a flag!
Base Attributes
Name Bit
CROUCH 1 << 0 (1)
JUMP 1 << 1 (2)
PRECISE 1 << 2 (4)
NO_JUMP 1 << 3 (8)
STOP 1 << 4 (16)
RUN 1 << 5 (32)
WALK 1 << 6 (64)
AVOID 1 << 7 (128)
TRANSIENT 1 << 8 (256)
DONT_HIDE 1 << 9 (512)
STAND 1 << 10 (1024)
NO_HOSTAGES 1 << 11 (2048)
STAIRS 1 << 12 (4096)
NO_MERGE 1 << 13 (8192)
OBSTACLE_TOP 1 << 14 (16384)
CLIFF 1 << 15 (32768)
TANK_ONLY 1 << 16 (65536)
MOB_ONLY 1 << 17 (131072)
PLAYERCLIP
(only in Left 4 Dead 2)
1 << 18 (262144)
BREAKABLEWALL
(only in Left 4 Dead 2)
1 << 19 (524288)
NAV_MESH_FLOW_BLOCKED*
(only in Left 4 Dead 2)
1 << 27 (134217728)
NAV_MESH_OUTSIDE_WORLD*
(only in Left 4 Dead 2)
1 << 28 (268435456)
NAV_MESH_MOSTLY_FLAT
(only in Left 4 Dead 2)
1 << 29 (536870912)
NAV_MESH_HAS_ELEVATOR 1 << 30 (1073741824)
NAV_MESH_NAV_BLOCKER 1 << 31 (-2147483648)
L4D Series
Navigation Attribute
Bits
Spawn Attributes
Name Bit
(No name) 1 << 0 (1)
EMPTY 1 << 1 (2)
STOP_SCAN 1 << 2 (4)
(No name) 1 << 3 (8)
(No name) 1 << 4 (16)
BATTLESTATION 1 << 5 (32)
FINALE 1 << 6 (64)
PLAYER_START 1 << 7 (128)
BATTLEFIELD 1 << 8 (256)
IGNORE_VISIBILITY 1 << 9 (512)
NOT_CLEARABLE 1 << 10 (1024)
OBSCURED 1 << 11 (2048)
CHECKPOINT 1 << 12 (4096)
NO_MOBS 1 << 13 (8192)
THREAT 1 << 14 (16384)
RESCUE_VEHICLE 1 << 15 (32768)
RESCUE_CLOSET 1 << 16 (65536)
ESCAPE_ROUTE 1 << 17 (131072)
DOOR or DESTROYED_DOOR 1 << 18 (262144)
NOTHREAT
(only in Left 4 Dead 2)
1 << 19 (524288)
LYINGDOWN
(only in Left 4 Dead 2)
1 << 20 (1048576)
COMPASS_NORTH*
(only in Left 4 Dead 2)
1 << 24 (16777216)
COMPASS_NORTHEAST*
(only in Left 4 Dead 2)
1 << 25 (33554432)
COMPASS_EAST*
(only in Left 4 Dead 2)
1 << 26 (67108864)
COMPASS_EASTSOUTH*
(only in Left 4 Dead 2)
1 << 27 (134217728)
COMPASS_SOUTH*
(only in Left 4 Dead 2)
1 << 28 (268435456)
COMPASS_SOUTHWEST*
(only in Left 4 Dead 2)
1 << 29 (536870912)
COMPASS_WEST*
(only in Left 4 Dead 2)
1 << 30 (1073741824)
COMPASS_WESTNORTH*
(only in Left 4 Dead 2)
1 << 31 (-2147483648)