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

FieldType
m_WeaponTypeCSWeaponType
m_WeaponCategoryCSWeaponCategory
m_vecMuzzlePos0Vector
m_vecMuzzlePos1Vector
m_GearSlotgear_slot_t
m_GearSlotPositionint32_t
m_DefaultLoadoutSlotloadout_slot_t
m_nPriceint32_t
m_nKillAwardint32_t
m_nPrimaryReserveAmmoMaxint32_t
m_nSecondaryReserveAmmoMaxint32_t
m_bMeleeWeaponbool
m_bHasBurstModebool
m_bIsRevolverbool
m_bCannotShootUnderwaterbool
m_szNameCGlobalSymbol
m_eSilencerTypeCSWeaponSilencerType
m_bShowCrosshairbool
m_bIsFullAutobool
m_nNumBulletsint32_t
m_bReloadsSingleShellsbool
m_flCycleTimeCFiringModeFloat
m_flCycleTimeWhenInBurstModefloat
m_flTimeBetweenBurstShotsfloat
m_flMaxSpeedCFiringModeFloat
m_flSpreadCFiringModeFloat
m_flInaccuracyCrouchCFiringModeFloat
m_flInaccuracyStandCFiringModeFloat
m_flInaccuracyJumpCFiringModeFloat
m_flInaccuracyLandCFiringModeFloat
m_flInaccuracyLadderCFiringModeFloat
m_flInaccuracyFireCFiringModeFloat
m_flInaccuracyMoveCFiringModeFloat
m_flRecoilAngleCFiringModeFloat
m_flRecoilAngleVarianceCFiringModeFloat
m_flRecoilMagnitudeCFiringModeFloat
m_flRecoilMagnitudeVarianceCFiringModeFloat
m_nTracerFrequencyCFiringModeInt
m_flInaccuracyJumpInitialfloat
m_flInaccuracyJumpApexfloat
m_flInaccuracyReloadfloat
m_flDeployDurationfloat
m_flDisallowAttackAfterReloadStartDurationfloat
m_nBurstShotCountint32_t
m_bAllowBurstHolsterbool
m_nRecoilSeedint32_t
m_nSpreadSeedint32_t
m_flAttackMovespeedFactorfloat
m_flInaccuracyPitchShiftfloat
m_flInaccuracyAltSoundThresholdfloat
m_szUseRadioSubtitleCUtlString
m_bUnzoomsAfterShotbool
m_bHideViewModelWhenZoomedbool
m_nZoomLevelsint32_t
m_nZoomFOV1int32_t
m_nZoomFOV2int32_t
m_flZoomTime0float
m_flZoomTime1float
m_flZoomTime2float
m_flIronSightPullUpSpeedfloat
m_flIronSightPutDownSpeedfloat
m_flIronSightFOVfloat
m_flIronSightPivotForwardfloat
m_flIronSightLoosenessfloat
m_nDamageint32_t
m_flHeadshotMultiplierfloat
m_flArmorRatiofloat
m_flPenetrationfloat
m_flRangefloat
m_flRangeModifierfloat
m_flFlinchVelocityModifierLargefloat
m_flFlinchVelocityModifierSmallfloat
m_flRecoveryTimeCrouchfloat
m_flRecoveryTimeStandfloat
m_flRecoveryTimeCrouchFinalfloat
m_flRecoveryTimeStandFinalfloat
m_nRecoveryTransitionStartBulletint32_t
m_nRecoveryTransitionEndBulletint32_t
m_flThrowVelocityfloat
m_vSmokeColorVector
m_szAnimClassCGlobalSymbol

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.

ParameterTypeDefault
pszKeyconst char*
nWeaponTypeint-1

On this page