weapon_usp

From Valve Developer Community
Jump to navigation Jump to search
C++ Class hierarchy
CWeaponUSP
CWeaponCSBaseGun
CWeaponCSBase
CBaseCombatWeapon
CBaseAnimating
CBaseEntity
C++ weapon_usp.cpp
The K&M .45 Tactical.
Not to be confused with weapon_usp_silencer.

Counter-Strike: Source weapon_usp is a model entity available in Counter-Strike: Source Counter-Strike: Source.

The Heckler & Koch USP is a semi-automatic pistol that uses ammo_45acp ammunition, and is the default sidearm for the Counter-Terrorist team.


KeyValues

CS:S Weapon:

Ammo (ammo) <integer> (only in Counter-Strike: Source)
Amount of reserve ammo to be added. Fallback value is 0. !FGD


Flags

Start Constrained : [1]
Prevents the model from moving.
Deny Player Pickup : [2] !FGD
Prevents player from being able to pick up the weapon.


Outputs

CS:S Weapon:

OnPlayerUse
!activator = player
!caller = this entity
Fires when a player +uses this weapon. Does not fire if the weapon is picked up successfully.
OnPlayerPickup
!activator = player
!caller = this entity
Fires when a player picks this weapon up.
OnCacheInteraction  !FGD
!activator = player
!caller = this entity
When dropped, fires every tick on player touch.
OnNPCPickup  !FGD
!activator = NPC
!caller = this entity
Fires when an NPC picks up this weapon. Bots are considered players, so this output has no functionality.
Counter-Strike: Source Hostages might be NPCs, but they don't pick weapons up.

See Also