Generic Keyvalues, Inputs and Outputs/Keyvalues: Difference between revisions
Jump to navigation
Jump to search
(Made scrolling optional with parameter 'noscroll'.) |
(Put "Brush" section in the ScrollBox and removed its extra-minititle (I thought less headlines might look cleaner). Trying automatic brush entity recognition (pagename starts with "func").) |
||
Line 1: | Line 1: | ||
{{lang|Template:KV BaseEntity}} | {{lang|Template:KV BaseEntity}} | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
-->{{ScrollBox | |||
|title=Base | |||
|noscroll={{{noscroll|}}} | |||
|<!-- | |||
++ BRUSH ++ | ++ BRUSH ++ | ||
-->{{#if:{{{brush|}}}| | -->{{#if:{{{brush| {{#ifeq: {{str left|{{ROOTPAGENAME}}|4}} | func | 1 | }} }}}| | ||
{{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 23: | ||
{{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}} | ||
--> | --> | ||
| }}<!-- | <br /> | ||
| }}<!-- END #IF | |||
++ | ++ BASE ++ | ||
--> | -->{{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. | ||
{{KV|Global Entity Name|intn=globalname|string| When the player transitions to a new map, entities in the new map with matching globalnames will have their previous map's states copied over to it.}} | {{KV|Global Entity Name|intn=globalname|string| When the player transitions to a new map, entities in the new map with matching globalnames will have their previous map's states copied over to it.}} |