From 556537edd273e33c83213750cebc002063ae6a67 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sat, 2 Nov 2019 17:25:33 -0500 Subject: [PATCH] Updated Base Weapon (markdown) --- Base-Weapon.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Base-Weapon.md b/Base-Weapon.md index 7d5543a..fbcede6 100644 --- a/Base-Weapon.md +++ b/Base-Weapon.md @@ -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** `` - Sets the weapon's currently loaded primary ammo. Requires the "Preserve ammo" spawnflag to function. * **Ammo 2** `` - 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. \ No newline at end of file +## 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. \ No newline at end of file