Entity systemClasses
CCSWeaponBaseVData
Schema class CCSWeaponBaseVData, derived from CBasePlayerWeaponVData.
Generated from the game's schema. Header: source2mod/schema/entity/classes/CCSWeaponBaseVData.h
Inherits CBasePlayerWeaponVData
Fields
| Field | Type |
|---|---|
m_WeaponType | CSWeaponType |
m_WeaponCategory | CSWeaponCategory |
m_vecMuzzlePos0 | Vector |
m_vecMuzzlePos1 | Vector |
m_GearSlot | gear_slot_t |
m_GearSlotPosition | int32_t |
m_DefaultLoadoutSlot | loadout_slot_t |
m_nPrice | int32_t |
m_nKillAward | int32_t |
m_nPrimaryReserveAmmoMax | int32_t |
m_nSecondaryReserveAmmoMax | int32_t |
m_bMeleeWeapon | bool |
m_bHasBurstMode | bool |
m_bIsRevolver | bool |
m_bCannotShootUnderwater | bool |
m_szName | CGlobalSymbol |
m_eSilencerType | CSWeaponSilencerType |
m_bShowCrosshair | bool |
m_bIsFullAuto | bool |
m_nNumBullets | int32_t |
m_bReloadsSingleShells | bool |
m_flCycleTime | CFiringModeFloat |
m_flCycleTimeWhenInBurstMode | float |
m_flTimeBetweenBurstShots | float |
m_flMaxSpeed | CFiringModeFloat |
m_flSpread | CFiringModeFloat |
m_flInaccuracyCrouch | CFiringModeFloat |
m_flInaccuracyStand | CFiringModeFloat |
m_flInaccuracyJump | CFiringModeFloat |
m_flInaccuracyLand | CFiringModeFloat |
m_flInaccuracyLadder | CFiringModeFloat |
m_flInaccuracyFire | CFiringModeFloat |
m_flInaccuracyMove | CFiringModeFloat |
m_flRecoilAngle | CFiringModeFloat |
m_flRecoilAngleVariance | CFiringModeFloat |
m_flRecoilMagnitude | CFiringModeFloat |
m_flRecoilMagnitudeVariance | CFiringModeFloat |
m_nTracerFrequency | CFiringModeInt |
m_flInaccuracyJumpInitial | float |
m_flInaccuracyJumpApex | float |
m_flInaccuracyReload | float |
m_flDeployDuration | float |
m_flDisallowAttackAfterReloadStartDuration | float |
m_nBurstShotCount | int32_t |
m_bAllowBurstHolster | bool |
m_nRecoilSeed | int32_t |
m_nSpreadSeed | int32_t |
m_flAttackMovespeedFactor | float |
m_flInaccuracyPitchShift | float |
m_flInaccuracyAltSoundThreshold | float |
m_szUseRadioSubtitle | CUtlString |
m_bUnzoomsAfterShot | bool |
m_bHideViewModelWhenZoomed | bool |
m_nZoomLevels | int32_t |
m_nZoomFOV1 | int32_t |
m_nZoomFOV2 | int32_t |
m_flZoomTime0 | float |
m_flZoomTime1 | float |
m_flZoomTime2 | float |
m_flIronSightPullUpSpeed | float |
m_flIronSightPutDownSpeed | float |
m_flIronSightFOV | float |
m_flIronSightPivotForward | float |
m_flIronSightLooseness | float |
m_nDamage | int32_t |
m_flHeadshotMultiplier | float |
m_flArmorRatio | float |
m_flPenetration | float |
m_flRange | float |
m_flRangeModifier | float |
m_flFlinchVelocityModifierLarge | float |
m_flFlinchVelocityModifierSmall | float |
m_flRecoveryTimeCrouch | float |
m_flRecoveryTimeStand | float |
m_flRecoveryTimeCrouchFinal | float |
m_flRecoveryTimeStandFinal | float |
m_nRecoveryTransitionStartBullet | int32_t |
m_nRecoveryTransitionEndBullet | int32_t |
m_flThrowVelocity | float |
m_vSmokeColor | Vector |
m_szAnimClass | CGlobalSymbol |
Schema fields are accessors: read with entity->m_field(), write with entity->m_field = value (the write marks the field for networking).
Methods
FromKey
static CCSWeaponBaseVData* FromKey(const char* pszKey, int nWeaponType = -1);Looks weapon VData up by its key, e.g. "weapon_ak47". A weapon type other than -1 also requires the data to be of that type. Null when not found.
| Parameter | Type | Default |
|---|---|---|
pszKey | const char* | |
nWeaponType | int | -1 |