mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
60
gamemodes/helix/gamemode/cl_init.lua
Normal file
60
gamemodes/helix/gamemode/cl_init.lua
Normal file
@@ -0,0 +1,60 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
|
||||
-- unix systems are case-sensitive, are missing fonts, or use different naming conventions
|
||||
if (!system.IsWindows()) then
|
||||
local fontOverrides = {
|
||||
["Roboto"] = "Roboto Regular",
|
||||
["Roboto Th"] = "Roboto Thin",
|
||||
["Roboto Lt"] = "Roboto Light",
|
||||
["Roboto Bk"] = "Roboto Black",
|
||||
["coolvetica"] = "Coolvetica",
|
||||
["tahoma"] = "Tahoma",
|
||||
["Harmonia Sans Pro Cyr"] = "Roboto Regular",
|
||||
["Harmonia Sans Pro Cyr Light"] = "Roboto Light",
|
||||
["Century Gothic"] = "Roboto Regular"
|
||||
}
|
||||
|
||||
if (system.IsOSX()) then
|
||||
fontOverrides["Consolas"] = "Monaco"
|
||||
else
|
||||
fontOverrides["Consolas"] = "Courier New"
|
||||
end
|
||||
|
||||
local ixCreateFont = surface.CreateFont
|
||||
|
||||
function surface.CreateFont(name, info) -- luacheck: globals surface
|
||||
local font = info.font
|
||||
|
||||
if (font and fontOverrides[font]) then
|
||||
info.font = fontOverrides[font]
|
||||
end
|
||||
|
||||
ixCreateFont(name, info)
|
||||
end
|
||||
end
|
||||
|
||||
DeriveGamemode("sandbox")
|
||||
ix = ix or {util = {}, gui = {}, meta = {}}
|
||||
|
||||
-- Include core files.
|
||||
include("core/sh_util.lua")
|
||||
include("core/sh_data.lua")
|
||||
include("shared.lua")
|
||||
|
||||
-- Sandbox stuff
|
||||
CreateConVar("cl_weaponcolor", "0.30 1.80 2.10", {
|
||||
FCVAR_ARCHIVE, FCVAR_USERINFO, FCVAR_DONTRECORD
|
||||
}, "The value is a Vector - so between 0-1 - not between 0-255")
|
||||
|
||||
timer.Remove("HintSystem_OpeningMenu")
|
||||
timer.Remove("HintSystem_Annoy1")
|
||||
timer.Remove("HintSystem_Annoy2")
|
||||
Reference in New Issue
Block a user