QC

From Valve Developer Community
< Ru
Revision as of 04:05, 7 November 2023 by Heroin (talk | contribs) (Перевод страницы)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)日本語 (ja)Русский (ru)Translate (Translate)
Для полного списка QC команд, смотрите Категория:QC Команды.
Чтобы узнать как компилировать модели, смотрите Компиляция модели.

QC файл это скрипт, контролирующий процесс "компиляции" SMD файлов в бинарный формат MDL, который можно загрузить в игре. QC файл определяет местоположение и название модели, какие SMD файлы будут использоваться для видимой геометрии модели, модели столкновений и анимации, как модель реагирует на выстрелы, и так далее.

Комментарии могут быть строками, начинающимися с //, # или ;, или блоками, содержащуюся между /* и */.

Note.pngПримечание:Хоть и расширение "QC" пошло от языка программирования QuakeC, использованного в Quake Quake, синтаксис StudioMDL QC файлов сильно отличается от Си-подобного синтаксиса, используемого в QuakeC.
Tip.pngСовет:Общие QC файлы должны использоваться командой $include, и обычно называются с расширением qci.

Простой пример

Вот простой пример QC файла для твёрдо тельной модели без анимаций или особых свойств:

$modelname		"props_sdk\myfirstmodel.mdl"
$body mybody	"myfirstmodel-ref.smd"

$surfaceprop	combine_metal
$cdmaterials	"models\props_sdk"

$sequence		idle "myfirstmodel-ref.smd" // анимация не желается, используем модель-референс

$collisionmodel	"myfirstmodel-phys.smd" { $concave }

Файловый формат

[Нужно сделать]

Файлы

[Нужно сделать]

Смотрите также

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.