Xog Editor

Xog Editor is a based on console commands in-game xog editor, avaible in . This editor can configure on the fly most properties of global xog and xog volume with instant results in game; you can also add new ones to see how they look at your level. Initially, it was planned to implement the editor via VGUI, but because VGUI is not easy to work with, Kim made xogscript.cfg, which can be executed once to bind various console commands to keys on the keyboard to make the process much easier.
==Usage==
Before Xog Editor usage, make a copy of your config.cfg file (for example config_copy.cfg), because Xog Editor rewrites some bindings. With a copy of the file, you will be able to restore all your binds quickly.
To activate Xog Editor, at first, open the console (usually this is bind), than enter in the console (it is also recommended to enter , this to have full access to the commands). After this, you will be automatically moved in , with this, some bindings will rewratted, and you'll see the message in the console.
File:XogScript1.jpg|The message.
So, the Xog Editor editor is now activated and you may already noticed orange box around entity that is under your crosshair.
File:XogScriptBox.jpg|The orange box.
This is bounding box, usually uses by game engine to tell when model can be seen by player to draw or not draw it (for performance). You also can see the lines which shows direction of entity, they are always located in origin.
In this case, both things shows you entity that you are targeting, so, technically you can select and edit any entity, but most commands will not produce any results. The only two entities you should interact with is and .
To edit your xog entity, move your crosshair at it. You'll note the lines which shows direction of it, you'll see bounding box in case of xog volume as well.
File:XogScript2.jpg|This is how it looks like with global xog.
File:XogScript5.jpg|This is how it looks like with xog volume.
Press to select it (to deselect it, press again). The bounding box and lines will disappear.
File:XogScript3.jpg|This is how it looks like with global xog.
File:XogScript6.jpg|This is how it looks like with xog volume.
Now you can change xog properties. In total you can change 10 different properties. There are 5 buttons in total, one button for every two property, you switch between them by pressing on it.
To select one of the properties you want to change, press one of these buttons: to or to on numpad. See below for what each does. To get full list of binds - press on numpad.
File:XogScriptSel.jpg|This message appear when you select property.
After property selection, you can increase or decrease property value. Use mouse wheel up to increase, or on numpad. Use mouse wheel down to decrease, or on numpad. The resulting value will be displayed in the console.
File:XogScriptValu.jpg|This message appear when you change value.
Once you have decided on the values, manually write them in Hammer. If you have lost some value, you can get full information about selected light source, press or on numpad.
File:XogScriptInfo.jpg|Example with the xog volume.
To delete xog, press , or on numpad.
To disable Xog Editor, enter in the console .
==Keypad List==
This is full list of bind/commands.
* or on numpad - Start Distance / End Distance.
* or on numpad - Height Color Start / Height Color End.
* or on numpad - Height Z Start / Height Z End.
* or on numpad - Noise Contrast / Noise Multiplier.
* or on numpad - Opacity Offset Bottom / Opacity Offset Top.
* - select/deselect xog.
* or on numpad - increase value of selected property.
* or on numpad - decrease value of selected property.
* or on numpad - shows all values of selected xog.
* on numpad - shows all keypad binds.
* or on numpad - removes any entity your crosshair is pointed at.
==Unused Commands==
Some commands are unsed. You still can use them via console when your xog is selected.
* - sets xog sky color value (RGB).
* - sets xog sky blend factor (float).
* - sets xog color mode (0, 1 or 2).
* - sets grad texture (string).
* - sets top color value (RGB).
* - sets bottom color value (RGB).
* - sets noise 1 speed (X, Y, Z).
* - sets noise 2 speed (X, Y, Z).
* - sets noise 1 tiling (X, Y, Z).
* - sets noise 2 tiling (X, Y, Z).
== See also ==
* - similar editor, but for new lights.
* - global xog entity.
* - xog volume entity.
* - entity that changes properties for xog.