Skip to content

CSWeaponData

cs_script API / CSWeaponData

Exported class in cs_script/point_script.

    CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2 · engine class CCSWeaponBaseVData

    Members

    GetName

    GetName(): string

    GetType

    GetType(): CSWeaponType

    GetGearSlot

    GetGearSlot(): CSGearSlot

    GetPrice

    GetPrice(): number

    GetDamage

    GetDamage(): number

    GetMaxClipAmmo

    GetMaxClipAmmo(): number

    GetMaxReserveAmmo

    GetMaxReserveAmmo(): number

    GetRange

    GetRange(): number

    Maximum distance bullets will travel.

    GetRangeModifier

    GetRangeModifier(): number

    Exponential damage drop off from traveling through air. nextDamage = currentDamage * rangeModifier ^ (distance / 500).

    GetPenetration

    GetPenetration(): number

    Power to maintain damage during penetration