This commit is contained in:
lifestorm
2024-08-05 18:40:29 +03:00
parent 9f505a0646
commit c6d9b6f580
8044 changed files with 1853472 additions and 21 deletions

View File

@@ -0,0 +1,56 @@
--[[
| 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/
--]]
-- I really should've made like a table to be able to loop though, oh well.
function PLUGIN:InitPostEntity()
RunConsoleCommand("gmod_mcore_test", ix.option.Get("gmod_mcore_test", true) and 1 or 0)
RunConsoleCommand("mat_queue_mode", ix.option.Get("mat_queue_mode", -1))
RunConsoleCommand("cl_threaded_bone_setup", ix.option.Get("cl_threaded_bone_setup", true) and 1 or 0)
RunConsoleCommand("r_decals", ix.option.Get("r_decals", 2048))
RunConsoleCommand("r_drawmodeldecals", ix.option.Get("r_drawmodeldecals", true) and 1 or 0)
RunConsoleCommand("r_maxmodeldecal", ix.option.Get("r_maxmodeldecal", 50))
RunConsoleCommand("cl_ragdoll_collide", ix.option.Get("cl_ragdoll_collide", false) and 1 or 0)
RunConsoleCommand("r_WaterDrawReflection", ix.option.Get("r_WaterDrawReflection", true) and 1 or 0)
RunConsoleCommand("r_shadows", ix.option.Get("r_shadows", true) and 1 or 0)
RunConsoleCommand("mat_mipmaptextures", ix.option.Get("mat_mipmaptextures", true) and 1 or 0)
RunConsoleCommand("mat_envmapsize", ix.option.Get("mat_envmapsize", 128))
RunConsoleCommand("cl_phys_props_enable", ix.option.Get("cl_phys_props_enable", true) and 1 or 0)
RunConsoleCommand("cl_ejectbrass", ix.option.Get("cl_ejectbrass", true) and 1 or 0)
RunConsoleCommand("mat_filterlightmaps", ix.option.Get("mat_filterlightmaps", true) and 1 or 0)
RunConsoleCommand("muzzleflash_light", ix.option.Get("muzzleflash_light", true) and 1 or 0)
RunConsoleCommand("props_break_max_pieces", ix.option.Get("props_break_max_pieces", -1))
RunConsoleCommand("r_3dsky", ix.option.Get("r_3dsky", true) and 1 or 0)
RunConsoleCommand("r_maxdlights", ix.option.Get("r_maxdlights", 32))
RunConsoleCommand("r_eyemove", ix.option.Get("r_eyemove", true) and 1 or 0)
RunConsoleCommand("r_eyes", ix.option.Get("r_eyes", true) and 1 or 0)
RunConsoleCommand("r_teeth", ix.option.Get("r_teeth", true) and 1 or 0)
RunConsoleCommand("r_radiosity", ix.option.Get("r_radiosity", 3))
RunConsoleCommand("r_worldlights", ix.option.Get("r_worldlights", 4))
RunConsoleCommand("rope_averagelight", ix.option.Get("rope_averagelight", true) and 1 or 0)
RunConsoleCommand("rope_collide", ix.option.Get("rope_collide", true) and 1 or 0)
RunConsoleCommand("rope_rendersolid", ix.option.Get("rope_rendersolid", true) and 1 or 0)
RunConsoleCommand("rope_smooth", ix.option.Get("rope_smooth", true) and 1 or 0)
RunConsoleCommand("rope_subdiv", ix.option.Get("rope_subdiv", 2))
RunConsoleCommand("violence_ablood", ix.option.Get("violence_ablood", true) and 1 or 0)
RunConsoleCommand("violence_agibs", ix.option.Get("violence_agibs", true) and 1 or 0)
RunConsoleCommand("violence_hblood", ix.option.Get("violence_hblood", true) and 1 or 0)
RunConsoleCommand("violence_hgibs", ix.option.Get("violence_hgibs", true) and 1 or 0)
RunConsoleCommand("ai_expression_optimization", ix.option.Get("ai_expression_optimization", true) and 1 or 0)
RunConsoleCommand("cl_detaildist", ix.option.Get("cl_detaildist", 1200))
RunConsoleCommand("cl_detailfade", ix.option.Get("cl_detailfade", 400))
RunConsoleCommand("r_fastzreject", ix.option.Get("r_fastzreject", -1))
RunConsoleCommand("cl_show_splashes", ix.option.Get("cl_show_splashes", true) and 1 or 0)
RunConsoleCommand("r_drawflecks", ix.option.Get("r_drawflecks", true) and 1 or 0)
RunConsoleCommand("r_threaded_particles", ix.option.Get("r_threaded_particles", true) and 1 or 0)
RunConsoleCommand("snd_mix_async", ix.option.Get("snd_mix_async", true) and 1 or 0)
RunConsoleCommand("r_threaded_renderables", ix.option.Get("r_threaded_renderables", true) and 1 or 0)
RunConsoleCommand("cl_forcepreload", ix.option.Get("cl_forcepreload", false) and 1 or 0)
end

View File

@@ -0,0 +1,101 @@
--[[
| 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/
--]]
LANGUAGE = {
optGmod_mcore_test = "Multi-Core Rendering",
optdGmod_mcore_test = "Toggles Multi-Core Rendering for your game. Requires a restart.",
optMat_queue_mode = "Material queue mode",
optdMat_queue_mode = "The queue/thread mode the material system should use (-1 = default, 0 = synchronous single thread, 1 = queued single threaded, 2 = queued multithreaded).",
optCl_threaded_bone_setup = "Multi-Threaded Bone System",
optdCl_threaded_bone_setup = "Toggles parallel processing for the bone system.",
optR_decals = "Max decals",
optdR_decals = "The maximum number of decals allowed to render at any one time.",
optR_drawmodeldecals = "Model decals",
optdR_drawmodeldecals = "Whether decals should render on models or not.",
optR_maxmodeldecal = "Max model decals",
optdR_maxmodeldecal = "The maximum number of decals allowed to render on models at any one time.",
optCl_ragdoll_collide = "Clientside ragdoll collision",
optdCl_ragdoll_collide = "Whether or not clientside models should have collisions.",
optR_WaterDrawReflection = "Water Reflections",
optdR_WaterDrawReflection = "Whether the water should have reflections.",
optR_WaterDrawRefraction = "Water Refraction",
optdR_WaterDrawRefraction = "Whether the water should have refractions.",
optR_shadows = "Model shadows",
optdR_shadows = "Whether models and props should cast shadows.",
optMat_mipmaptextures = "'Mipmap' textures",
optdMat_mipmaptextures = "Increase texture quality in exchange for performance.",
optMat_filtertextures = "Filter textures",
optdMat_filtertextures = "Increase texture quality in exchange for performance.",
optMat_envmapsize = "Environment Map Size",
optdMat_envmapsize = "Adjusts the resolution of environment maps that are used for reflective surfaces.",
optCl_phys_props_enable = "Clientside physics props",
optdCl_phys_props_enable = "Toggles clientside physics props. Requires a reconnect.",
optCl_ejectbrass = "Eject Brass",
optdCl_ejectbrass = "Whether bullet shells should eject out of weapons when fired.",
optMat_filterlightmaps = "Filter lightmaps",
optdMat_filterlightmaps = "Increase light quality in exchange for performance.",
optMuzzleflash_light = "Muzzleflash light",
optdMuzzleflash_light = "Whether the muzzleflash should light up the player's viewmodel.",
optProps_break_max_pieces = "Maximum prop gibs",
optdProps_break_max_pieces = "Maximum prop breakable piece count (-1 = model default).",
optR_3dsky = "3D Skybox",
optdR_3dsky = "Whether 3D Skyboxes should render.",
optR_maxdlights = "Maximum Dynamic Lights",
optdR_maxdlights = "The maximum dynamic lights allowed to exist at any one time.",
optR_eyemove = "Eye movement",
optdR_eyemove = "Whether character and NPC eyes should move.",
optR_eyes = "Render eyes",
optdR_eyes = "Whether character and NPC eyes should render.",
optR_teeth = "Render teeth",
optdR_teeth = "Whether character and NPC teeth should render.",
optR_radiosity = "Radiosity setting",
optdR_radiosity = "The manner in which radiosity is sampled (0 = no radiosity, 1 = radiosity with ambient cube (6 samples), 2 = radiosity with 162 samples, 3 = 162 samples for static props, 6 samples for everything else).",
optR_worldlights = "World Lights",
optdR_worldlights = "The number of world lights to use per vertex.",
optRope_averagelight = "Rope Average Light",
optdRope_averagelight = "Makes ropes use average of cubemap lighting instead of max intensity.",
optRope_collide = "Rope collisions",
optdRope_collide = "Whether ropes should collide with the world.",
optRope_rendersolid = "Render ropes",
optdRope_rendersolid = "Whether ropes should render.",
optRope_smooth = "Rope Anti-Aliasing",
optdRope_smooth = "Whether ropes should have anti-aliasing measures applied on them.",
optRope_subdiv = "Rope subdivision",
optdRope_subdiv = "Rope subdivision amount.",
optViolence_ablood = "Alien Blood",
optdViolence_ablood = "Whether alien blood should render.",
optViolence_agibs = "Alien Gibs",
optdViolence_agibs = "Whether alien gibs should render.",
optViolence_hblood = "Human Blood",
optdViolence_hblood = "Whether human blood should render.",
optViolence_hgibs = "Human Gibs",
optdViolence_hgibs = "Whether human gibs should render.",
optAi_expression_optimization = "AI Expression Optimization",
optdAi_expression_optimization = "Whether NPC expressions should not render if you cannot see them.",
optCl_detaildist = "Detail Distance",
optdCl_detaildist = "Distance at which detail props are no longer visible.",
optCl_detailfade = "Detail Fade",
optdCl_detailfade = "Distance across which detail props fade in.",
optR_fastzreject = "Fast Z Reject",
optdR_fastzreject = "Activate/deactivates a fast z-setting algorithm to take advantage of hardware with fast z reject. Use -1 to default to hardware settings.",
optCl_show_splashes = "Render water splashes",
optdCl_show_splashes = "Whether water splashes should render.",
optR_drawflecks = "Render flecks",
optdR_drawflecks = "Whether particles should be created when a wall is shot.",
optR_threaded_particles = "Multi-Threaded Particle System",
optdR_threaded_particles = "Toggles parallel processing for the particle system.",
optSnd_mix_async = "Multi-Threaded Sound System",
optdSnd_mix_async = "Toggles parallel processing for the sound system.",
optR_threaded_renderables = "Multi-Threaded Rendering System",
optdR_threaded_renderables = "Toggles parallel processing for the rendering system.",
optCl_forcepreload = "Force Pre-Load",
optdCl_forcepreload = "Forcefully pre-loads all content before map load, as opposed to loading things when needed."
}

View File

@@ -0,0 +1,342 @@
--[[
| 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/
--]]
ix.option.Add("gmod_mcore_test", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("gmod_mcore_test", value and 1 or 0)
end
})
ix.option.Add("mat_queue_mode", ix.type.number, -1, {
category = "performance",
min = -1,
max = 2,
OnChanged = function(oldValue, value)
RunConsoleCommand("mat_queue_mode", value)
end
})
ix.option.Add("cl_threaded_bone_setup", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_threaded_bone_setup", value and 1 or 0)
end
})
ix.option.Add("r_decals", ix.type.number, 2048, {
category = "performance",
min = 0,
max = 10000,
OnChanged = function(oldValue, value)
RunConsoleCommand("r_decals", value)
end
})
ix.option.Add("r_drawmodeldecals", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_drawmodeldecals", value and 1 or 0)
end
})
ix.option.Add("r_maxmodeldecal", ix.type.number, 50, {
category = "performance",
min = 0,
max = 1000,
OnChanged = function(oldValue, value)
RunConsoleCommand("r_maxmodeldecal", value)
end
})
ix.option.Add("cl_ragdoll_collide", ix.type.bool, false, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_ragdoll_collide", value and 1 or 0)
end
})
ix.option.Add("r_WaterDrawReflection", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_WaterDrawReflection", value and 1 or 0)
end
})
ix.option.Add("r_WaterDrawRefraction", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_WaterDrawRefraction", value and 1 or 0)
end
})
ix.option.Add("r_shadows", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_shadows", value and 1 or 0)
end
})
ix.option.Add("mat_mipmaptextures", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("mat_mipmaptextures", value and 1 or 0)
end
})
ix.option.Add("mat_filtertextures", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("mat_filtertextures", value and 1 or 0)
end
})
ix.option.Add("mat_envmapsize", ix.type.number, 128, {
category = "performance",
min = 0,
max = 1000,
OnChanged = function(oldValue, value)
RunConsoleCommand("mat_envmapsize", value)
end
})
ix.option.Add("cl_phys_props_enable", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_phys_props_enable", value and 1 or 0)
end
})
ix.option.Add("cl_ejectbrass", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_ejectbrass", value and 1 or 0)
end
})
ix.option.Add("mat_filterlightmaps", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("mat_filterlightmaps", value and 1 or 0)
end
})
ix.option.Add("muzzleflash_light", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("muzzleflash_light", value and 1 or 0)
end
})
ix.option.Add("props_break_max_pieces", ix.type.number, -1, {
category = "performance",
min = -1,
max = 50,
OnChanged = function(oldValue, value)
RunConsoleCommand("props_break_max_pieces", value)
end
})
ix.option.Add("r_3dsky", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_3dsky", value and 1 or 0)
end
})
ix.option.Add("r_maxdlights", ix.type.number, 32, {
category = "performance",
min = 0,
max = 100,
OnChanged = function(oldValue, value)
RunConsoleCommand("r_maxdlights", value)
end
})
ix.option.Add("r_eyemove", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_eyemove", value and 1 or 0)
end
})
ix.option.Add("r_eyes", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_eyes", value and 1 or 0)
end
})
ix.option.Add("r_teeth", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_teeth", value and 1 or 0)
end
})
ix.option.Add("r_radiosity", ix.type.number, 3, {
category = "performance",
min = 1,
max = 3,
OnChanged = function(oldValue, value)
RunConsoleCommand("r_radiosity", value)
end
})
ix.option.Add("r_worldlights", ix.type.number, 4, {
category = "performance",
min = 0,
max = 4,
OnChanged = function(oldValue, value)
RunConsoleCommand("r_worldlights", value)
end
})
ix.option.Add("rope_averagelight", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("rope_averagelight", value and 1 or 0)
end
})
ix.option.Add("rope_collide", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("rope_collide", value and 1 or 0)
end
})
ix.option.Add("rope_rendersolid", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("rope_rendersolid", value and 1 or 0)
end
})
ix.option.Add("rope_smooth", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("rope_smooth", value and 1 or 0)
end
})
ix.option.Add("rope_subdiv", ix.type.number, 2, {
category = "performance",
min = 0,
max = 8,
OnChanged = function(oldValue, value)
RunConsoleCommand("rope_subdiv", value)
end
})
ix.option.Add("violence_ablood", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("violence_ablood", value and 1 or 0)
end
})
ix.option.Add("violence_agibs", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("violence_agibs", value and 1 or 0)
end
})
ix.option.Add("violence_hblood", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("violence_hblood", value and 1 or 0)
end
})
ix.option.Add("violence_hgibs", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("violence_hgibs", value and 1 or 0)
end
})
ix.option.Add("ai_expression_optimization", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("ai_expression_optimization", value and 1 or 0)
end
})
ix.option.Add("cl_detaildist", ix.type.number, 1200, {
category = "performance",
min = 0,
max = 10000,
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_detaildist", value)
end
})
ix.option.Add("cl_detailfade", ix.type.number, 400, {
category = "performance",
min = 0,
max = 10000,
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_detailfade", value)
end
})
ix.option.Add("r_fastzreject", ix.type.number, -1, {
category = "performance",
min = -1,
max = 1,
OnChanged = function(oldValue, value)
RunConsoleCommand("r_fastzreject", value)
end
})
ix.option.Add("cl_show_splashes", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_show_splashes", value and 1 or 0)
end
})
ix.option.Add("r_drawflecks", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_drawflecks", value and 1 or 0)
end
})
ix.option.Add("r_threaded_particles", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_threaded_particles", value and 1 or 0)
end
})
ix.option.Add("snd_mix_async", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("snd_mix_async", value and 1 or 0)
end
})
ix.option.Add("r_threaded_renderables", ix.type.bool, true, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("r_threaded_renderables", value and 1 or 0)
end
})
ix.option.Add("cl_forcepreload", ix.type.bool, false, {
category = "performance",
OnChanged = function(oldValue, value)
RunConsoleCommand("cl_forcepreload", value and 1 or 0)
end
})

View File

@@ -0,0 +1,17 @@
--[[
| 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/
--]]
PLUGIN.name = "Performance"
PLUGIN.author = "Aspect™"
PLUGIN.description = "Adds several clientside settings to improve performance at will."
ix.util.Include("cl_hooks.lua")
ix.util.Include("sh_options.lua")