A disgusting pile of loose-knit, à la carte scripts for Garry's Mod
Halt! Are you 100% sure your idea doesn't fit better in its own repo, or perhaps another one of our addons? Loose-knit script repos like this are in danger of turning into a unmaintainable dumping ground. Please do your best to keep it clean and reasonable.
All scripts should follow these rules:
- Be contained to a single directory under
lua/cfc_gmod_scripts/
- Have an
init.lua
at the root of their directory - Have a section in this README under the Included Scripts category
- Ideally, have a convar to enable/disable them
Prevents players from spam rejoining the server to spam chat messages.
Fixes the on-tick hudScaler
error spam.
Disables annoying bloom for maps that use bloom.
Limits the effects that players can spawn to a pre-defined whitelist.
This affects:
- Manually spawning effects
- Spawning effects with E2's Effect Core
- Spawning effects with Starfall's Effect library
More effects can be whitelisted by adding them to the global GmodScripts_EffectWhitelist
table.
hook.Add( "InitPostEntity", "example", function()
GmodScripts_EffectWhitelist["my_effect"] = true
end )
Fixes a silly (but absurdly spammy) nil
error that occurrs in a popular L4D2 SimfPhys Vehicle Pack (this fix has already been proposed upstream, but the author doesn't appear to want to implement it)
Removes certain net messages that are never used or useless for our usecase.
Fixes a weird Garry's Mod exploit that happens if a player issues an absurd amount of Use
commands on a single entity.
env_projectedtexture
entities with the enableshadow
property enabled (as in wire lights and lamps) appear to cause a huge amount of clientside lag when they face other props (and cast shadows)
This disables the enableshadow
property on all newly created env_projectedtexture
entities.
Uses the cfc_remove_tabs
addons' hooks to allow Moderators+ access to NPCs.
cfc_gmodscripts_enable_removetabs
(1/0, replicated, archived)
Prevents configured weapon classes to be prevented from loading, such as abusive admin weapons.