Asw pickup rifle: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (added language bar.)
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Line 1: Line 1:
{{lang|Asw pickup rifle}}
{{lang|Asw pickup rifle}}{{this is a|e0|game=as|name=asw_pickup_rifle}} It is used to spawn an assault rifle.
{{as point|asw_pickup_rifle}} It is used to spawn an assault rifle.


== Keyvalues ==
== Keyvalues ==

Revision as of 08:55, 7 January 2024

English (en)Translate (Translate)

asw_pickup_rifle is an e0 available in Alien Swarm Alien Swarm.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{as}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Alien Swarm.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

It is used to spawn an assault rifle.

Keyvalues

Bullets in gun ([todo internal name (i)]) <integer>
Specifies the number of bullets in this pickup. On this pickup, defaults to 250 bullets.
Clips ([todo internal name (i)]) <integer>
Specifies the number of clips in this pickup. On this pickup, defaults to 1 clip.
Secondary Bullets ([todo internal name (i)]) <integer>
Specifies the number secondary bullets, e.g. grenades for assault rifle. On this pickup, defaults to 0.
Stay in air on startup (FreezePickup) <boolean>
If set, this pickup won't fall to the ground when the map starts.


Flags

Item:
;Start Constrained : [1]
Keeps the model from moving.

Inputs

Outputs

Item:

OnPlayerTouch
Fires when the player touches this object.
OnCacheInteraction
Confirm:Fires when the player proves they have 'found' this item:
  • Player touch (whether or not player actually acquires the item)
  • Picked up by +USE