Ru/Instance: Difference between revisions
< Ru
Jump to navigation
Jump to search
m (Nesciuse moved page Instance:ru to Ru/Instance over redirect: -Language prefixes) |
m (Using L template for links) |
||
Line 2: | Line 2: | ||
{{translate}} | {{translate}} | ||
{{stub}} | {{stub}} | ||
An '''instance''' is a | An '''instance''' is a {{L|VMF|map (.vmf) file}} referenced inside another map through a {{ent|func_instance}}, possibly aided by a {{ent|func_instance_parms}} and/or {{ent|func_instance_io_proxy}}. | ||
{{note|While working inside | {{note|While working inside {{L|Hammer}} for all Source games, instances are currently only supported by the map compilers for {{l4d2|2}}, {{as|2}}, {{portal2|2}}, {{tf2|2}}, {{csgo|2}}, and {{Src13|2}}, and therefore will not work for any other games. To use them in unsupported games, see below.}} | ||
{{note|In branches before {{l4d2|2}}, instances have some broken or missing functionality: instance I/O system is unsupported, instances cannot be nested, displacements within an instance may not compile properly and any {{ent|env_cubemap}}s inside of an instance will not be compiled into the final map.}} | {{note|In branches before {{l4d2|2}}, instances have some broken or missing functionality: instance I/O system is unsupported, instances cannot be nested, displacements within an instance may not compile properly and any {{ent|env_cubemap}}s inside of an instance will not be compiled into the final map.}} | ||
Line 10: | Line 10: | ||
Экземпляры полезны во многих отношениях: | Экземпляры полезны во многих отношениях: | ||
* Они предоставляют более динамичную альтернативу | * Они предоставляют более динамичную альтернативу {{L|prefabs}}, так как любые изменения в экземпляре карты будут отражены во всех его экземплярах. | ||
* Они предоставляют альтернативу | * Они предоставляют альтернативу {{L|visgroups}}, так как их можно использовать для разделения большой, громоздкой карты на несколько более мелких, управляемых (которые могут даже обрабатываться несколькими авторами одновременно). | ||
* Они предоставляют простой способ редактировать части карты, которые должны быть под неортогональным углом. (Постройте карту на сетке внутри отдельной карты, а затем скопируйте ее на другую карту с помощью {{ent|func_instance}}, повернутого на правильный угол. | * Они предоставляют простой способ редактировать части карты, которые должны быть под неортогональным углом. (Постройте карту на сетке внутри отдельной карты, а затем скопируйте ее на другую карту с помощью {{ent|func_instance}}, повернутого на правильный угол. | ||
* They provide a way for maps to work on multiple platforms, such as | * They provide a way for maps to work on multiple platforms, such as {{L|Left 4 Dead}} and {{L|Left 4 Dead 2}} versions of the same map. | ||
==How to== | ==How to== | ||
Line 40: | Line 40: | ||
== Also see == | == Also see == | ||
* | * {{L|L4D2 Level Design/VMF Instances}} - A Valve tutorial on how to use instances in Left 4 Dead 2. | ||
* | * {{L|Working with instances}} - A tutorial on how to use instances in Portal 2. | ||
== External links == | == External links == |
Revision as of 07:30, 11 July 2024

This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
An instance is a map (.vmf) file referenced inside another map through a func_instance, possibly aided by a func_instance_parms and/or func_instance_io_proxy.









Экземпляры полезны во многих отношениях:
- Они предоставляют более динамичную альтернативу prefabs , так как любые изменения в экземпляре карты будут отражены во всех его экземплярах.
- Они предоставляют альтернативу visgroups , так как их можно использовать для разделения большой, громоздкой карты на несколько более мелких, управляемых (которые могут даже обрабатываться несколькими авторами одновременно).
- Они предоставляют простой способ редактировать части карты, которые должны быть под неортогональным углом. (Постройте карту на сетке внутри отдельной карты, а затем скопируйте ее на другую карту с помощью func_instance, повернутого на правильный угол.
- They provide a way for maps to work on multiple platforms, such as Left 4 Dead and Left 4 Dead 2 versions of the same map.
How to
In Portal 2 to give input to an entity within a instance use this:
Or, alternatively, you can do this:
Manifests
[Нужно сделать]
Workaround for any Source game
To use instances in unsupported Engine versions, Metapyziks wrote a program that merges used instances with the main VMF.
Also see
- L4D2 Level Design/VMF Instances - A Valve tutorial on how to use instances in Left 4 Dead 2.
- Working with instances - A tutorial on how to use instances in Portal 2.