QC: Difference between revisions
Jump to navigation
Jump to search
Note:Although the "QC" file extension is derived from the QuakeC programming language used by
Quake, the syntax of StudioMDL QC files is significantly modified from the
C-like syntax used by QuakeC.
Tip:Shared QC files intended for use with $include are typically given the extension qci, and outdated or deprecated QC files are typically given the extension qcx. This prevents them from attempting to be compiled when batch-compiling an entire folder.
SirYodaJedi (talk | contribs) m (qcx) |
m (Multipage removal) |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{gldsrc topicon}}{{source topicon}} | |||
:''For a list of '''QC commands''', see [[:Category:QC Commands]].'' | :''For a list of '''QC commands''', see [[:Category:QC Commands]].'' | ||
:''To learn how to '''compile a model''', see [[Compiling a model]].'' | :''To learn how to '''compile a model''', see [[Compiling a model]].'' | ||
Line 37: | Line 39: | ||
* [[Notepad++ VDF languages]] | * [[Notepad++ VDF languages]] | ||
* [[Highlighting and Compiling QCs with ConTEXT]] | * [[Highlighting and Compiling QCs with ConTEXT]] | ||
[[Category:Modeling]] | |||
[[Category:Plain text formats]] | |||
{{stub}} |
Revision as of 10:14, 12 July 2024
- 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, while 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 */
.




Simple 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" $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 }
File format
[Todo]
Files
[Todo]
See also
- Category:QC Commands
- Compiling a model
- LOD Models
- Prop Types Overview
- Notepad++ VDF languages
- Highlighting and Compiling QCs with ConTEXT