Template:BasicCSseriesWeapon: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
 Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
 Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
 Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
		
	
|  (Added support to in-/exclude CS:S or CS:GO information.) | m (Used Template:Fl. Tested outputs for css.) | ||
| Line 16: | Line 16: | ||
| == Flags == | == Flags == | ||
| {{fl|1|Start Constrained|Prevents the model from moving.}} | |||
| == Inputs == | == Inputs == | ||
| Line 45: | Line 44: | ||
| |style=border:solid 1px; border-color:#444; padding:1em; width:85% | |style=border:solid 1px; border-color:#444; padding:1em; width:85% | ||
| | | | | ||
| {{IO|OnPlayerUse|Fires when a player [[+use]]s this weapon {{PlAct}}.  | {{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| | {{IO|OnCacheInteraction|nofgd=1|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|Fires when an [[NPC]] picks up this weapon {{activator|NPC}} | {{IO|OnNPCPickup|nofgd=1|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.}}}} | ||
| {{O BaseEntity}} | {{O BaseEntity}} | ||
| {{O BaseAnimating}} | {{O BaseAnimating}} | ||
| Line 69: | Line 68: | ||
| </includeonly></onlyinclude> | </includeonly></onlyinclude> | ||
| {{documentation}} | {{documentation}} | ||
| {{ {{PAGENAME}} | csgo=0 }} | |||
Revision as of 17:34, 4 April 2022
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.
KeyValues
CS:S Weapon:
- ammo ([todo internal name (i)])  <integer> (only in  ) )
- Amount of reserve ammo to be added. Fallback value is 0. !FGD
 Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Keyvalues for continuation of page historyFlags
- Start Constrained : [1]
- Prevents the model from moving.
Inputs
CS:S Weapon:
 Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page historyOutputs
CS:S Weapon:
- OnPlayerUse
- Fires when a player +uses this weapon (!activator is the player.). Does not fire if the weapon is picked up successfully.
- OnPlayerPickup
- Fires when a player picks this weapon up (!activator is the player.).
- OnCacheInteraction !FGD
- When dropped, fires every tick on player touch (!activator is the player.).
- OnNPCPickup !FGD
- Fires when an NPC picks up this weapon (!activator is the NPC). Bots are considered players, so this output has no functionality. Hostages might be NPCs, but they don't pick weapons up. Hostages might be NPCs, but they don't pick weapons up.
 Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
Note:Content moved to Rendering and studio model related KIO/Outputs for continuation of page history
 
























 Available doc translations
 Available doc translations 
 
  
  
  
 