branchgarrysmod.main/maincancel

829 Commits over 1,004 Days - 0.03cph!

48 Days Ago
Eliminating more branch differences / minor cleanups
48 Days Ago
Eliminating more branch differences 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
49 Days Ago
Eliminate more branch differences Fix close button not doing anything for +showvprof
50 Days Ago
Remove unnecessary changes to ConCommandBase
50 Days Ago
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
52 Days Ago
Fixed missing model for npc_citizen in Hammer (FGD) SMG1 ejects rifle shells, not pistol ones
52 Days Ago
Eliminate some branch differences Eliminate more branch differences with x86-64 Eliminate more branch differences with x86-64 again
53 Days Ago
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 Do not write variables at default value to config.cfg Guard against clients without new functions for DButton Fixed compile errors due to branch differences
53 Days Ago
Mention that sv_no_ain_files should be set before map load Handle missing cache file a bit better Remove cl_showpluginmessages Fix compile error Actually remove cl_showpluginmessages Fix crash with NPCs doing scripted sequences Remove test_entity_blocker concommand No reason to have it
53 Days Ago
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) 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.
53 Days Ago
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) 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
53 Days Ago
Add ability to put background behind console notify text Increase contimes to 12 by default Added con_bgalpha and con_border 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 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 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.
60 Days Ago
Fix Linux/Mac compile error
60 Days Ago
Throw a warning when trying to create unprecached particles Added 2 new options to console quick options vcollide_wireframe & cl_particle_show_bbox Fixed particle precipitation not precaching the particles This happened when only PCF particle based precipitation types are on the map. Make Linux use the same console.log code path as Windows This concerns Linux dedicated servers only. Makes it so that ANSI command sequences are not written to console.log on Linux SRCDS. Added gmod_cleanup and gmod_camera to KB Options Fix Lua errors with weapon_base when NPCs try to use it TTT: Update French and Ukrainian localizations Added more console warnings with invalid sendprop types Added a bunch of new data to util.GetModelInfo Update Label center alignment with an inset Basically instead of being a minimum value for the X position of the text, the text is centered using the inset as the 0 position, always taking it into account. This is useful for buttons with icons, so the text always appears centered. DButton.SizeToContents improvement Runs InvalidateLayout to ensure the text inset is set to the correct value, implements SizeToContentsX Replace Copy to Clipboard icon with a button for Problems Hopefully will be more obvious what the button is, so ppl are more encouraged to copy the errors and send them to workshop addon devs. Also add icons to quick fix button Added "Copy to clipboard" button to gui.OpenURL dialog Also add icons to buttons. Increase max voice chat channels to 16 (from 5) Try to avoid Lua errors with DButton Fix tonemap system not getting new controller on map cleanup Fix a potential issue with game.CleanUpMap Improvements for util.TableToJson * Throw hatlng errors at all times (instead of non halting ones) * Clear any parsed data before throwing Lua errors, because the Lua errors prevent destructors from running Added "Inflictor" to Bullet structure Affects Entity.FireBullets and the bullet hooks. Inflictor sets the weapon that the damage should be credited to. Attacker being the entity that dealt the damage, i.e. a player Fixed sv_max_usercmd_move_magnitude breaking some mods Panel:PaintAt will touch Z pos only if there are any 0 values Improve player head angle (yaw) when in vehicles Fix the neck snapping when looking backwards from left to right, fix 90 degree offset in prisoner pod Colors from C++ have their metatables Unifies how colors are pushed to Lua, removes hacks Added Panel:GetContentAlignment Added `trigger_teleport_relative` Added m_bBreakable to prop_door_rotating DataDesc Merged Pull Requests * TTT: Fixed inconsistency for default values in terrortown.txt * Changed "Toggle" to "Toggle Key" for Muscle and Hoverball key inputs * Certain Sandbox entity spawning global functions (used for spawnmenu) return the entities they create Use Panel.GetContentAlignment to fix DButton text alignment With recent changes, the text in right click menus in Sandbox was moved to the left unintentionally. So now we use the new function to make it look right for both, left aligned text buttons, and center aligned ones. Missing whitespace changes from public repo Restore IMaterial:GetColor4Part for now. Needs to be deleted once everyone updates. Restore imat:GetColor hack for now FIx merge errors
2 Months Ago
Updated FGD files Added logic_register_activator, logic_coop_manager, point_viewcontrol_multiplayer and point_viewproxy Updated prop_vehicle_choreo_generic
2 Months Ago
Fixed a server crash to do with keyvalues Fix particles never appearing with debugger attached Micro optimize Get_Entity Make PLAYER:AddCleanup server only (Community Contrib) Localize named Citizen NPCs Fixed KEEP_ON_RECREATE_ENTITIES sharing value with other flag
2 Months Ago
Remove local define for MAX_EDICT_BITS in net.lua Fixed HLS shotgun right click pump sounds desync Make zoom_sensitivity_ratio save across sessions.
2 Months Ago
Undo a certain change that could be causing crashes for 1 dude Apply a hack for bone manip level transitions Added `-noconclr` to disable srcds console colors Partially implement mat_ambient_light convars They require shader changes for LightmappedGeneric for full support, sigh Fixed regression with TTT team colors while spectating SpawnIcon.Copy copies tooltip & OpenMenuExtra mimics contenticon
2 Months Ago
ContentIcon.Copy also copies the tooltip Fixed some small memory leaks in dedicated server workshop
2 Months Ago
Fixed missing $bottommaterial material causing massive FPS loss It was trying to load the material every frame while underwater. Also fix potential NPE crash with water textures/materials. Also clear missing material list on map load, in case the material list changed (new addons,new map embedded files, etc) Added mp_weaponrespawn Moved some functionality tied to mp_weaponstay in recent change to a new convar. This is meant to affect HL2DM maps Added `Ignore Solid` for point_spotlight in FGD Updated TTT Fixed unintentional global variable Updated localization files Fixed a crash in trace code that could happen after a changelevel
2 Months Ago
Restore missing file used exclusively by this beta
2 Months Ago
Enable network protocol breaking changes Bump versions Reapply bone manipulate level transition fix Removed some more test entities that should've never been shipped
2 Months Ago
Move where balloon force limit is enforced Update verbosity of "Out-of-range value" warnings Now includes parent array name, and the entity index Fixed pose parameters sometimes getting garbage values Balloon dupes check for missing values This isn't extensive enough, other tools still need to do this as well TTT: Crosshair Customization (Community Contribution) Fixed another potentially uninited variable issue
2 Months Ago
Minor cleanups Fixed HLMV.exe not running in win64/ Include Episode 2 Zombie Torso Apparently ep2_outland_01 complains about the model being different Include Episode 2 version of water_riverbed01 I have been assured the Episode 1 version is not used in Episode 1. Fix prop_ragdoll.StartRagdollBoogie map input param type
2 Months Ago
Fixed hammer model scale preview scaling bones multiple times Unhide sv_hl2mp_weapon/item_respawn_time Also made mp_weaponstay work for map spawned entities Added prop_disable_distance_fade to console switches Also made cheat convars be disabled if sv_cheats=0 HTTP calls the fail function with -disablehttp Fixed ep2 props overriding hl2 content unintentionally Updated a bunch of HL2 map icons To better represent the areas on them/be more recognizable and less dark Touch up episodic icons as well Added missing TF2 map icons console quick switch adjustments Having cheat cvars be disabled is annoying, since they still work in singleplayer Also just remove prop_disable_distance_fade from this, as I don't feel like it belongs Fixed infinite loop with removing world decals Remove cl_customsounds
3 Months Ago
Update Treason map icons from the developer Updated language files TTT PR: Fixed health station not breaking at 0 HP
3 Months Ago
Fixed killfeed names regression
3 Months Ago
Fixed ai.GetSquadMemberCount returning nothing if there is no squad Fixed player_squad NPC squad being overflown When you spawn too many npc_alyx's or npc_citizens. Reduced max player squad from 32 to 16, to match the actual max NPC squad size Handle NPC squads being overflown when spawning many NPCs
3 Months Ago
Minor cleanup Give description to vgui_visualizelayout Added quick switches to console https://files.facepunch.com/rubat/2025/March17-1180-ZigzagGourami.png Added more options to Console Quick Actions Pull Requests * Updated TTT language files * make file.Read return `nil` on failure instead of `no value` env_skypaint FGD inputs Added Entity:SetNetworkVarsFromMapInput as a helper and a sister function to Entity:SetNetworkKeyValue Fixed being able to reset npc_grenade_frag after it exploded PR: Fixed `team.GetColor` retuning non copied default color Localize Balloon and Dynamite world tool tips Update gmod.code-workspace Added derma icon browser to console quick actions Add icons to drag'n'drop right click menu Unify spawnmenu rightclick code & add GM:SpawnmenuIconMenuOpen The hook is called for ContentIcon and SpawnIcon. SpawnIcons now also call PANEL:OpenMenuExtra, if it exists.
3 Months Ago
Better error handling for reworked killfeed Allow Map IO to convert int/float to string automatically Better default text color for game_text Port original ear ringing behavior from HL2 to Lua less ear ringing Remove cheat flag from mat_colorcorrection Added sv_usercmd_custom_random_seed Added sv_showimpacts Move Treason map icons to fallbacks VPK Mod author(s) want to ship the map icons for Garry's Mod themselves. This will make their icons take precedence over ours. Added some headers to projects for intellisense Try to mitigate util.TableToJSON leaving junk behind of failure Merged Pull Requests * Make Player:LimitHit serverside only (it would error clientside) * weapon_rpg for npc_citizen (rebel only) * ENT.Information support for tooltips in NPC spawn icons
3 Months Ago
Replace other occurrences of hl2.exe in FactoryReset-GMod.bat Fix 2 recently added map icons not being 128x128 merge missed change for base gamemode (from a Pull Request)
3 Months Ago
Merge community provided changes to JellyFish shader to do with $envmap Merged some more changes from `x86-64` for compile to work
3 Months Ago
Added point_entity_finder Added mounting support for Klaus Veen's Treason At the request of its developer Added -bouncefromnamed to VRAD VRAD: Added %alphatexture VMT compile parameter Render loading screen when running stringtable callbacks (Community Contribution)
3 Months Ago
color_correction works with fog_volume Brings over Master/Simulate clientside spawnflags Upgraded colorcorrectionui to CS:GO's version with ability to load saved presets, also fixed preview not working Fixed GM:NeedsDepthPass causing NPCs to not render Also fixed it rendering ropes twice. Apparently the engine removes m_pRenderable from NPC entities for some reason? Remove DOFModeHack from pp_bokeh Rollermine becomes TWOPASS when open instead of translucent This makes it render better with SSAO pass (such as bokeh DOF) Fix util.TableToJSON only outputting whole numbers in arrays
3 Months Ago
Port clientside trigger stuff from CS:GO Will allow trigger_playermovement to work with prediction more or less correctly Prepare networking code for env_wind radius Added env_ambient_light Minor cleanups Minor cleanups
3 Months Ago
Port `SpriteCard` renderer for `render_sprite_trail` from CS:GO Mitigate invalid vehicle scripts causing crashes Description for debug_dump and more info when ran. trigger_playermovement auto walk and no jump spawnflags Minor cleanups
3 Months Ago
Minor clean ups Update gmod.code-workspace (Remove full paths) Remove player jingles/impulse 202 Fixed DTextEntry autocomplete menu not inheriting skin Prevent potential crashes to do with traces on models Added ip_steam Exit SRCDS (with a message) if GSLT is invalid or expired Added some new options to `render_sprite_trail` `constrain radius to length` and `ignore delta time`
3 Months Ago
Made cmd not send empty messages that kick people And hide it (it still works, but just hidden) func_lod DisappearMinDist & DisappearMaxDist KVs Added weapon class name & ent index to "Weapon spawning in solid" Minor FGD adjustments More descriptions, default values, etc. Added func_rotating.GetSpeed/SnapToStartPos Added func_dustmotes.AffectedByWind Fixed .gma being left open in some cases if it failed to load/parse Fix shaders not compiling Fix some vmt formatting that i came across randomly
3 Months Ago
Estimate player's velocity clientside if MOVETYPE_NONE Enable `"flammable", "no"` prop interaction Added `drawviewer` field to render.RenderView Loading screen gets data faster when hosting a game Load shaders from THIRDPARTY if not found in BSP or MOD And whitelist "shaders/*.vcs" in workshop addons. Fix saves.singular localization string including its comment Fixed "flammable", "no" assigning wrong flag Minor cleanups Add min_use_angle for func_button from CS:GO Reduce which entities report the networked velocity clientside local player, MOVETYPE_FLYGRAVITY, MOVETYPE_FLY , players without MOVETYPE_NONE is the current list. Fix SetFogController being stomped by new fog controller system Added NPC:GetHeadDirection and NPC:GetEyeDirection
3 Months Ago
Added sv_maxvoicepacketsperframe Text parsing: Handle loading/writing \r correctly (Hammer VMF) Hammer: Entity comments allow adding new lines with Enter In Entity Properties window, the Comment field Expand func_precipitation key-value info about custom particles Finish description of sv_maxvoicepacketsperframe Uncheat sv_player_usercommand_timeout and default to 0.5 0.5 is the value GMod originally had Add sv_player_usercommand_timeout_lastcmd default to 1. Rerun the last command instead of a null command. This was the previous behavior. Replace DDrawer :: text with icons Spawnmenu drawers scale the category list So that when the drawer(s) are open the bottom categories are not hidden behind the drawer Fixed scrollbar parent resizing not adjusting scrollbar grip posiiton Revert "Merged some anti usercmd abuse stuff from TF2 SDK" Causes weird issues around the game Fixed CRopeKeyframe having huge serverside bounds when not attached it was adding (0 0 0) (or really, the offset point) as world coordinates to include in the bounding box Fixed trigger_remove.OnRemove not working at all Remove sv_autojump as it does nothing Pull Requests * TTT: add ttt_filter_role entity * TTT: Close player volume slider along with scoreboard * Updated AngularJS from 1.1.2 to 1.8.2 + potential performance improvements * Fixed DButton:SetConsoleCommand() not accepting vararg * New Localisation Phrases Pull Requests * TTT: Fixed players sometimes being revealed as dead when they chat/voicechat right as they die * TTT: Let TTTLastWordsMsg hook override default behaviour * Cleaner server list layout code & Better display on small screens
3 Months Ago
Fixed npc_zombie not using sk_zombie_dmg_both_slash Fixed inaccessible area on ep2_outland_10 due to model name collision Fixed transparency on light_directional and pp_controller hammer icons Fixed Episode 2 Fast Zombie jumpscare sequence Implements AttachToVehicle input for npc_fastzombie Fixed missing animations on hula doll (Episode 2) Read map cycle only from MOD Merged some anti usercmd abuse stuff from TF2 SDK Adds sv_player_usercommand_timeout Adjust Sandbox ContentIcon to scroll text if it is too long https://files.facepunch.com/rubat/2025/February27-1134-LoneGlobefish.gif Also applied localization to "Author" label in spawnmenu tooltips. Fixed server crash due to last update Allow NPC list to set Author (displayed in spawnmenu tooltip) Port x86-64 exclusive changes to fix build errors
3 Months Ago
Added trigger_tonemap Doesn't work yet, due to network compatibility env_tonemap_controller Master flag will also be supported env_fog_controller SetMaxDensityLerpTo & HDRColorScale Added some editor icons from CS:GO env_texturetoggle, light_directional, logic_autosave, func_instance_parms Added logic_random_outputs Hammer: Ensure Input/Output colums fit header text So its not "P...", "O...", etc. Hammer: Fixed map instances being added to recently opened Only manually opened files are added to recently opened files Hammer: Fixed certain inputs having wrong descriptions The output tab was adding every single input from the entire map into the dropdown, and then hiding unwanted ones, causing name collisions Now only adds inputs from target entities if there are any valid ones, if not, THEN we add all of them. Update Hammer splash, so it appears less buggy Added fog_volume Only fog_controller changing for now, fully functional, no need to wait for update Fix ViewModelFlip making view model sway backwards Hammer: Implemented multiple cordon system from CS:GO
3 Months Ago
Added more useful info to CLtoSV and SVtoCL net message ToStrings Undo changes to combine dropship as they are crashy Prevent crashes when GetBoneCache is called with no model Do not mount addons/ twice in-game (regression) Tools also now respect -noaddons Fixed 357 reload missing its shelleject effect Fixed Bugbait not having viewmodel bob when sprinting Fixed missing AR2 reload sound in 3rd person Fix 357 shelleject in firstperson multiplayer VBSP: Prevent crashing with bad VMFs (newlines), display an error StudioMdl: Gracefully handle numframes 0 or below (instead of crashing) Update w_pistol to fire correct events for player 3rd person brass eject Fixed AR2 spamming 3rd person reload sound when no ammo Unhide sv_maxspeed Added some internal/hidden inputs to npc_rollermine in the FGD Holdtype & player animations for Bugbait Also removed some clientside weapon stubs for non existent weapons Citizen Suitcase/Package, Annabelle/Alyxgun holdtypes
3 Months Ago
Implement point_worldtext (CS:GO version) Added new features to point_worldtext "Start Hidden" spawnflag "Rainbow" keyvalue * SetEnabled, Enable, Disable, Toggle inputs * SetText/SetMessage, SetTextSize, SetColor, SetRainbow inputs Minor cleanups Move Enemy Rebel to Combine tab, add icon & localization Move ammo localizations to .properties Hammer preview for point_worldtext https://files.facepunch.com/rubat/2025/February21-1113-CrowdedFoxhound.jpg Newline support in point_worldtext Fixed Hammer breaking VMF files if they contain \n in keyvalue values New point_worldtext features Text spacing X/Y, orientation Fixed fog being black on some maps with HDR
3 Months Ago
FGD: Allow `bool` and `boolean` to be interchangeable HDR override for FOG colors from 20th anniversary Requires networking changes, so not currently active Added logic_eventlistener(_itemequip) Serverside only entities, FGD included Merge x64 exclusive changes for compile fix
3 Months Ago
Fixed a crash when spawning certain vehicles 64bit versions of compile tools say that they are 64bit So it's more clear what version is being used from logs alone Merged Pull Requests * TTT: Change holdtypes for consistency with viewmodels * TTT: clarify Health Station usage hint text * TTT: Update localization files * Fixed tool sorting when some tools are missing localization strings * Micro-optimize Workshop Mount VGUI Rework how LZMA decompression works for BSP files The existing code was awful. The new one is less wasteful. Make util.TableToJSON output whole numbers without decimal point Minor cleanups Fixes towards MP3s hanging the game on first playback * Fixed MP3s recaching 2 times sometimes in a row * Fixed cache size not being able to exceed 65k * Make MP3s skip the ID3 data immediately on cache, not on first playback. This makes loading a bit slower per-file, but makes it so we don't need to cache 400KB of useless data per MP3 * Increased amount of cached data for MP3s to satiate initial burst of data access by BASS (from 16K to 96k) This was preventing async load of the entire file Merged Pull Requests * Refactor sandbox hints * Remove angular-ui, jquery-ui, jquery-color
4 Months Ago
Remove weapon_cubemap from localizations Updated TTT * TTT: Magneto-stick DoAttack cleanup * TTT: Fix C4/Radio sounds not playing outside of PAS * TTT: Fix "CS:S not mounted" warning Add a warning for future self Linux is the worst of all time Rename en-PT to en-pt and let's see how that affects Linux Ignore enc_temp_folder Prevent developer only messages about bone access with util.DecalEx Lowercase remaining localization folders
4 Months Ago
Remove weapon_cubemap from localizations Updated TTT * TTT: Magneto-stick DoAttack cleanup * TTT: Fix C4/Radio sounds not playing outside of PAS * TTT: Fix "CS:S not mounted" warning
4 Months Ago
SRCDS colors for Linux & 24 bit colors
4 Months Ago
Tools: try searching for gameinfo relative to the .exe if not found Allows BSPZIP (and probably others) to run from scripts outside of the game directory without additions params "Fix" an infinite loop in memory allocation by exiting w/ message "fix" an infinite loop in memory allocator (CUtlMemory) by exiting the program with a warning if it is hit. Fixed crash with net_showmsg Fixed hoverball's toggle key not functioning Localization for built-in undo actions Potentially breaking change: Internal undo names changed! Also fixes undo text being processed twice for certain undo actions Adds localization for entities spawned by Sandbox tools (names) Added `hostile` keyvalue to npc_citizen Will be treated as a combine. Useful for NPC reskins to not have combine noises. Or just for fun. Fix queued rope renderer running out of memory with SuperDOF