Chalwk / HALO-SCRIPT-PROJECTS

:white_check_mark: Halo PC|CE - Add-ons for Phasor V2+ and SAPP :new_zealand:
Other
32 stars 13 forks source link

Proximity Chat (ATTRACTIVE MOD) #118

Closed Chalwk closed 3 years ago

Chalwk commented 3 years ago

Proximity Chat

Description: Players can only chat with people within a certain range (see config)

Download Link

Config:

-- Custom command used to change the chat range:
local command = "chatrange"

-- Minimum permission level required to execute /command (see above).
local permission_level = 1

-- 1 world unit = 10 feet or ~3.048 meters:
local default_range = 8

-- Allow dead players to talk?
-- Note: Players who are dead have infinite range.
local talk_while_dead = true

-- Talk to dead players?
-- Note: Players who are dead have infinite range.
local talk_to_dead_players = true

-- Chat Output Format:
local on_chat = {

    -- Global:
    [0] = "%name%: %message%",

    -- Team:
    [1] = "[%name%]: %message%",

    -- Vehicle:
    [2] = "[%name%]: %message%",
}

-- A message relay function temporarily removes the server prefix
-- and will restore it to this when the relay is finished
local server_prefix = "**SAPP**"
github-actions[bot] commented 3 years ago

Stale issue message