ello Guys, Since a lot of people were asking how to implement new lights I have uploaded some of our internal tutorial/test maps on Dropbox.
I would recommend checking out tut_nextgen_lights_optimised.vmf since it contains a lot of examples in a single map. Then you can check one of those specialized example/test maps too.
Please note that these maps are not the most optimized version of maps and they were just created to test/demo specific bugs/features.
To help us configure new lights in a faster way we have implemented Ingame Light Editor. Here’s a quick tutorial/documentation from our internal forums -
In game Light Editor - a Convar based system for easily selecting new Light entities and edit their properties via convar. (Whenever alex get free from UI he will look into UI for editor and even saving to vmf if its easy)
Here’s the overall workflow -
-
le_editor_selection_mode_enabled - Enable Light Editor selection mode. It will show you xyz axis and a box around light entity in your cross hair.
[ATTACHMENT NOT FOUND] -
le_editor_selection_lock - Lock your selection.
-
Opon locking its properties will be mapped to convars starting with le_light_ and le_gr_ . You can use these convars to modify different light properties and copy paste them to hammer later on.
[ATTACHMENT NOT FOUND][ATTACHMENT NOT FOUND]
- le_editor_selection_clear - Once you are done with a selected light and if you want to clear selection you can use this convar. Once selection is reset all the helper meshes (box/sphere) will also disappear.
List of Convars
(Each of these le_light_* convar should have helpful descriptions but still in case someone needs more info feel free to ask questions.)
Editor Convars
le_editor_selection_mode_enabled - Toggles New Light selection mode. When it is on, the bounding box, pivot and debugging text is displayed for whatever LIGHT the player is looking at.
le_editor_selection_lock - Locks the selected light and exits selection mode
le_editor_print_selected_light_details - print the details of selected light
le_editor_selection_clear - Clears Light Selection
Editor config Convars
le_config_selected_sphere_size - Size of sphere shown around selected Light
le_config_selection_box_size - Size of box that appears during selection mode
Light Properties Convars
le_light_Pos
le_light_Col
etc
le_gr_radius
le_gr_col_rays
etc