Generic Keyvalues, Inputs and Outputs/Keyvalues: Difference between revisions
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: | ||
{{lang|Template:KV BaseEntity}} | |||
<includeonly> | <onlyinclude><includeonly><!-- | ||
<!-- | |||
++ BRUSH ++ | ++ 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|}}}| | |||
{{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> | }} | ||
< | </includeonly></onlyinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories to the /doc subpage, not here --> | <!-- Add categories to the /doc subpage, not here --> | ||