Skip to content

ModifyPlayerDamageEvent

cs_script API / ModifyPlayerDamageEvent

interface in cs_script/point_script.

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

    Members

    player

    player: CSPlayerPawn

    The victim that is taking damage

    damage

    damage: number

    The amount of damage being applied, after hitgroup modifications and before armor modifications

    damageTypes

    damageTypes: CSDamageTypes

    The types of damage.

    damageFlags

    damageFlags: CSDamageFlags

    The flags configuring how to interpret the damage.

    hitGroup

    hitGroup: CSHitGroup

    The hit group where the damage occured.

    inflictor

    inflictor?: Entity

    The entity applying the damage. For bullets this is the owner of the gun. For grenades this is the exploding projectile.

    attacker

    attacker?: Entity

    The entity credited with causing the damage. For bullets this is the shooter. For grenades this is the thrower.

    weapon

    weapon?: CSWeaponBase

    The weapon used. For grenades this will not be present because the weapon is often removed before the projectile explodes.