outline¶
Source: gamemode/framework/libraries/thirdparty/cl_outline.lua
Documented functions: 3
Functions¶
GM:PreDrawOutlines(render_type)outline.Add(ents, color, mode, render_type, outline_thickness)outline.RenderedEntity()
GM:PreDrawOutlines(render_type)¶
A rendering hook that is run in @{GM:RenderScreenspaceEffects}, @{GM:PreDrawEffects} and @{GM:PreDrawViewModels} before the outlines are rendered.
Realm: client
Parameters
| Name | Type | Description |
|---|---|---|
number |
render_type |
[OUTLINE_RENDERTYPE_BEFORE_VM, OUTLINE_RENDERTYPE_BEFORE_EF, OUTLINE_RENDERTYPE_AFTER_EF] |
outline.Add(ents, color, mode, render_type, outline_thickness)¶
Adds an outline to a given list of entities.
Realm: client
Parameters
| Name | Type | Description |
|---|---|---|
table |
ents |
List of @{Entity} |
Color |
color |
The color of the added outline |
number |
mode |
[OUTLINE_MODE_BOTH, OUTLINE_MODE_NOTVISIBLE, OUTLINE_MODE_VISIBLE] |
number |
render_type |
[OUTLINE_RENDERTYPE_BEFORE_VM, OUTLINE_RENDERTYPE_BEFORE_EF, OUTLINE_RENDERTYPE_AFTER_EF] |
number |
outline_thickness |
The thickness of the added outline in pixels |
outline.RenderedEntity()¶
Realm: client
Returns
Entity: The last rendered @{Entity}