> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: "CBasePlayerWeaponVData"
navbar: dynamic
asidebar: hide
---
# CBasePlayerWeaponVData

Schema class in module `server`.

## Summary

- Kind: `class`
- Module: `server`
- Size: `1312 (0x0520)`
- Size bytes: `1312`
- Parent: `CEntitySubclassVDataBase`
- Inherited fields: `0`
- Product: Counter-Strike 2

## Inheritance

- [CEntitySubclassVDataBase](/cs2/dumped_data/schema/server/CEntitySubclassVDataBase) (class)
- [value.DeclaredClass](/cs2/api_reference/engine/value#valuedeclaredclass) (class)

## Own Fields

| Field | Type | Offset | Bits | Default | Metadata |
| --- | --- | --- | --- | --- | --- |
| `m_szWorldModel` | [value.View](/cs2/api_reference/engine/value#valueview) | 40 (0x28) | - | - | `MPropertyStartGroup`: "Visuals"<br />`MPropertyDescription`: "Model used on the ground or held by an entity"<br />`MPropertyProvidesEditContextString`: "ToolEditContext\_ID\_VMDL" |
| `m_szWorldModelAg2Override` | [value.View](/cs2/api_reference/engine/value#valueview) | 264 (0x0108) | - | - | `MPropertyDescription`: "Model used on the ground or held by an entity"<br />`MPropertyProvidesEditContextString`: "ToolEditContext\_ID\_VMDL" |
| `m_sToolsOnlyOwnerModelName` | [value.View](/cs2/api_reference/engine/value#valueview) | 488 (0x01E8) | - | - | `MPropertyDescription`: "Model used by the tools only to populate comboboxes for things like animgraph parameter pickers" |
| `m_bBuiltRightHanded` | [boolean](/cs2/api_reference/lua/base#boolean) | 712 (0x02C8) | - | - | `MPropertyDescription`: "Was the weapon was built right-handed?" |
| `m_bAllowFlipping` | [boolean](/cs2/api_reference/lua/base#boolean) | 713 (0x02C9) | - | - | `MPropertyDescription`: "Allows flipping the model, regardless of whether it is built left or right handed" |
| `m_sMuzzleAttachment` | [value.View](/cs2/api_reference/engine/value#valueview) | 720 (0x02D0) | - | - | `MPropertyDescription`: "Attachment to fire bullets from" |
| `m_szMuzzleFlashParticle` | [value.View](/cs2/api_reference/engine/value#valueview) | 752 (0x02F0) | - | - | `MPropertyDescription`: "Effect when firing this weapon" |
| `m_szMuzzleFlashParticleConfig` | [string](/cs2/api_reference/lua/base#string) | 976 (0x03D0) | - | - | `MPropertyDescription`: "Effect Config for Muzzle Flash - if set, will use this config specified in the particle effect, using whatever CP configuration is specified there, vdata muzzleflash attachment will be ignored"<br />`MPropertyAttributeEditor`: "ParticleConfigName()"<br />`MPropertyEditContextOverrideKey`: "ToolEditContext\_ID\_VPCF" |
| `m_szBarrelSmokeParticle` | [value.View](/cs2/api_reference/engine/value#valueview) | 984 (0x03D8) | - | - | `MPropertyDescription`: "Barrel smoke after firing this weapon" |
| `m_nMuzzleSmokeShotThreshold` | [number](/cs2/api_reference/lua/base#number) | 1208 (0x04B8) | - | - | `MPropertyDescription`: "Barrel smoke shot threshold to create smoke" |
| `m_flMuzzleSmokeTimeout` | [number](/cs2/api_reference/lua/base#number) | 1212 (0x04BC) | - | - | `MPropertyDescription`: "Barrel smoke shot timeout" |
| `m_flMuzzleSmokeDecrementRate` | [number](/cs2/api_reference/lua/base#number) | 1216 (0x04C0) | - | - | `MPropertyDescription`: "Barrel smoke decrement rate when not firing" |
| `m_bGenerateMuzzleLight` | [boolean](/cs2/api_reference/lua/base#boolean) | 1220 (0x04C4) | - | - | - |
| `m_bShouldAnimateInWorld` | [boolean](/cs2/api_reference/lua/base#boolean) | 1221 (0x04C5) | - | - | `MPropertyDescription`: "Was the weapon was built right-handed?" |
| `m_bLinkedCooldowns` | [boolean](/cs2/api_reference/lua/base#boolean) | 1222 (0x04C6) | - | - | `MPropertyStartGroup`: "Behavior"<br />`MPropertyDescription`: "Should both primary and secondary attacks be cooled down together (so cooling down primary attack would cooldown both primary + secondary attacks)?" |
| `m_iFlags` | [ItemFlagTypes\_t](/cs2/dumped_data/schema/server/ItemFlagTypes_t) | 1223 (0x04C7) | - | - | - |
| `m_iWeight` | [number](/cs2/api_reference/lua/base#number) | 1224 (0x04C8) | - | - | `MPropertyDescription`: "This value used to determine this weapon's importance in autoselection" |
| `m_bAutoSwitchTo` | [boolean](/cs2/api_reference/lua/base#boolean) | 1228 (0x04CC) | - | - | `MPropertyFriendlyName`: "Safe To Auto-Switch To"<br />`MPropertyDescription`: "Whether this weapon is safe to automatically switch to (should be false for eg. explosives that can the player may accidentally hurt themselves with)" |
| `m_bAutoSwitchFrom` | [boolean](/cs2/api_reference/lua/base#boolean) | 1229 (0x04CD) | - | - | `MPropertyFriendlyName`: "Safe To Auto-Switch Away From" |
| `m_nPrimaryAmmoType` | [number](/cs2/api_reference/lua/base#number) | 1230 (0x04CE) | - | - | `MPropertyStartGroup`: "Ammo"<br />`MPropertyAttributeEditor`: "VDataChoice( scripts/ammo.vdata )"<br />`MPropertyCustomFGDType`: "string" |
| `m_nSecondaryAmmoType` | [number](/cs2/api_reference/lua/base#number) | 1231 (0x04CF) | - | - | `MPropertyAttributeEditor`: "VDataChoice( scripts/ammo.vdata )"<br />`MPropertyCustomFGDType`: "string" |
| `m_iMaxClip1` | [number](/cs2/api_reference/lua/base#number) | 1232 (0x04D0) | - | - | `MPropertyFriendlyName`: "Primary Clip Size"<br />`MPropertyDescription`: "How many bullets this gun can fire before it reloads (0 if no clip)"<br />`MPropertyAttributeRange`: "0 255" |
| `m_iMaxClip2` | [number](/cs2/api_reference/lua/base#number) | 1236 (0x04D4) | - | - | `MPropertyFriendlyName`: "Secondary Clip Size"<br />`MPropertyDescription`: "How many secondary bullets this gun can fire before it reloads (0 if no clip)"<br />`MPropertyAttributeRange`: "0 255" |
| `m_iDefaultClip1` | [number](/cs2/api_reference/lua/base#number) | 1240 (0x04D8) | - | - | `MPropertyDescription`: "Primary Initial Clip (-1 means use clip size)"<br />`MPropertyAttributeRange`: "-1 255" |
| `m_iDefaultClip2` | [number](/cs2/api_reference/lua/base#number) | 1244 (0x04DC) | - | - | `MPropertyDescription`: "Secondary Initial Clip (-1 means use clip size)"<br />`MPropertyAttributeRange`: "-1 255" |
| `m_bReserveAmmoAsClips` | [boolean](/cs2/api_reference/lua/base#boolean) | 1248 (0x04E0) | - | - | `MPropertyDescription`: "Indicates whether to treat reserve ammo as clips (reloads) instead of raw bullets" |
| `m_bTreatAsSingleClip` | [boolean](/cs2/api_reference/lua/base#boolean) | 1249 (0x04E1) | - | - | `MPropertyDescription`: "Regardless of ammo position, we'll always use clip1 as where our bullets come from" |
| `m_bKeepLoadedAmmo` | [boolean](/cs2/api_reference/lua/base#boolean) | 1250 (0x04E2) | - | - | `MPropertyDescription`: "Indicates whether to keep any loaded ammo in the weapon on reload" |
| `m_iRumbleEffect` | [RumbleEffect\_t](/cs2/dumped_data/schema/server/RumbleEffect_t) | 1252 (0x04E4) | - | - | `MPropertyStartGroup`: "UI" |
| `m_flDropSpeed` | [number](/cs2/api_reference/lua/base#number) | 1256 (0x04E8) | - | - | - |
| `m_iSlot` | [number](/cs2/api_reference/lua/base#number) | 1260 (0x04EC) | - | - | `MPropertyFriendlyName`: "HUD Bucket"<br />`MPropertyDescription`: "Which 'column' to display this weapon in the HUD" |
| `m_iPosition` | [number](/cs2/api_reference/lua/base#number) | 1264 (0x04F0) | - | - | `MPropertyFriendlyName`: "HUD Bucket Position"<br />`MPropertyDescription`: "Which 'row' to display this weapon in the HUD" |
| `m_aShootSounds` | [value.View](/cs2/api_reference/engine/value#valueview) | 1272 (0x04F8) | - | - | `MPropertyStartGroup`: "Sounds" |

## Inherited Fields From CEntitySubclassVDataBase

No fields.

## Referenced By

| Name | Field | Module | Relation |
| --- | --- | --- | --- |
| [CCSWeaponBaseVData](/cs2/dumped_data/schema/server/CCSWeaponBaseVData) | - | server | class |

## Also In

| Product | Module | Name | Kind | Status |
| --- | --- | --- | --- | --- |
| - | client | [CBasePlayerWeaponVData](/cs2/dumped_data/schema/client/CBasePlayerWeaponVData) | class | - |

