Drawcross: Difference between revisions
Jump to navigation
Jump to search

Tip:clear_debug_overlays command doesn't clear these lines but it's possible to hide them by issuing
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
{{tip|clear_debug_overlays command doesn't clear these lines but it's possible to hide them by issuing <code>drawline 0 0 0 0 0 0</code> 20 times. It's possible to {{cmd|alias}} it as follows for quick way to clear them. clear_debug_overlays is autocomplete by console and adding 2 at the end is fast. | {{tip|clear_debug_overlays command doesn't clear these lines but it's possible to hide them by issuing <code>drawline 0 0 0 0 0 0</code> 20 times. It's possible to {{cmd|alias}} it as follows for quick way to clear them. clear_debug_overlays is autocomplete by console and adding 2 at the end is fast. | ||
<pre>alias e | <pre>alias e drawline; | ||
alias clear_debug_overlays2 "e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e" | alias clear_debug_overlays2 "e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e" | ||
</pre>}} | </pre>}} |
Revision as of 01:46, 12 May 2025


drawcross
and drawline
are console commands available in all Source games. Creates lines or crosses. Cross consists of 4 lines and there are 20 lines possible to be drawn at once (i.e. 5 crosses, or 4 crosses and 4 lines, 3 crosses and 8 lines etc.). The lines they draw are red if intersecting with something that blocks line of sight otherwise white.

drawline 0 0 0 0 0 0
20 times. It's possible to alias it as follows for quick way to clear them. clear_debug_overlays is autocomplete by console and adding 2 at the end is fast.
alias e drawline; alias clear_debug_overlays2 "e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e"
Examples
drawcross 152 366 487
drawline 100 200 130 500 -650 142