Skip to content

Commit

Permalink
style and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGoll committed Apr 12, 2024
1 parent 86881f4 commit deca9f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gamemodes/terrortown/gamemode/client/cl_voice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ VOICE.ActivationModes = {
---
-- Generates a fake voice spectrum based on the player voice volume that looks like
-- the restult of an FFT.
-- @param Player ply The player that should generate a fake voice spectrum
-- @param[default=16] number stepCount Defines the result's resolution
-- @return table Returns the table with the fake spectrum
-- @realm client
Expand Down Expand Up @@ -149,6 +150,7 @@ end

---
-- Sets the mode of the voice panel.
-- @param Player ply The player whose voice mode should be set
-- @param number mode The voice mode
-- @realm client
function VOICE.SetVoiceMode(ply, mode)
Expand All @@ -157,6 +159,7 @@ end

---
-- Returns the mode of the voice panel.
-- @param Player ply The player whose vocie mode should be read
-- @return number The mode of the voice panel
-- @realm client
function VOICE.GetVoiceMode(ply)
Expand All @@ -165,13 +168,14 @@ end

---
-- Returns the color of the voice panel.
-- @param Player ply The player whose voice color should be read
-- @return Color The color of the voice panel
-- @realm client
function VOICE.GetVoiceColor(ply)
if VOICE.GetVoiceMode(ply) then
return INNOCENT.color
else
TEAMS[ply:GetTeam()].color
return TEAMS[ply:GetTeam()].color
end
end

Expand Down

0 comments on commit deca9f9

Please sign in to comment.