branchgarrysmod.main/x86-64cancel
502 Commits over 731 Days - 0.03cph!
Lets try not delaying material/texture cleanup until render end
Updated FGD files
Added inputs to light_environment, removed point_clientcommand and point_servercommand since they do not work in Garry's Mod.
Fake Combine Ball bounces from frozen props
Make crossbow bolts bounce from indestructable props
Prevent crashes when trying to write too much data to small texture
Added new info to util.GetModelInfo
IncludeModelCount, IncludeModels and HitBoxSets
Fix avatar image texture manager not respecting avatar size at all
Removing more unused convars
mp_teamlist, mp_teamoverride, mp_defaultteam, mp_allowNPCs
Remove mat_disablehwmorph as it does nothing
Remove "Use Bloom" checkbox from Video options, as it does nothing
Remove mat_hdr_level 1 from Video Options since it doesn't do anything
mat_hdr_level 1 will act as "NONE" in options.
Fixed options complaining about missing hap_HasDevice convar
Remove sv_contact and sv_consistency as they are unused
Rework arguments of OnClientLuaError
This is a bit messy until a network breaking update, but new arguments are:
( error, ply, stack, addon_name )
Also no longer affected by "5 a second" limit serverside
Remove mp_usehwmmodels convar (unused)
Remove unintended change
AvatarImage panel changes + defer material cleanup till render end
AvatarImage keeps track of textures it creates and reuses them, preventing exhaustion of texture name symbol list
Deferring material cleanups a little makes it more likely the materials and textures are no longer used by any part of the renderer, allowing refcounts to reach 0 naturally.
Added GM:OnClientLuaError( strErr, ply )
Remove stray space indentation in some Lua files from PRs
Minor cleanups
Queue lua_error_url messages until SteamHTTP is available
Make Lua print() and error() colors the same
Compile warning fixes
Update Metrocop player model to have a valid shadow LOD
Do not render dragndrop overlay when UI mouse input is not active
A bit of a bandaid fix, but it works.
Minor cleanups
FPS independent CUserCmd:GetMouseY/X on server
Client's FPS would affect the values the server gets (higher FPS - more intermittent results, causing "low sensitivity")
Now we accumulate the mouse deltas when client performs "extra mouse sampling" and send the accumulated value instead of whatever happened to be the latest delta value.
This affects Physics Gun +USE rotation and GMOD_Camera by default, but also all mods using the aforemention functions. They should now function more predictably regardless of client FPS.
Fix srcds crash to do with workshop
Minor cleanups
Remove temporary hacks for DButton and IMaterial.GetColor
Clear networking queue on map shutdown, not map init
Fixes clientside errors happening before LevelInit hook not being sent to the server
Remove most of deprecated CSteamAPIContext usage on the client
It is removed entirely in some newer version of Steamworks API
Merge Pull Requests
* Pico optimization for cam.Start2D()
* Added list.GetEntry
Minor cleanups of empty/unused files
Minor cleanups/warning fixes
FIxed compile warnings with LuaJIT
"Mounting %i workshop addons" reports mounted count, not total count
Bump mem_max_heapsize to 512, and block it & datacachesize from Lua
"Optimization" addons setting these to very low values (lower than GMod defaults) when "turned off" causes crashes
Undo internal texture changes from CS:GO that affect monitor materials
Remove voice_modenable in favor of voice_enable
Both of them existing only causes confusion for players.
Also fixed a case where voice chat would cease to work voice_enable is set to 0 and back to 1
Player:VoiceVolume works for local player without loopback
This only works when using Steam voice, and only when not recording voice to file. (The default state)
Minor cleanups
Disable setting cl_timeout to 45 on load that never worked before
Add one more Lua backdoor URL
Fix double clicks not invoking VGUIMousePressAllowed
Minor whitespace cleanup
Minor cleanups
Added -mountcfgfile launch parameter
Block .vdf and specific .cfg files from file library
Minor cleanup
Increase MAXSTUDIOSKINS for studiomdl.exe from 32 to 64
cl_timeout - remove upper limit, unblock, and dont save
Fixed crash to do with env_projected_texture's texture
Tell the player if garrysmod.ver is read only
It not updating (by Steam) would prevent players from joining servers after updates
Log workshop addon mounts (count only) in console
Fix console message about lua_strict on game start up
Constrain cl_timeout to 10-120, default to 60 (was 30) and block from Lua
Merged Pull Requests
* Remove default return in WorldPickerMouseDisable
* Fix lua error with creator tool and missing NPCs
Fix console spam about sprite orientation when the material is missing
Add engine_no_focus_sleep to blocked convar list
Prevent crashes with steamworks lib when called too early on SRCDS
it really needs to be queued until its ready, this at least won't crash now.
Do not run friendsID check for HLTV clients
Don't forget to register the haptic umsgs on server
Stub out Haptics user messages
Block lua_strict
Minor VPC cleanups
Remove Novint Haptics stuff entirely
It was disabled in some places already, but now completely gone
Minor cleanups
Clean ups
Minor cleanups/removing unnecessary changes like the PS3 stuff
Apply minimum size check for net.ReadVector/etc
Move new net library errors behind lua_strict convar (0 by default)
Getting rid of more PS3 stuff (that isnt in main) from the VPC scripts
Fix Hammer crash when trying to browse models
Minor cleanups
Disable OOB checks for Vectors/Angles
they use more complex networking, not flat floats
Throw a non halting Lua error when giving invalid types to SetNWVar
Throw a non halting Lua error when trying to read net msg past the end
Throw a non halting Lua error when hitting Lua file limit
So it appears in the problems menu, so the player can know that there is a problem and what it is.
Fixed leading spaces in console command not adding to the history
CC/Tonemap system handles marked for deletion entities
minor cleanups
Minor cleanups
More minor cleanups
Prevent crashes with render.Capture
Fixed potential Lua error with Playermodel Selector
Minor cleanups
Merge PR: Group mountable games by install state
Reuse localization strings in main menu replacement buttons
Change default hostname to "My Garry's Mod Server"
Fix "Rotation Yaw Flip Random" particle operator regression
Now acts like it used to
Default "randomly_flip_direction" to 0 for "Rotation Random"
Add `addons/` to autorefresh whitelist
Added `Alpha` input to func_precipitation in Hammer (FGD)
Potential crash fixes
Merge Pull Requests
* TTT: Updated language files
* Micro optimize team.NumPlayers
Fixed jiggle bones on scaled models not behaving correctly
This took way too long to figure out for how simple the fix is, but jiggle bones on models with scale < 1 should no longer spazz out, and should actually work at scales above > 1
Force load HDR map lighting if there is no SDR lighting
Even if the player has set `mat_hdr_level` below 2
Alien Swarm Map Icons
Updates to debug_dump
* Handle "0" != "0.0" cases
* Add game version to output
* Sort alphabetically
* Align values and default values vertically for easier parsing with eyes
Remove "f" from some number convar default values
Remove -usetcp as it is broken anyway and has unknown purpose
Implement jiggle bones for serverside ragdolls
Apply correct scaling on jigglebones with model scale
This also disables some weird code that was applying inverse scale on jiggle bone matrix if scale > 1, I could not see where this was useful and it was causing jiggle bones to disappear up close.
Minor cleanups
Minor cleanups
Gracefully exit when encountering invalid SubRect materials
Crash with message, instead of crashing without a message
▍▅▉▅, █▇▍▆ ▊█▆▆▆▉ ▄▋▍▍▅▅ ▇▊▉█▌▊?
▇▆█ █▅▋▉▋ ▆▇▄▍ ▆▄▍▍▊▅▅▄▍▍▄▇▊▋
▉ ▊▌█▄▄▋ ▄▌▆▇▊▍▉█ ▉▊▌▉█▆ ▉▊ ▍▇▍▄ █▍█
Resolve file name capitalization issue
Minor clean ups (VPC)
minor cleanups
Minor cleanups
basically removing unnecessary changes
Eliminating more branch differences / minor cleanups
Fix crashes to do with material's representative texture
Apply FCVAR_USERINFO to gmod_npcweapon
func_movelinear improvements
Rework how sounds are played, so they are always consistently played, regardless if they are given, or if both sounds are the same sound.
Also merged Portal 2 parented movement fixes.
Allow mat_picmic below -1 in multiplayer
Init text fields for func_precipitation
Eliminating more branch differences
Eliminate more branch differences
Fix close button not doing anything for +showvprof
Fix creator tool causing errors on dedicated servers
Added env_wind.SetWindDir to FGD
Reset wind/sun render params on level load
Call PlayerLeaveVehicle after the player leaves the vehicle, not during
Fixes a potential stack overflow & being left in no clip when they are being force put in a vehicle from PlayerLeaveVehicle
Prevent Lua errors with constraint library
Update base.fgd
Merge some crashy fix from CS:GO to do with flex verts
Eliminate some branch differences
Eliminate more branch differences with main
Fixed missing model for npc_citizen in Hammer (FGD)
SMG1 ejects rifle shells, not pistol ones
Guard against clients without new functions for DButton
Do not write variables at default value to config.cfg
Fix crash with NPCs doing scripted sequences
Remove test_entity_blocker concommand
No reason to have it
Do not output ASCII control characters for color_white
This is useful for exactly 1 person in the world
Handle BaseTexture2 for impact particles on displacements
Actually remove cl_showpluginmessages
Fix regression with Creator tool
Fix scanners creating console warnings on spawnmenu spawn
resource.AddFile does not add .jpg for .mdl files
Fixed crashes when SubRect materials is used on a brush
Dedicated server workshop improvements
* Cache addon list on success
* On failure to connect to Steam, try to load addons from cache (this is kinda hacky)
* Run Steam callbacks when waiting for Steam Log On, maybe that makes it work more consistently.
Mention that sv_no_ain_files should be set before map load
Handle missing cache file a bit better
Remove cl_showpluginmessages
Asset usage in Model Picker (Hammer)
Ported feature from CS:GO, also fixes the model list not scrolling to selection after opened for the first time (since the picker is recreated every time now)
Fixed NPE server crash to do with removed NPCs in NPC squads
Fixed spawning NPCs with creator tool not randomizing weapons
Now fully respects the "NPC Weapon" setting in spawnmenu.
Fix Bugbait and Gravity Gun reporting 0 as Clip1/2
Make SLAM consistent with weapon_frag
Use primary ammo type instead of secondary ammo type.
Move crossbow effects clientside
Fixed sparks only playing for non local clients
Fixed crossbow load glow appearing on view model when using built-in third person mode
weapon_crossbow handles addons setting its clip to 1
Updated TTT (Community Contributions)
* Adds FCVAR_NOTIFY to various ConVars
* If voice drain is enabled, it will not be applied to admins anymore by default
* Changes some text used in the main menu "New Game" section
* Allows Innocents to pick-up dropped Detective hats by default
* Adds an option to disable the Karma system via the main menu "New Game" hosting
* fix players sometimes being revealed as dead when they chat/voicechat right as they die (again)
Added con_bgalpha/border to blocked convars
Fixed typo in Extra console dropdown
Fix white-on-white text color for pressed-in DMenuOptions
Minor cleanup
Remove unused member variable from keyvalues class
Fixed DTextEntry autocomplete clicks not functioning
Try to prevent infinite loops when firing bullets from OnTakeDamage
There was a weird behavior with it applying the first bullet's damage over and over again if using Entity.FireBullets from EntityTakeDamage
Reveamp scoreboard player volume scroller thing
So it's more obvious that you can scroll
https://files.facepunch.com/rubat/2025/April07-1255-ValuableGemsbok.png