Template:PreservedEnt: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added two notes (Kill, point_template). Warning -> Note.)
No edit summary
 
(39 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{lang|Template:PreservedEnt}}
[[Category:Templates]]
<onlyinclude><includeonly>{{note|{{#if: {{{1|}}} | {{#ifeq: {{{1}}} | 0 | T | {{{1}}}, t }} | In some/all multiplayer games, t}}his is a [[s_PreserveEnts|preserved entity]].
{{ulf|en=1|de=1|ru=1|zh=1}}
* On a new round, it will '''intentionally not reset itself''' to its default properties (including position). {{workaround|If this is an issue, you can use [[logic_auto]] to emulate resetting it.}}
<nowiki>{{SUBPAGENAME}}</nowiki> is automatically filled as first parameter if it's not specified
* <code>Kill</code>ing it removes it forever, as '''it is not respawned''' on a new round.
{{deprecated|This template has been deprecated by {{t|preserved entity}} on the English pages. {{t|PreservedEnt}} will continue to be used on the German, Russian, and Chinese pages until {{t|preserved entity}} and the relevant portions of [[s_PreserveEnts]] are are translated into those languages.<br>When it is time to fully deprecate this template, it may be desirable to move {{t|PreservedEnt/switch}}, as the new template still uses that.}}
* It cannot be spawned with a [[point_template]].
{| class=wikitable
}} [[Category:Round-Preserved Entities]]</includeonly></onlyinclude>
 
{| class=standard-table
! Wikitext !! Result
! Wikitext !! Result
|-
|-
| <pre>{{PreservedEnt}}</pre>
| <nowiki>{{PreservedEnt | player}} </nowiki>
| {{PreservedEnt}}
|     {{PreservedEnt|player}}
|-
| <pre>{{PreservedEnt|In all games except {{hl2dm}}}}</pre>
| {{PreservedEnt|In all games except {{hl2dm}}}}
|-
| <pre>{{PreservedEnt|0}}</pre>
| {{PreservedEnt|0}}
|}
|}
<includeonly>
<onlyinclude>{{#switch: {{language}}
|#default={{important|This is a [[s_PreserveEnts|preserved entity]]{{#ifeq:{{{1}}}|all||&nbsp;in {{PreservedEnt/switch|{{{1|{{lcfirst:{{SUBPAGENAMEE}}}}}}}}}}}.<br>If the game has round restart mechanics this entity may not behave as expected:
{{expand|noborder=1|title=More info|
* On a new round entities with this classname will '''intentionally not reset'''. You can use {{ent|logic_auto}} to emulate resetting it.
* [[Kill|Killing]] it removes it forever, as '''it is not respawned''' on a new round.
* It cannot be spawned with a {{ent|point_template}}.
* Parenting this with non-preserved entities may have [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|undesirable effects]].
}}}}
|de={{Note|{{#if: {{{1|}}} | {{#ifeq: {{{1}}} | 0 | Dies ist | {{{1}}} ist dies}} | In manchen/allen Multiplayer-Spielen ist dies}} ein {{L|s_PreserveEnts|aufbewahrtes Objekt}}.
* Zu jedem Rundenbeginn werden die Eigenschaften dieses Objektes (einschließlich Position) '''absichtlich nicht zurückgesetzt'''. {{Workaround:de|Wenn dies ein Problem ist, lässt sich mit {{ent|logic_auto}} das Zurücksetzen simulieren.}}
* <code>{{L|Kill}}</code>en entfernt das Objekt für immer, da es zu Rundenbeginn '''nicht respawnt'''.
* Es kann nicht mit {{ent|point_template}} instanziiert werden.
}}
|ru={{Note|Это {{L|s_PreserveEnts|сохраняемый объект}} в {{PreservedEnt/switch|{{{1|{{SUBPAGENAME}}}}}}}.
* В новом раунде игры состояние объектов данного класса '''намеренно не обновляется'''. Вы можете использовать {{ent|logic_auto}} для осуществления принудительного сброса.
* <tt>Уничтожение ({{L|Kill}})</tt> такого объекта выполняется окончательно, так как он '''не восстанавливается''' в новом раунде.
* Такой объект нельзя создать через {{ent|point_template}}.
* Наследование таких объектов с другими классами объектов приведёт к [[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|нежелательным последствиям]].
}}
|zh={{Note|在 {{PreservedEnt/switch|{{{1|{{SUBPAGENAME}}}}}}} 中,这是一个{{L|s_PreserveEnts|保留实体(preserved entity)}}。
* 在新一轮中,它'''不会故意将自己重置'''为其默认属性(包括位置)。{{workaround|如果这是一个问题,你可以采用 [[logic_auto]] 实体模拟重置它。}}
* 通过<code>{{L|Kill}}</code>杀死它会永远移除它,因为它'''不会在新一轮重生'''。
* 它不能用 {{ent|point_template}} 生成。
* 把这个实体与非保留实体绑定可能会导致[[Counter-Strike Source Entity Overview#Counter-Strike Round Restarts|不良影响]]。
}}}}<!--
-->{{#if: {{NAMESPACE}}|| <!-- only if the namespace is empty, so especially not in templates
-->{{ACategory|Round-Preserved Entities}}<!--
-->}}<!--
--></onlyinclude>
</includeonly>

Latest revision as of 10:57, 9 May 2025

English (en)Deutsch (de)Русский (ru)中文 (zh)

{{SUBPAGENAME}} is automatically filled as first parameter if it's not specified

Obsolete-notext.pngDeprecated:This template has been deprecated by {{preserved entity}} on the English pages. {{PreservedEnt}} will continue to be used on the German, Russian, and Chinese pages until {{preserved entity}} and the relevant portions of s_PreserveEnts are are translated into those languages.
When it is time to fully deprecate this template, it may be desirable to move {{PreservedEnt/switch}}, as the new template still uses that.
Wikitext Result
{{PreservedEnt | player}}
Icon-Important.pngImportant:This is a preserved entity in Counter-Strike: SourceHalf-Life 2: DeathmatchDay of Defeat: SourceTeam Fortress 2Left 4 DeadLeft 4 Dead 2Alien SwarmAlien Swarm: Reactive DropPortal 2Counter-Strike: Global Offensive.
If the game has round restart mechanics this entity may not behave as expected:
More info
  • On a new round entities with this classname will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non-preserved entities may have undesirable effects.