From Valve Developer Community
Revision as of 00:09, 10 January 2020 by MrFunreal (talk | contribs) (edited teh page to add more information to the main text and expanded on teh example.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The QC commands $pushd and $popd 'push' and 'pop' directories to and from the QC's active folder, instead of writing out the foldernames in the smd file. Multiple $pushd can be nested inside each other, so long as there are a corresponding number of $popd.


$pushd <path>


$modelname   "props\fan.mdl"
$cdmaterials "models\props\"

$model "buttons" "model files\buttons.smd" //Without using pushd
$pushd ".\model files\"
  $model fan_housing "housing.smd"
  $model fan_rotor   "rotor.smd"

$pushd	".\animation files\"
  $sequence idle_off	"idle_off.smd"
  $sequence turn_on	"turn_on.smd"
  $sequence idle_on	"idle_on.smd"
  $sequence turn_off	"turn_off.smd"