Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
gamemode: Add new and update existing cvars with help text
Browse files Browse the repository at this point in the history
The command 'cvarlist ph_' should now actually be much more descriptive than before.
  • Loading branch information
Xaymar committed Nov 25, 2017
1 parent e8f5fc4 commit cc820a8
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 57 deletions.
4 changes: 2 additions & 2 deletions source/gamemodes/prophuntextended/gamemode/sh_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function GM.Config.Round:Time()
end

-- For how many seconds are the Seekers blinded? (Seconds)
GM.Config.Round.ConVars.BlindTime = CreateConVarIfNotExists("ph_round_blindtime", "-30", FCVAR_REPLICATED, "Round Manager: Blind Time for Seekers (in Seconds, positive takes away from ph_round_timelimit, negative adds extra time to ph_round_timelimit")
GM.Config.Round.ConVars.BlindTime = CreateConVarIfNotExists("ph_round_blindtime", "-30", FCVAR_REPLICATED, "Round Manager: Blind Time for Seekers (in Seconds, positive takes away from ph_round_timelimit, negative adds extra time to ph_round_timelimit)")
function GM.Config.Round:BlindTime()
return self.ConVars.BlindTime:GetFloat()
end
Expand All @@ -97,7 +97,7 @@ GM.Config.Teams = {}
GM.Config.Teams.ConVars = {}

-- Should teams be ranomized each round?
GM.Config.Teams.ConVars.Randomize = CreateConVarIfNotExists("ph_teams_randomize", "0", FCVAR_REPLICATED, "Teams: Randomize Each Round")
GM.Config.Teams.ConVars.Randomize = CreateConVarIfNotExists("ph_teams_randomize", "0", FCVAR_REPLICATED, "Teams: Randomize Teams instead of swapping each round")
function GM.Config.Teams:Randomize()
return self.ConVars.Randomize:GetBool()
end
Expand Down
Loading

0 comments on commit cc820a8

Please sign in to comment.