Skip to content

AmmoDamage ​

Description ​

AmmoDamage adjusts damage dealt by selected firearm projectiles against players, animals and infected. Rules can target one weapon or apply to that projectile across firearms.

Configuration ​

Default configuration ​

AmmoDamage.json
json
{
    "m_Enable": 0,
    "m_Ammunition": [
        {
            "m_Class": "Bullet_308Win",
            "m_Weapon": "",
            "m_Multiplier": 5.0,
            "m_Player": 0,
            "m_Animal": 1,
            "m_Zombie": 1
        },
        {
            "m_Class": "Bullet_22",
            "m_Weapon": "Ruger1022",
            "m_Multiplier": 10.0,
            "m_Player": 1,
            "m_Animal": 0,
            "m_Zombie": 0
        },
        {
            "m_Class": "Bullet_22",
            "m_Weapon": "Ruger1022",
            "m_Multiplier": 100.0,
            "m_Player": 0,
            "m_Animal": 1,
            "m_Zombie": 1
        },
        {
            "m_Class": "Bullet_22",
            "m_Weapon": "",
            "m_Multiplier": 0.33000001311302187,
            "m_Player": 0,
            "m_Animal": 1,
            "m_Zombie": 1
        }
    ]
}

Options ​

OptionTypeDescription
m_EnableboolWith 1, applies the configured rules. With 0, uses normal damage.
m_Ammunitionarray<object>Damage rules grouped by projectile, weapon and target.

m_Ammunition[] ​

A rule for a projectile and weapon takes priority over a rule for that projectile alone.

OptionTypeDescription
m_ClassstringExact projectile class, such as Bullet_308Win.
m_WeaponstringExact weapon class. Leave empty to apply the rule regardless of weapon.
m_MultiplierfloatValues above 1 increase damage, lower values reduce it and rules set to 1 are skipped.
m_PlayerboolApplies to players with 1 and excludes them with 0.
m_AnimalboolApplies to animals with 1 and excludes them with 0.
m_ZombieboolApplies to infected with 1 and excludes them with 0.

Released under the MIT License.