Updated Base Weapon (markdown)

Blixibon 2019-11-02 17:25:33 -05:00
parent 4faef80a35
commit 556537edd2

@ -1,3 +1,6 @@
This page lists changes to `CBaseCombatWeapon`, which every weapon derives from. This means every weapon in the game technically possesses these changes, although some changes might only be relevant to a specific group of them.
Some I/O were already possible through other, more complicated means (e.g. keyvalues changed with AddOutput).
### Inputs
---
@ -25,7 +28,12 @@
---
* **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.
### Spawnflags
---
* **Deny NPC pickup** `8` - Prevents NPCs from automatically picking up a weapon.
* **Preserve ammo values when picked up** `16` - Prevents the weapon from resetting its ammo values before being spawned, picked up, dropped, etc.
---
# NPC/player interaction with weapons
Mapbase adds a bunch of weapon-related I/O/KV to NPCs and players.
## NPC/player interaction with weapons
Mapbase adds a bunch of weapon-related I/O/KV to NPCs and players, covered on the [[Base NPC]] and [[Base Player]] for NPC or player-specific changes and [[Base Combat Character]] for changes used by both types.