Generic Keyvalues, Inputs and Outputs/Keyvalues: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m ("thinking" --> "thinker")
(Used bottom-line=1 from Template:ScrollBox. Removed some newlines - or were they intended? Used <onlyinclude>.)
Line 1: Line 1:
<noinclude>{{lang|Template:KV BaseEntity}}</noinclude>
{{lang|Template:KV BaseEntity}}
<includeonly>
<onlyinclude><includeonly><!--
<!--
 
   ++ BRUSH ++
   ++ BRUSH ++
-->
 
<!-- IF: BRUSH -->
-->{{#if:{{{brush|}}}|
{{#if:{{{brush|}}}|{{minititle|Brush}}
{{minititle|Brush}}
{{KV|Collisions|intn=solid|choices|Method of collision for this entity. {{ExpandBox|
{{KV|Collisions|intn=solid|choices|Method of collision for this entity. {{ExpandBox|
:*0: None
:*0: None
Line 19: Line 19:
{{KV|Model Index|intn=modelindex|short|Given the number index from dumping the<code>cl_precacheinfo modelprecache</code>table, sets entity model to of the index. {{warning|If an entity has animations that ''will be'' played, then the set model also must have its own sequences, else the game crashes.}}|nofgd=1}}
{{KV|Model Index|intn=modelindex|short|Given the number index from dumping the<code>cl_precacheinfo modelprecache</code>table, sets entity model to of the index. {{warning|If an entity has animations that ''will be'' played, then the set model also must have its own sequences, else the game crashes.}}|nofgd=1}}
-->
-->
| }}
| }}<!--
<!--
 
   ++ Base ++
   ++ Base ++
-->
 
{{ScrollBox|title=Base|
-->{{ScrollBox|title=Base|bottom-border=1|
{{KV|[[targetname|Name]]|intn=targetname|string|The name that other entities use to refer to this entity.}}
{{KV|[[targetname|Name]]|intn=targetname|string|The name that other entities use to refer to this entity.}}
<!-- This probably have too little use cases, we'll have to see if someone objects.
<!-- This probably have too little use cases, we'll have to see if someone objects.
Line 44: Line 44:
<!--
<!--
   ++ Game Specifics ++
   ++ Game Specifics ++
-->
 
<!-- IF: L4D2 -->{{#if:{{{l4d2|}}}|
  IF: L4D2
 
-->{{#if:{{{l4d2|}}}|
{{KV|Entity Scripts|intn=vscripts|scriptlist|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.|since=L4D2}}
{{KV|Entity Scripts|intn=vscripts|scriptlist|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.|since=L4D2}}
{{KV|[[Entity_Scripts#Thinker_Functions|Thinker function]]|intn=thinkfunction|string|Name of the function within this entity's script that'll be called automatically every 100 milliseconds, or a user-defined interval if the function returns a number. Avoid [[expensive]] operations in this function, as it may cause performance problems.|since=L4D2}}
{{KV|[[Entity_Scripts#Thinker_Functions|Thinker function]]|intn=thinkfunction|string|Name of the function within this entity's script that'll be called automatically every 100 milliseconds, or a user-defined interval if the function returns a number. Avoid [[expensive]] operations in this function, as it may cause performance problems.|since=L4D2}}
Line 52: Line 54:
{{KV|Disable for Xbox 360|intn=disableX360|bool|If this entity should automatically be given the 'Disable' input on the Xbox 360 version of Source.|nofgd=1|since=L4D2}}
{{KV|Disable for Xbox 360|intn=disableX360|bool|If this entity should automatically be given the 'Disable' input on the Xbox 360 version of Source.|nofgd=1|since=L4D2}}
-->
-->
| <!-- ELSE IF: NOT BASE [CSGO] -->{{#if:{{{base|}}}||
| <!--
 
  ELSE IF: NOT BASE [CSGO]
 
-->{{#if:{{{base|}}}||
{{KV|Entity Scripts|intn=vscripts|scriptlist|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.|since=L4D2}}
{{KV|Entity Scripts|intn=vscripts|scriptlist|Space delimited list of [[VScript]] files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.|since=L4D2}}
{{KV|[[Entity_Scripts#Thinker_Functions|Thinker function]]|intn=thinkfunction|string|Name of the function within this entity's script that'll be called automatically every 100 milliseconds, or a user-defined interval if the function returns a number. Avoid [[expensive]] operations in this function, as it may cause performance problems.|since=L4D2}}
{{KV|[[Entity_Scripts#Thinker_Functions|Thinker function]]|intn=thinkfunction|string|Name of the function within this entity's script that'll be called automatically every 100 milliseconds, or a user-defined interval if the function returns a number. Avoid [[expensive]] operations in this function, as it may cause performance problems.|since=L4D2}}
Line 61: Line 67:
{{KV|Is Automatic-Aim Target|intn=is_autoaim_target|bool|If set to 1, this entity will slow down aiming movement for consoles and joystick controllers when the entity is under the crosshairs.|nofgd=1|since=CSGO}}
{{KV|Is Automatic-Aim Target|intn=is_autoaim_target|bool|If set to 1, this entity will slow down aiming movement for consoles and joystick controllers when the entity is under the crosshairs.|nofgd=1|since=CSGO}}
| }} }}
| }} }}
}}</includeonly>
}}
<noinclude>
</includeonly></onlyinclude>
 
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->
</noinclude>

Revision as of 17:11, 9 December 2021

English (en)中文 (zh)Translate (Translate)


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Icon-translate.png Available doc translations
Info.png
The Generic Keyvalues, Inputs and Outputs/Keyvalues/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Generic Keyvalues, Inputs and Outputs/Keyvalues/doc