Ru/QC: Difference between revisions
< Ru
Jump to navigation
Jump to search
m (-Using L template for links) |
|||
| Line 1: | Line 1: | ||
{{langsp}} | {{langsp}} | ||
:''Для полного списка '''QC команд''', смотрите | :''Для полного списка '''QC команд''', смотрите {{LCategory|QC Commands|Категория:QC Команды}}.'' | ||
:''Чтобы узнать как '''компилировать модели''', смотрите | :''Чтобы узнать как '''компилировать модели''', смотрите {{L|Compiling a model|Компиляция модели}}.'' | ||
'''QC''' файл это скрипт, контролирующий процесс "компиляции" | '''QC''' файл это скрипт, контролирующий процесс "компиляции" {{L|Studiomdl Data|SMD}} файлов в бинарный формат MDL, который можно загрузить в игре. | ||
QC файл определяет местоположение и название модели, какие SMD файлы будут использоваться для видимой геометрии модели, | QC файл определяет местоположение и название модели, какие SMD файлы будут использоваться для видимой геометрии модели, {{L|collision mesh|модели столкновений}} и {{L|skeletal animation|анимации}}, как модель реагирует на выстрелы, и так далее. | ||
Комментарии могут быть строками, начинающимися с <code>//</code>, <code>#</code> или <code>;</code>, или блоками, содержащуюся между <code>/*</code> и <code>*/</code>. | Комментарии могут быть строками, начинающимися с <code>//</code>, <code>#</code> или <code>;</code>, или блоками, содержащуюся между <code>/*</code> и <code>*/</code>. | ||
{{note|Хоть и расширение "QC" пошло от языка программирования | {{note|Хоть и расширение "QC" пошло от языка программирования {{L|QuakeC}}, использованного в {{quake|4.1}}, синтаксис StudioMDL QC файлов сильно отличается от [https://ru.wikipedia.org/wiki/%D0%A1%D0%B8_(%D1%8F%D0%B7%D1%8B%D0%BA_%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8F) Си]-подобного синтаксиса, используемого в QuakeC.}} | ||
{{tip|Общие QC файлы должны использоваться командой {{ent|$include}}, и обычно называются с расширением <code>qci</code>.}} | {{tip|Общие QC файлы должны использоваться командой {{ent|$include}}, и обычно называются с расширением <code>qci</code>.}} | ||
| Line 14: | Line 14: | ||
Вот простой пример QC файла для твёрдо тельной модели без анимаций или особых свойств: | Вот простой пример QC файла для твёрдо тельной модели без анимаций или особых свойств: | ||
{{L|$modelname}} "props_sdk\myfirstmodel.mdl" | |||
{{L|$body}} mybody "myfirstmodel-ref.smd" | |||
{{L|$surfaceprop}} combine_metal | |||
{{L|$cdmaterials}} "models\props_sdk" | |||
{{L|$sequence}} idle "myfirstmodel-ref.smd" // анимация не желается, используем модель-референс | |||
{{L|$collisionmodel}} "myfirstmodel-phys.smd" { $concave } | |||
== Файловый формат == | == Файловый формат == | ||
| Line 32: | Line 32: | ||
== Смотрите также == | == Смотрите также == | ||
* [[Category:QC Commands:ru|Категория:QC Команды]] | * [[Category:QC Commands:ru|Категория:QC Команды]] | ||
* | * {{L|Compiling a model|Компиляция модели}} | ||
* [[LOD Models]] {{en}} | * [[LOD Models]] {{en}} | ||
* | * {{L|Prop Types Overview|Обзор типов реквизита}} <!-- Я ща обоссусь от смеха --> | ||
* [[Notepad++ VDF languages]] {{en}} | * [[Notepad++ VDF languages]] {{en}} | ||
* [[Highlighting and Compiling QCs with ConTEXT]] {{en}} | * [[Highlighting and Compiling QCs with ConTEXT]] {{en}} | ||
Revision as of 08:29, 11 July 2024
- Для полного списка QC команд, смотрите Категория:QC Команды.
- Чтобы узнать как компилировать модели, смотрите Компиляция модели.
QC файл это скрипт, контролирующий процесс "компиляции" SMD файлов в бинарный формат MDL, который можно загрузить в игре. QC файл определяет местоположение и название модели, какие SMD файлы будут использоваться для видимой геометрии модели, модели столкновений и анимации, как модель реагирует на выстрелы, и так далее.
Комментарии могут быть строками, начинающимися с //, # или ;, или блоками, содержащуюся между /* и */.
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 }
Файловый формат
[Нужно сделать]
Файлы
[Нужно сделать]
Смотрите также
This article has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
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 yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.
This article has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
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 yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.
This article has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
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 yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.