$include: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
The [[$include]] [[QC command]] is used to include the contents of an external .qc file as though they were part of the parent file. | The [[$include]] [[QC command]] is used to include the contents of an external .qc, .qci, or .mdl file as though they were part of the parent file. | ||
==QC syntax example 1== | ==QC syntax example 1== | ||
Line 5: | Line 5: | ||
* Otherwise, copy <code>$hl2/models/ragdoll.qc</code> to your model’s folder. | * Otherwise, copy <code>$hl2/models/ragdoll.qc</code> to your model’s folder. | ||
* Then, at the end of your model’s .QC file, add : | * Then, at the end of your model’s .QC file, add : | ||
$include "ragdoll.qc". | [[$include]] "ragdoll.qc". | ||
==QC syntax example 2== | |||
* This overwrites the normal police animations with a pointer to the shared animations | |||
[[$modelname]] Police_animations.mdl | |||
[[$includemodel]] "player\male_anims.mdl" | |||
[[Category:QC Commands]] | [[Category:QC Commands]] |
Revision as of 16:33, 7 April 2008
The $include QC command is used to include the contents of an external .qc, .qci, or .mdl file as though they were part of the parent file.
QC syntax example 1
- If another model uses a very similar skeleton to the one you're compiling, simply copy its
ragdoll.qc
to your model’s folder. - Otherwise, copy
$hl2/models/ragdoll.qc
to your model’s folder. - Then, at the end of your model’s .QC file, add :
$include "ragdoll.qc".
QC syntax example 2
- This overwrites the normal police animations with a pointer to the shared animations
$modelname Police_animations.mdl $includemodel "player\male_anims.mdl"