Line of sight: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (The text has been translated into Polish. | Tekst został przetłumaczony na język polski.)
m (Unicodifying)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{otherlang2
{{lang|Line of sight}}
|ru=Line_of_sight:ru
'''Line of sight''' (sometimes written '''line-of-sight''' or abbreviated to '''LoS''' or '''LOS''') is an invisible straight line used to determine whether entities can see other entities in the world. If the line of sight is unobstructed from a viewer to a target, it is "established", and the game determines that the viewer can see the target.
}}
'''linia widoku(ang. "Line of sight" - LoS)''' (Jest ona czasami zapisywana w lini widoku lub w skrócie LoS) jest to niewidzialna linia prosta, która ma za zadanie ustalić, czy dany byt ma widzieć inny byt. (jeżeli linia widoku nie zostanie przerwana od widza do celu(od bytu do bytu), to zasięg ten "Powstaje" a gra interpretuje go, iż widz widzi cel.)


LOS jest blokowany przez wszelkiego rodzaju geometrię brył (Models, [[func_detail]] brushes, itd.) chyba, że dany pędzel lub model ma maskę "SolidSask" która jest nie widoczna dla LoS.
LOS is blocked by all Solid geometry (Models, [[func detail]] brushes, etc.) unless the brush/model has a SolidMask that is NotSolid to LOS, i.e. Transparent.


Niektóre [[prop_physics]] nie blokują LOS, użyj [[ai debug los]] by sprawdzić, które propy mogą go nie blokować.
Some [[prop physics]] do not block LOS. Use {{ent|ai_debug_los}} to check which props.


[[tool texture|Block LOS tool texture]] Powstała specjalnie by blokować LoS NPC.
[[NPC]]s can only establish line of sight within their [[viewcone]], in turn established by the width of their [[Field of View]], in turn established by the value of their [[m flFieldOfView]].


[[NPC]] mogą ustalić linię widoku tylko w obrębie [[viewcone]], z kolei ustaloną na podstawie szerokości [[FOV|Pola widzenia]], z kolei ustalaną przez wartość [[m_flFieldOfView]].
NPCs can fire [[Inputs and Outputs#Outputs|Outputs]] if it finds or loses line of sight to an enemy (<code>OnFoundEnemy/OnLostEnemyLOS</code>) or specifically the player (<code>OnFoundPlayer/OnLostPlayerLOS</code>).


NPC mogą aktywować [[Outputs#Outputs|Outputs]] jeśli znajdą lub utracą pole widzenia wroga (OnFoundEnemy/OnLostEnemyLOS) lub konkretnie gracza (OnFoundPlayer/OnLostPlayerLOS).
[[File:Toolsblocklos.gif|left|link=tool texture#blocklos]]
 
The [[tool texture#blocklos|Block LOS tool texture]] is specifically designed to block NPC LOS. Some [[bot]]s are also affected by this texture.
 
{{clr}}
 
==Zobacz też==
 
*[[NPC_FOV]] - A list of NPC [[m_flFieldOfView]] values.
*[[Talk:NPC_Sensing]]


==See also==


*[[NPC FOV]] - A list of NPC [[m flFieldOfView]] values.
*[[Talk:NPC Sensing]]


[[Category:Glossary]]
[[Category:Glossary]]

Latest revision as of 15:04, 7 January 2024

English (en)Polski (pl)Русский (ru)中文 (zh)Translate (Translate)

Line of sight (sometimes written line-of-sight or abbreviated to LoS or LOS) is an invisible straight line used to determine whether entities can see other entities in the world. If the line of sight is unobstructed from a viewer to a target, it is "established", and the game determines that the viewer can see the target.

LOS is blocked by all Solid geometry (Models, func detail brushes, etc.) unless the brush/model has a SolidMask that is NotSolid to LOS, i.e. Transparent.

Some prop physics do not block LOS. Use ai_debug_los to check which props.

NPCs can only establish line of sight within their viewcone, in turn established by the width of their Field of View, in turn established by the value of their m flFieldOfView.

NPCs can fire Outputs if it finds or loses line of sight to an enemy (OnFoundEnemy/OnLostEnemyLOS) or specifically the player (OnFoundPlayer/OnLostPlayerLOS).

Toolsblocklos.gif

The Block LOS tool texture is specifically designed to block NPC LOS. Some bots are also affected by this texture.

See also