Generic Keyvalues, Inputs and Outputs/Keyvalues: Difference between revisions
Jump to navigation
Jump to search
m (Used parser functions to avoid duplicate text. Removed ScrollBox/ExpandBox test at the end.) |
m (Needed to convert empty string to 0 for #ifexpr.) |
||
Line 128: | Line 128: | ||
++ Game Specifics ++ | ++ Game Specifics ++ | ||
-->{{#ifexpr: {{{l4d2|0}}} or not {{{base|0}}} |<!-- hides only if L4D2 == 0 and BASE != 0 --> | -->{{#ifexpr: {{{l4d2|0}}}. or not {{{base|0}}}. |<!-- hides only if L4D2 == 0 and BASE != 0 --> | ||
{{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. Scripts executed on the [[worldspawn]] entity will be placed in root scope.|since=L4D2|also={{tf2}}}} | {{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. Scripts executed on the [[worldspawn]] entity will be placed in root scope.|since=L4D2|also={{tf2}}}} | ||
{{KV|[[Entity_Scripts#Thinker_Functions|Think 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|also={{tf2}}}} | {{KV|[[Entity_Scripts#Thinker_Functions|Think 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|also={{tf2}}}} | ||
Line 136: | Line 136: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifexpr: not {{{l4d2|0}}} and not {{{base|0}}} |<!-- hides if L4D2 != 0 or BASE != 0 --> | -->{{#ifexpr: not {{{l4d2|0}}}. and not {{{base|0}}}. |<!-- hides if L4D2 != 0 or BASE != 0 --> | ||
{{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}}<!-- | ||
-->}}<!-- | -->}}<!-- |