Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
QC
(Redirected from .qc)
- 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 */
.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Quake](/w/images/thumb/3/3b/Quake1-16px.png/15px-Quake1-16px.png)
![Wikipedia icon](/w/images/thumb/9/9a/Wikipedia_icon_small.png/16px-Wikipedia_icon_small.png)
![Tip.png](/w/images/thumb/4/45/Tip.png/9px-Tip.png)
$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. Contents
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