Template:BasicCSseriesWeapon: Difference between revisions
Jump to navigation
Jump to search
(-cleanup) |
(-minititle) |
||
Line 3: | Line 3: | ||
-->== KeyValues == | -->== KeyValues == | ||
{{ | {{minititle|{{#ifeq: {{{css|1}}} |0| {{#ifeq:{{{csgo|1}}}|0||CS:GO}} | CS:S {{#ifeq:{{{csgo|1}}}|0||/ CS:GO}} }}{{#ifeq:{{{cs2|1}}}|0|| / CS2}} Weapon}} | ||
| | |||
{{#ifeq:{{{css|1}}} |0|| {{KV|only={{css}}|ammo|integer|Amount of reserve ammo to be added. Fallback value is 0. {{Not in FGD}}}} }} | {{#ifeq:{{{css|1}}} |0|| {{KV|only={{css}}|ammo|integer|Amount of reserve ammo to be added. Fallback value is 0. {{Not in FGD}}}} }} | ||
{{#ifeq:{{{csgo|1}}}|0|| {{KV|since={{csgo}}|Is this weapon allowed to be picked up?|intn=CanBePickedUp|boolean|Determines if players are able to pick up the weapon.}} }} | {{#ifeq:{{{csgo|1}}}|0|| {{KV|since={{csgo}}|Is this weapon allowed to be picked up?|intn=CanBePickedUp|boolean|Determines if players are able to pick up the weapon.}} }} | ||
== Flags == | == Flags == | ||
Line 17: | Line 11: | ||
== Inputs == | == Inputs == | ||
{{ | {{minititle|{{#ifeq: {{{css|1}}} |0| {{#ifeq:{{{csgo|1}}}|0||CS:GO}} | CS:S {{#ifeq:{{{csgo|1}}}|0||/ CS:GO}} }}{{#ifeq:{{{cs2|1}}}|0|| / CS2}} Weapon}}<!-- | ||
| | |||
-->{{#ifexpr:{{{csgo|1}}}. or {{{cs2|1}}}.|<p> | -->{{#ifexpr:{{{csgo|1}}}. or {{{cs2|1}}}.|<p> | ||
Line 42: | Line 31: | ||
--> | --> | ||
== Outputs == | == Outputs == | ||
{{ | {{minititle|{{#ifeq: {{{css|1}}} |0| {{#ifeq:{{{csgo|1}}}|0||CS:GO}} | CS:S {{#ifeq:{{{csgo|1}}}|0||/ CS:GO}} }}{{#ifeq:{{{cs2|1}}}|0|| / CS2}} Weapon}} | ||
| | |||
{{IO|OnPlayerUse|Fires when a player [[+use]]s this weapon {{PlAct}}. Does not fire if the weapon is picked up successfully.}} | {{IO|OnPlayerUse|Fires when a player [[+use]]s this weapon {{PlAct}}. Does not fire if the weapon is picked up successfully.}} | ||
{{IO|OnPlayerPickup|Fires when a player picks this weapon up {{PlAct}}.}} | {{IO|OnPlayerPickup|Fires when a player picks this weapon up {{PlAct}}.}} | ||
{{IO|OnCacheInteraction|nofgd=1|removed={{cs2}}|When dropped, fires every tick on player touch {{PlAct}}. {{#ifeq:{{{csgo|1}}}|0|| <br>{{csgo}} Also fires on successful [[+use]] pickup. Does not fire if <code>CanBePickedUp</code> is false.}}}} | {{IO|OnCacheInteraction|nofgd=1|removed={{cs2}}|When dropped, fires every tick on player touch {{PlAct}}. {{#ifeq:{{{csgo|1}}}|0|| <br>{{csgo}} Also fires on successful [[+use]] pickup. Does not fire if <code>CanBePickedUp</code> is false.}}}} | ||
{{IO|OnNPCPickup|nofgd=1|removed={{cs2}}|Fires when an [[NPC]] picks up this weapon {{activator|NPC}}. [[Bot]]s are considered [[player]]s, so this output has no functionality.{{#ifeq: {{{css|1}}}|0||<br>{{css}} [[hostage_entity|Hostages]] might be NPCs, but they don't pick weapons up.}}}} | {{IO|OnNPCPickup|nofgd=1|removed={{cs2}}|Fires when an [[NPC]] picks up this weapon {{activator|NPC}}. [[Bot]]s are considered [[player]]s, so this output has no functionality.{{#ifeq: {{{css|1}}}|0||<br>{{css}} [[hostage_entity|Hostages]] might be NPCs, but they don't pick weapons up.}}}} | ||
{{#if: {{NAMESPACE}}||<!-- no categories if there is any namespace, such as Template: etc. --> | {{#if: {{NAMESPACE}}||<!-- no categories if there is any namespace, such as Template: etc. --> |
Revision as of 14:40, 1 July 2024
The above documentation is transcluded from Template:BasicCSseriesWeapon/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.