Asw pickup shotgun: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (fixed 'defaults to' values)
Line 4: Line 4:


; Bullets in gun <code><[[int]]></code>
; Bullets in gun <code><[[int]]></code>
: Specifies the number of bullets in this pickup. On this pickup, defaults to 5 grenades.
: Specifies the number of bullets in this pickup. On this pickup, defaults to 3 bullets.
; Clips <code><[[int]]></code>
; Clips <code><[[int]]></code>
: Specifies the number of clips in this pickup. On this pickup, defaults to 0.
: Specifies the number of clips in this pickup. On this pickup, defaults to 8 clips.
; Secondary Bullets <code><[[int]]></code>
; Secondary Bullets <code><[[int]]></code>
: Specifies the number secondary bullets, e.g. grenades for assault rifle. On this pickup, defaults to 0.
: Specifies the number secondary bullets, e.g. grenades for assault rifle. On this pickup, defaults to 0.

Revision as of 06:14, 13 August 2010

Template:As point It is used to spawn a shotgun.

Keyvalues

Bullets in gun <int>
Specifies the number of bullets in this pickup. On this pickup, defaults to 3 bullets.
Clips <int>
Specifies the number of clips in this pickup. On this pickup, defaults to 8 clips.
Secondary Bullets <int>
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