This article's documentation is for the "GoldSrc" engine. Click here for more information.

$cd

From Valve Developer Community
Revision as of 17:30, 3 April 2025 by SirYodaJedi (talk | contribs)
Jump to navigation Jump to search

$cd is a QC command available in all GoldSrc GoldSrc games.

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{goldsrc}} template. This can most likely be fixed by setting the value of the {{{engine}}} parameter to GoldSrc.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

Used to set the current working directory for the QC script.

Description

$cd "path/to/files/"

Parameters

  • The path should be a full or relative path on the file system. For the path where the QC script is, use "."

Example

shell.qc
qc
//brass shell model for GoldSrc

$cd "." // use same directory as QC file $modelname "shell.mdl" $cdtexture "." // look for textures in same folder as QC file $body "Shell" "shell"

$sequence "idle" "shell"