GM.Config.ConVars.GameType=CreateConVarIfNotExists("ph_gametype",GM.Types.Original,FCVAR_REPLICATED,"Prop Hunt: Which Game Type should be played? ("..GM.Types.Original.." = Original Prop Hunt, "..GM.Types.TheDeadHunt.." = The Dead Hunt Mode)")
functionGM.Config:GameType()
returnself.ConVars.GameType:GetInt()
end
-- Timelimit in minutes
GM.Config.ConVars.TimeLimit=CreateConVarIfNotExists("mp_timelimit","20",FCVAR_REPLICATED,"Map Time Limit (in Minutes)")
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.Teams.ConVars.Randomize=CreateConVarIfNotExists("ph_teams_randomize","0",FCVAR_REPLICATED,"Teams: Randomize Teams instead of swapping each round")
-- Weighted randomization works by using a score calculated over the entire session.
-- * Round Start: Adjust Score towards the other Team by 1 (Positive = Seeker, Negative = Hider)
-- * Round Win: Adjust score by how many players are still alive on the winning team towards the other team.
-- * Alive players get double the score.
GM.Config.Teams.ConVars.Weighted=CreateConVarIfNotExists("ph_teams_weighted","1",FCVAR_REPLICATED,"Teams: Use Weighted Randomization")
functionGM.Config.Teams:Weighted()
returnself.ConVars.Weighted:GetBool()
end
-- The Dead Hunt: Percent of players to assign to seeker.
GM.Config.Teams.ConVars.SeekerPercentage=CreateConVarIfNotExists("ph_teams_seekerpct","25",FCVAR_REPLICATED,"Teams: Initial percentage of Seekers in Dead Hunt Game Type")
GM.Config.Seeker.ConVars.HealthMax=CreateConVarIfNotExists("ph_seeker_health_max","100",FCVAR_REPLICATED,"Seekers: Maximum Health")
functionGM.Config.Seeker:HealthMax()
returnself.ConVars.HealthMax:GetInt()
end
GM.Config.Seeker.ConVars.HealthBonus=CreateConVarIfNotExists("ph_seeker_health_bonus","20",FCVAR_REPLICATED,"Seekers: Health Bonus per Kill")
functionGM.Config.Seeker:HealthBonus()
returnself.ConVars.HealthBonus:GetInt()
end
GM.Config.Seeker.ConVars.HealthPenalty=CreateConVarIfNotExists("ph_seeker_health_penalty","5",FCVAR_REPLICATED,"Seekers: Health Penalty per wrong Shot")
GM.Config.Seeker.ConVars.Ammo=CreateConVarIfNotExists("ph_seeker_ammo","Pistol:100,SMG1:300,SMG1_Grenade:1,Buckshot:64",FCVAR_REPLICATED,"Seekers: Initial Ammo (Ammo:Amount,Ammo:Amount,...)")
GM.Config.Hider.ConVars.HealthMax=CreateConVarIfNotExists("ph_hider_health_max","100",FCVAR_REPLICATED,"Hiders: Maximum Health")
functionGM.Config.Hider:HealthMax()
returnself.ConVars.HealthMax:GetInt()
end
GM.Config.Hider.ConVars.HealthScaling=CreateConVarIfNotExists("ph_hider_health_scaling","1",FCVAR_REPLICATED,"Hiders: Enable Health Scaling")
functionGM.Config.Hider:HealthScaling()
returnself.ConVars.HealthScaling:GetBool()
end
GM.Config.Hider.ConVars.HealthScalingMax=CreateConVarIfNotExists("ph_hider_health_scaling_max","200",FCVAR_REPLICATED,"Hiders: Maximum scaled Health")
functionGM.Config.Hider:HealthScalingMax()
returnself.ConVars.HealthScalingMax:GetInt()
end
GM.Config.Hider.ConVars.AllowFullRotation=CreateConVarIfNotExists("ph_hider_allow_full_rotation","0",FCVAR_REPLICATED,"Hiders: Enable full 3D Rotation")
functionGM.Config.Hider:AllowFullRotation()
returnself.ConVars.AllowFullRotation:GetBool()
end
GM.Config.Hider.ConVars.WalkSpeed=CreateConVarIfNotExists("ph_hider_walk_speed","250",0,"Hiders: Walk Speed")
GM.Config.Lists.ConVars.ModelBlacklist=CreateConVarIfNotExists("ph_list_model_blacklist","models/props/cs_assault/dollar.mdl,models/props/cs_assault/money.mdl,models/props/cs_office/snowman_arm.mdl,models/props/cs_office/projector_remote.mdl",FCVAR_REPLICATED,"Anti-Cheat: Model Abuse Blacklist")
GM.Config.Camera.ConVars.AllowNoClip=CreateConVarIfNotExists("ph_camera_allow_noclip","0",FCVAR_REPLICATED,"Camera: Allow clients to disable camera collision.")
functionGM.Config.Camera:AllowNoClip()
returnself.ConVars.AllowNoClip:GetBool()
end
-- Camera Distance Maximum
GM.Config.Camera.ConVars.DistanceMax=CreateConVarIfNotExists("ph_camera_distance_max","150",FCVAR_REPLICATED,"Camera: Maximum allowed distance to player.")
functionGM.Config.Camera:DistanceMax()
returnself.ConVars.DistanceMax:GetFloat()
end
-- Camera Distance Minimum
GM.Config.Camera.ConVars.DistanceMin=CreateConVarIfNotExists("ph_camera_distance_min","30",FCVAR_REPLICATED,"Camera: Minimum allowed distance to player.")
functionGM.Config.Camera:DistanceMin()
returnself.ConVars.DistanceMin:GetFloat()
end
-- Camera Distance Right Maximum
GM.Config.Camera.ConVars.DistanceRightRange=CreateConVarIfNotExists("ph_camera_distance_right_range","20",FCVAR_REPLICATED,"Camera: Horizontal allowed camera distance range.")
functionGM.Config.Camera:DistanceRightRange()
returnself.ConVars.DistanceRightRange:GetFloat()
end
-- Camera Distance Up Maximum
GM.Config.Camera.ConVars.DistanceUpRange=CreateConVarIfNotExists("ph_camera_distance_up_range","20",FCVAR_REPLICATED,"Camera: Vertical allowed camera distance range.")
functionGM.Config.Camera:DistanceUpRange()
returnself.ConVars.DistanceUpRange:GetFloat()
end
-- Lag Minimum
GM.Config.Camera.ConVars.LagMinimum=CreateConVarIfNotExists("ph_camera_lag_min","0.01",FCVAR_REPLICATED,"Camera: Minimum Camera Lag.")
functionGM.Config.Camera:LagMinimum()
returnself.ConVars.LagMinimum:GetFloat()
end
-- Lag Maximum
GM.Config.Camera.ConVars.LagMaximum=CreateConVarIfNotExists("ph_camera_lag_max","0.95",FCVAR_REPLICATED,"Camera: Maximum Camera Lag.")
functionGM.Config.Camera:LagMaximum()
returnself.ConVars.LagMaximum:GetFloat()
end
ifCLIENTthen
-- Collisions
GM.Config.Camera.ConVars.Collisions=CreateConVarIfNotExists("ph_camera_collisions","1",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Camera: Enable collisions with the world and objects in it.")
functionGM.Config.Camera:Collisions()
ifself:AllowNoClip()then
returnself.ConVars.Collisions:GetBool()
else
returntrue
end
end
-- Distance
GM.Config.Camera.ConVars.Distance=CreateConVarIfNotExists("ph_camera_distance","100",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Camera: Ideal Distance to player.")
GM.Config.Camera.ConVars.DistanceRight=CreateConVarIfNotExists("ph_camera_distance_right","0",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Camera: Ideal Distance to player horizontally.")
GM.Config.Camera.ConVars.DistanceUp=CreateConVarIfNotExists("ph_camera_distance_up","0",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Camera: Ideal Distance to player vertically.")
GM.Config.Camera.ConVars.Lag=CreateConVarIfNotExists("ph_camera_lag","0.95",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Camera: Percentage of camera lag (higher = slower, lower = faster).")
GM.Config.NamePlates.ConVars.Show=CreateConVarIfNotExists("ph_nameplates_show","1",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Nameplates: Show a name plate above each player in your team (or all players if spectating).")
functionGM.Config.NamePlates:Show()
returnself.ConVars.Show:GetBool()
end
-- Scale
GM.Config.NamePlates.ConVars.Scale=CreateConVarIfNotExists("ph_nameplates_scale","0.05",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Nameplates: World scale of name plate, a setting of 1 means 1px = 1unit.")
GM.Config.NamePlates.ConVars.TintHealth=CreateConVarIfNotExists("ph_nameplates_tint_health","0",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Nameplates: Tint the nameplate using their health percent.")
functionGM.Config.NamePlates:TintHealth()
returnself.ConVars.TintHealth:GetBool()
end
-- Tint By Team
GM.Config.NamePlates.ConVars.TintTeam=CreateConVarIfNotExists("ph_nameplates_tint_team","0",FCVAR_ARCHIVE+FCVAR_CLIENTDLL,"Nameplates: Tint the nameplate with the team colors.")
GM.Config.SelectionHalo.ConVars.Allow=CreateConVarIfNotExists("ph_selectionhalo_allow","1",FCVAR_REPLICATED,"Selection Halo: Allow clients to enable halo around the currently looked at prop?")
functionGM.Config.SelectionHalo:Allow()
returnself.ConVars.Allow:GetBool()
end
-- Approximate
GM.Config.SelectionHalo.ConVars.Approximate=CreateConVarIfNotExists("ph_selectionhalo_approximate","1",FCVAR_REPLICATED,"Selection Halo: Enable approximate selection halo, which only checks the forward vector on the client.")
functionGM.Config.SelectionHalo:Approximate()
returnself.ConVars.Approximate:GetBool()
end
ifSERVERthen
-- Update Interval
GM.Config.SelectionHalo.ConVars.Interval=CreateConVarIfNotExists("ph_selectionhalo_interval","0.05",FCVAR_ARCHIVE,"Selection Halo: Interval for updates of the accuracte selection halo in seconds.")
functionGM.Config.SelectionHalo:Interval()
returnself.ConVars.Interval:GetFloat()
end
end
ifCLIENTthen
-- Enabled
GM.Config.SelectionHalo.ConVars.Enabled=CreateConVarIfNotExists("ph_selectionhalo_enabled","1",FCVAR_ARCHIVE,"Selection Halo: Enable halo around prop you might become.")