docs: document -aliasdef

This commit is contained in:
Eric Wasylishen 2023-04-15 17:45:35 -06:00
parent 1634470f88
commit 8bd66592a1
1 changed files with 49 additions and 0 deletions

View File

@ -197,6 +197,55 @@ Options
Set number of threads to use. By default, qbsp will attempt to
use all available hardware threads.
.. option:: -aliasdef <aliases.def> [...]
Adds alias definition files, which can transform entities in the .map into other entities.
For example, given this alias definition file:
.. code-block:: none
:caption: aliases.def
misc_torch1 // source classname
{
"classname" "misc_model" // classname to transform into
"model" "torch1.mdl"
}
misc_torch2
{
"classname" "misc_model"
"model" "torch2.mdl"
}
and an input map file:
.. code-block:: none
{
"classname" "misc_torch1"
"model" "override.mdl"
}
{
"classname" "misc_torch2"
}
the following will be output in the .bsp's entity lump:
.. code-block:: none
{
"classname" "misc_model"
"model" "override.mdl" // key/value from map takes precedence
}
{
"classname" "misc_model"
"model" "torch2.mdl" // key/value from alias file
}
Game Path Specification
-----------------------