REC_EffectManager
Stracture
Welcome to REC_EffectManager documentation.
- Added
- Updated
Scope and concurrency
Server config.scope sends effects to nearby players. Defaults are a 1,000 ms check interval, a 10-unit movement threshold, 200-unit margin and 50-unit hysteresis. Disabling scope sends effects to everyone.
Shared config.effect limits simultaneous particles to 64 and sound IDs to 16; 0 disables a limit. Particle asset loading times out after 5,000 ms, and one-shot sounds are released after at most 30,000 ms. These controls limit outstanding effects and release failed loads.
config/sv_config.lua
---@class REC_EffectManager.Server.Config
local config = {}
---[[
--- Debug Mode
---]]
---@type boolean
config.debugMode = false
---[[
--- Scope
---
--- Effects are only handed to the players that are close enough to reach them.
--- Disable this and every effect is sent to everybody, the way it used to be.
---]]
config.scope = {
---@type boolean
enabled = true,
---@type number added to the zone radius to decide who receives the effect
margin = 200.0,
---@type number extra distance a player has to travel before the effect is taken away again
hysteresis = 50.0,
---@type integer how often the scope is resolved
interval = 1000,
---@type number a player has to move this far before the scope is resolved again
threshold = 10.0,
}
---[[
--- Commands
---]]
config.command = {
---@type string
name = "particlemanager",
---@type string
help = "Open Particle Manager Menu",
---@type string[]
allowedPermissions = {
"support",
"admin",
},
}
return config
