# Configuration

```
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
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mdevelopment.xyz/m-development-docs/documentation/md-non-lethal-gas/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
