Effects
data/effects.lua
Effects are caused by injuries, and are ultimately responsible for de-buffing the player in various ways.
Example
local effects = {
slow_bleeding = { -- id
label = "Slow Bleeding", -- label
icon = "fa-solid fa-droplet", -- icon
chance = 10, -- (OPTIONAL) chance of this effecting the player per tick (default 100)
damage = 1, -- (OPTIONAL) damage to apply per tick (default 0)
interval = 1000, -- (OPTIONAL) time between ticks in milliseconds (default 0)
duration = 10000, -- (OPTIONAL) duration of this effect (default -1, aka infinite)
healing_reduction = 0.5, -- (OPTIONAL) multiplier to apply to healing while this effect is active (default 1.0)
speed_reduction = 1.0, -- (OPTIONAL) multiplier to apply to movement speed while this effect is active (default 1.0)
deadly = false, -- (OPTIONAL) whether or not this effect will kill the player if left untreated (default false)
disable_1h_weapons = false, -- (OPTIONAL) whether or not this effect will disable the use of 1h weapons (default false)
disable_2h_weapons = false, -- (OPTIONAL) whether or not this effect will disable the use of 2h weapons (default false)
walking_style = false, -- (OPTIONAL) whether or not this effect will change the player's walking style (default false)
walking_style_priority = false, -- (OPTIONAL) priority of the walking style (default 0)
mute = false, -- (OPTIONAL) disable talking while effect active
left_blindness = 0.0, -- (OPTIONAL) how much to reduce the player's left eye's vision (default 0.0)
right_blindness = 0.0, -- (OPTIONAL) how much to reduce the player's right eye's vision (default 0.0)
stumble_when_moving = false, -- (OPTIONAL) do players stumble/ragdoll when moving? (default false)
stumble_when_running = false, -- (OPTIONAL) do players stumble/ragdoll when running? (default false)
stumble_when_sprinting = false, -- (OPTIONAL) do players stumble/ragdoll when sprinting? (default false)
stumble_interval = 1000, -- (OPTIONAL) min time between stumble/ragdoll events (default 1000)
stumble_velocity = 0, -- (OPTIONAL) minimum entity velocity to trigger stumble/ragdoll (default 0)
}
}
Last updated