QC: Difference between revisions
Jump to navigation
Jump to search
Tip:Shared QC files intended for use with $include are typically given the extension
m (remove fake news) |
Kestrelguy (talk | contribs) m (updated language bar.) |
||
Line 1: | Line 1: | ||
{{ | {{lang|QC}} | ||
}} | |||
:''For a list of '''QC commands''', see [[:Category:QC Commands]].'' | :''For a list of '''QC commands''', see [[:Category:QC Commands]].'' | ||
Line 11: | Line 9: | ||
Comments can be lines starting with <code>//</code>, <code>#</code> or <code>;</code>, or blocks contained between <code>/*</code> and <code>*/</code>. | Comments can be lines starting with <code>//</code>, <code>#</code> or <code>;</code>, or blocks contained between <code>/*</code> and <code>*/</code>. | ||
{{tip|Shared QC files intended for use with | {{tip|Shared QC files intended for use with {{ent|$include}} are typically given the extension <code>qci</code>.}} | ||
== Example == | == Example == | ||
Here is a very simple QC file for a solid model without any animation or special properties (click on each command for details): | Here is a very simple QC file for a solid model without any animation or special properties (click on each command for details): | ||
Line 27: | Line 24: | ||
[[$collisionmodel]] "myfirstmodel-phys.smd" { $concave } | [[$collisionmodel]] "myfirstmodel-phys.smd" { $concave } | ||
== See | == See Also == | ||
* [[:Category:QC Commands]] | * [[:Category:QC Commands]] | ||
* [[Compiling a model]] | * [[Compiling a model]] | ||
Line 35: | Line 31: | ||
* [[Notepad++ VDF languages]] | * [[Notepad++ VDF languages]] | ||
* [[Highlighting and Compiling QCs with ConTEXT]] | * [[Highlighting and Compiling QCs with ConTEXT]] | ||
[[Category:Modeling]][[Category:Glossary]] | |||
[[Category:Modeling]] | |||
[[Category:Glossary]] |
Revision as of 06:48, 10 May 2022
- For a list of QC commands, see Category:QC Commands.
- To learn how to compile a model, see Compiling a model.
A QC file is a script which controls the process of compiling SMDs into a binary model that can be loaded into a game. A QC configures the model's location and name, which SMD files are used to provide geometry, collision meshes and animations, how the model reacts when shot, and so on.
Comments can be lines starting with //
, #
or ;
, or blocks contained between /*
and */
.

qci
.Example
Here is a very simple QC file for a solid model without any animation or special properties (click on each command for details):
$modelname "props_sdk\myfirstmodel.mdl" $body mybody "myfirstmodel-ref.smd" $staticprop $surfaceprop combine_metal $cdmaterials "models\props_sdk" $sequence idle "myfirstmodel-ref.smd" // no animation wanted, so re-using the reference mesh $collisionmodel "myfirstmodel-phys.smd" { $concave }