Asw pickup fire extinguisher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (WisdomBot moved page Asw pickup fire extinguisher to Asw pickup fire extinguisher/en: Moved to {{Multipage}} compliant page name. This action was perfomed by a bot.)
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{langsp}}
{{langsp}}
{{CD|CASW_Pickup_Weapon_FireExtinguisher|file1=1}}
It is used to spawn a fire extinguisher.
It is used to spawn a fire extinguisher.


== Keyvalues ==
== Keyvalues ==
{{KV|Bullets in gun|int|Specifies the number of bullets in this pickup. On this pickup, defaults to 250 bullets.}}
{{KV ASWPickup|200|1|0}}
{{KV|Clips|int|Specifies the number of clips in this pickup. On this pickup, defaults to 1 clip.}}
{{KV|Secondary Bullets|int|Specifies the number secondary bullets, e.g. grenades for assault rifle. On this pickup, defaults to 0.}}
{{KV ASWPickup}}


== Flags ==
== Flags ==
{{Fl Item Swarm}}
{{Fl Item Swarm}}
== Inputs ==
{{I Item Swarm}}


== Outputs ==
== Outputs ==
{{O Item Swarm}}
{{O Item Swarm}}

Revision as of 12:17, 2 July 2024

English (en)Translate (Translate)
C++ Class hierarchy
CASW_Pickup_Weapon_FireExtinguisher
CASW_Pickup_Weapon
CASW_Pickup
CItem
CBaseAnimating
CBaseEntity
C++ asw_pickup_weapon.cpp

It is used to spawn a fire extinguisher.

Keyvalues

Bullets in gun (BulletsInGun) <integer>
Specifies the number of bullets in this pickup. On this pickup, defaults to 200 bullets.
Clips (Clips) <integer>
Specifies the number of clips in this pickup. On this pickup, defaults to 1 clip.
Secondary Bullets (SecondaryBullets) <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.

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