Эта статья документации для платформы "GoldSrc". Нажмите для получения дополнительной информации.
Эта статья документации для всего, что использует платформу Source. Нажмите для получения дополнительной информации.

Ru/QC: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
m (-Using L template for links)
m (Multipage removal)
Line 1: Line 1:
{{langsp}}
{{LanguageBar}}
{{gldsrc topicon}}{{source topicon}}
 
:''Для полного списка '''QC команд''', смотрите {{LCategory|QC Commands|Категория:QC Команды}}.''
:''Для полного списка '''QC команд''', смотрите {{LCategory|QC Commands|Категория:QC Команды}}.''
:''Чтобы узнать как '''компилировать модели''', смотрите {{L|Compiling a model|Компиляция модели}}.''
:''Чтобы узнать как '''компилировать модели''', смотрите {{L|Compiling a model|Компиляция модели}}.''
Line 37: Line 39:
* [[Notepad++ VDF languages]] {{en}}
* [[Notepad++ VDF languages]] {{en}}
* [[Highlighting and Compiling QCs with ConTEXT]] {{en}}
* [[Highlighting and Compiling QCs with ConTEXT]] {{en}}
{{ACategory|Modeling}}
{{ACategory|Plain text formats}}
{{stub}}

Revision as of 10:14, 12 July 2024

English (en)日本語 (ja)Русский (ru)Translate (Translate)

Для полного списка QC команд, смотрите Категория:QC Команды(en).
Чтобы узнать как компилировать модели, смотрите Компиляция модели(en).

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

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

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

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

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

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

$surfaceprop(en)	combine_metal
$cdmaterials(en)	"models\props_sdk"

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

$collisionmodel(en)	"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.


Неполная

This article or section is a stub. You can help by expanding it.