mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-11 20:20:06 +03:00
Updated Base Weapon (markdown)
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
|
### Inputs
|
||||||
---
|
---
|
||||||
@ -25,7 +28,12 @@
|
|||||||
---
|
---
|
||||||
* **Ammo 1** `<integer>` - Sets the weapon's currently loaded primary ammo. Requires the "Preserve ammo" spawnflag to function.
|
* **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.
|
* **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
|
## NPC/player interaction with weapons
|
||||||
Mapbase adds a bunch of weapon-related I/O/KV to NPCs and players.
|
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.
|
Loading…
x
Reference in New Issue
Block a user