forked from ValveSoftware/source-sdk-2013
-
Notifications
You must be signed in to change notification settings - Fork 169
Base Weapon
Blixibon edited this page Sep 26, 2019
·
2 revisions
-
SetAmmo1
<integer>- Sets the weapon's currently loaded primary ammo. -
SetAmmo2
<integer>- Sets the weapon's currently loaded secondary ammo. -
GiveDefaultAmmo
<void>- Resets the weapon's loaded ammo to "default", which is usually the max.
-
EnablePlayerPickup
<void>- Enables player pickup if it was disabled before. -
DisablePlayerPickup
<void>- Disables player pickup if it was enabled before. -
EnableNPCPickup
<void>- Enables NPC pickup if it was disabled before. -
DisableNPCPickup
<void>- Disables NPC pickup if it was enabled before.
-
BreakConstraint
<void>- If the weapon was set to start constrained, this input breaks its constraint.
-
ForcePrimaryFire
<void>- Forces the weapon to trigger its primary attack one time. This is supported on most guns, although implementation is weapon-specific and may function differently from weapon to weapon. -
ForceSecondaryFire
<void>- Forces the weapon to trigger its secondary attack one time. This is supported on most guns, although implementation is weapon-specific and may function differently from weapon to weapon.
-
OnDropped
<void>- Fires when dropped by a NPC or player, passing the dropper as the activator.
-
Ammo 1
<integer>- Sets the weapon's currently loaded primary ammo. Requires the "Preserve ammo" spawnflag to function. -
Ammo 2
<integer>- Sets the weapon's currently loaded secondary ammo. Requires the "Preserve ammo" spawnflag to function.
Mapbase adds a bunch of weapon-related I/O/KV to NPCs and players.
-
Something Index
- Something special
- Something else