Configuration

A fully documented config.lua for the MD Non Lethal Gas script.

Config = {}

Config.NonLethalGas = {
    Enabled = true,

    -- If you want effects to persist ~10s after being in the zone:
    DurationMs = 10000,
    CheckMs = 200,

    Detection = {
        UseZonesFromServer = true,

        Radius = 6.5,
        ArmingDelayMs = 1100,   -- delay after explosion before gas affects
        ZoneLifetimeMs = 15000, -- how long the zone exists

        ExplosionTypes = { 20, 21 }, -- explosion types
        ZoneOverrides = {
            [20] = { Radius = 6.5, ZoneLifetimeMs = 12000 }, -- BZ
            [21] = { Radius = 6.5, ZoneLifetimeMs = 18000 }, -- Tear
        },

        DebugPrintExplosionType = false, -- Used for development, keep disabled.
    },

    Stacking = {
        Enabled = true,
        MaxStacks = 3,

        -- Duration scaling:
        -- effectiveDuration = DurationMs * (1 + DurationMultiplierPerStack*(stacks-1))
        DurationMultiplierPerStack = 0.35,

        -- Stronger effects scaling
        RagdollChancePerStack = 0,
        CamShakePerStack = 0.15,
        DrunkIntensityPerStack = 0.25,
        BlackoutAlphaPerStack = 25,
    },

    Drunk = {
        Enabled = true,
        Clipset = "move_m@drunk@verydrunk",
        CamShake = true,
        CamShakeIntensity = 0.5,
    },

    Screen = {
        ScreenEffect = "DrugsTrevorClownsFight",
        BlackoutPulse = {
            Enabled = true,
            MinAlpha = 0,
            MaxAlpha = 170,
            Speed = 1.35,
        }
    },

    Ragdoll = {
        Enabled = true,
        Chance = 0.10,      -- 0.0 - 1.0
        CheckMs = 1200,
        DurationMs = 1200,
        CooldownMs = 3500,
        OnlyOnFoot = true,
    }
}

-- =========================
-- Weapon Damage Tuning
-- =========================
Config.DamageTuning = {
    Enabled = true,        -- toggle on/off
    RefreshMs = 10000,     -- re-apply every 10s
}

-- Gas Damage Modifiers
Config.WeaponDamage = {
    { Weapon = "WEAPON_BZGAS",         Modifier = 0.00 }, -- Removes damage completely from Gas Grenade | Alternatively if you wish to apply minor damage change to something small like 0.10
    { Weapon = "WEAPON_SMOKEGRENADE",  Modifier = 0.00 }, -- Removes damage completely from Gas Grenade | Alternatively if you wish to apply minor damage change to something small like 0.10
}

Last updated