781 Commits over 2,710 Days - 0.01cph!
remove OnStopDragging call from DragMouseRelease to prevent double-calling (#1695)
DragMouseRelease calls dragndrop.Drop() which, in turn, calls panels' OnStopDragging()
by having DragMouseRelease also call OnStopDragging() there was a double-call to that function
reproduction:
a = vgui.Create("DFrame")
a:MakePopup()
a:SetSize(300, 400)
b = vgui.Create("DButton", a)
b:Droppable("a")
b:SetSize(120, 80)
b:Center()
b:SetText("drag'n'drop me")
b.OnStopDragging = function()
print("Dropped @", FrameNumber())
end
Fixed pressing enter in tool search collapsing all categories
Fixed wheel ghost spazzing out on moving objects
Prop spawn effect for 5 tools
Cleaned up PR #1633
Fixed wheel ghost floating above aim pos unexpectedly
Thruster fixes & effect improvements
Fixed updating of the sound effect while the thruster is active
Thruster frees its emitter(s) properly
All thruster effects better conform to the thruster model
smoke effect now acts more like smoke and more like a thruster effect
Removed weird and unused code from Wheel Indicator effect
Removed several unused variables and merged double if statements (#1633)
* Removed unused variable
* Merged if statements
Co-authored-by: Rubat <robotboy655@gmail.com>
Physgun halo works on effects as one would expect
Added script_conditions killfeed translation
Appears on HL2Ep2 maps
DHorizDivider resizes all panels with same cookie name
An experiment for the spawnmenu tabs
Prevent main menu from showing the same BG image back to back
Fix potential Lua errors in RenderSpawnIcon_ functions
Fixed Entity.NetworkVarElement not saving properly
Stop searching for servers if player exits the server browser
Minor adjustment to server blacklist stuff
A little icon for when a weapon is selected as NPC wep override
reload LeftWidth cookie on size change (#1689)
TTT: avoid clipping victory text in round report and other fixes (#1677)
In short (see #1677 for details):
- Round report panel now increases in width to fit the victory text, so that it no longer clips in certain languages
- Various fixes and improvements to avoid potential error cases
- Some hardcoded tables and colors are now members of CLSCORE so addons can modify them without overriding the whole system. These new members include: `CLSCORE.ScorePanelNames`, `CLSCORE.ScorePanelColor`, and `CLSCORE.WinTypes`
TTT: Optimised streaming of end-of-round report (#1678)
* Optimised SCORE:StreamToClients implementation
- ``SCORE:StreamToClients`` now compresses its contents before sending it to the client
- Optimised sending the event payload in multiple parts, specifically by separating the part-splitting net message from the final arrival message. This introduces a new net message ``TTT_ReportStream_Part``.
- Event table sorting now happens after it's read on the client instead of before it's written on the server
- Raised the part separation limit to
65529 from
65500
Some additional small changes to the surrounding file:
- GetDamageType is no longer converted to a string in kill events as TableToJSON no longer as an issue encoding large integers
- CurTime is no longer rounded in events, causing events happening at near the same time to be ordered properly
- Changed pairs ``SCORE.Events`` loop to numeric-for
New net message specs:
- ``TTT_ReportStream``: UInt-16 length, BinaryString[length] data
- ``TTT_ReportStream_Part``: BinaryString[
65529] data
You can try to join full servers again
Merge branch 'master' of garrysmod
TTT: French translation (#1672)
Added missing Stalker NPC sound scripts
Footstep sound changes
Better Rubber footstep (doesn't cutoff while sprinting with loud clicks), chainlink footsteps are a bit queter now.
Funfact - soundscript volume doesn't do anything for step sounds
Stanley Parable soundscripts inclusion
We don't ship those files, but load them if they are mounted by the player.
The soundscapes file is not a mistake.
Serverbrowser improvements/fixes
Don't bother allowing players to join full servers, they just gonna get kicked.
Subtract bots from maxplayers too
Fixed a rare JS error
NPC weapons are now sorted alphabetically
Also no dupes and switched the text ot use "localized" stuff
Also fixed some localizations
SuperDOF window repositions itself on screen size change
Prevents it from "disappearing" and soft locking the game
ENT:OnChangeActivity for base_ai
Extra killicons for prop like objects
Added GM:CanArmDupe
Trim sbox_persist value
Extra spaces no longer cause issues of props not saving or loading
Clientside Sandbox settings
Also added freeze/unfreeze effects to physgun settings
Weapons that are NPCUsable are marked in spawnmenu
Added player class Death hook (#1186)
* Add a player class hook for PlayerDeath
* Add default func for death hook in player_default
Added achievement progress on right-click remove (#1375)
* Added achievement progress on right-click remove with the Remover tool
Use GetConVar() for mp_falldamage (#1616)
* GetConVarNumber deprecated
Updated to ConVar object.
* Update player.lua
* consistency fix
Make ent:GetPlayer() work after rejoins (#1529)
* Allow unsetting the founder of an entity
ie
ent:SetPlayer(nil)
* Make GetPlayer support rejoins
If a player disconnects and then rejoins generally entities want to
continue as normal.
Add PlayerCheckLimit hook (#1329)
* Add PlayerCheckLimit hook
* Call hook with limits also
* Maxcount should be after count
Also message about limit hit with hook results like regular code path
* rid of the whitespace
Co-authored-by: Python1320 <Python1320@users.noreply.github.com>
Fix up PR#1623
This happens EVERY TIME
* Call the hook after undo Owner fix
* Apply the Owner fix to undonum
* CanUndo only gets the last undo in CC_UndoLast, not the whole table
get rid of the unnecessary whitespace
Use GetText over GetValue for OnEnter
Add hook GM:CanUndo (#1623)
* Add hook CanUndo
Return false to prevent undo
* Fix behaviour when CanUndo returns nil
Unrestrict thin ropes. (#1043)
* Unrestrict thin ropes.
* Use math.min
* clamp to 0.2, that's plenty thin
Co-authored-by: Rubat <robotboy655@facepunchstudios.com>
dtextentry: pass the current value through OnEnter (#1576)
idk why this wasn't a thing before
Co-authored-by: Nathan S <nsinvisblemarions@gmail.com>
Add phys_pushscale to fist force (#1289)
Mass resize/re-render in spawnmenu
Delete physics of Toolgun ghosts
Disable "drive" option for jeeps
Replacement HTML for gui.OpenURL w/out Steam Overlay
Fixed Overlay and Motion Blur not working with "poster" well
Fixed 1px gap with certain settings of Toy Town effect
Typo fix (#1681)
It's "requested" not "requrested".
Fixed cvars.AddChangeCallback identifiers not being unique (#1679)
TTT: fix comment regarding ironsight accuracy bonus (#1675)
Create ping categories to reduce impact of miniscule ping differences (#1671)
* Create ping categories
0~60 -> 40, 60~100-> 50, ~100-150 -> 100, ~150-200 -> 150, etc.
* Update control.Servers.js
Server browser improvements & fixes
Fixed gamemode search only searching the "folder name" of the gamemode
Moved certain code to the file it belongs in
Anonymous servers get ranking penalty and their players do not count towards gamemode's ranking
Right clicking or mwheel clicking a server copies its IP & SteamID
Read only stuff for Props tab
Increased "Save Changes" button width for localization
Fixed gmod_hands sometimes floating near map origin
Not a perfect fix but at least they don't float no more
ENT:StoreOutput works for 2015+ Source maps
(Hopefully) More self explanatory persistence text
Apparently a lot of people doesn't know how this works or that it exists
CollapsibleCategory header has a symbol when collapsed
so people know its collapsed and not just empty
Duplicator lib is less prone to fail when getting errors
Encountering errors while pasting constraints should no longer stop mid pasting and create "un-undo-able" duplications
Fixed a crash exploint using NoCollide tool
Merged from x64 branch, apparently the fix was there for a while
Increased Notifications font for localized text
It was actually unreadable in Russian before
Fixed certain Utilities panels breaking with spawnmenu_reload
Fixed Undo & Cleanup panels in Utilities becoming blank after spawnmenu_reload
controlpanel.Get will no longer return panels that are about to be deleted (in the next frame)
Added utf8.sub and utf8.idx (#1400)
* Added utf8.sub and utf8.idx
* Fixed utf8 error
3rd argument to sub is now optional like regular string.sub
* Renamed utf8.idx to utf8.GetChar
Added SetTooltipPanelOverride
Toolmenu filters expand categories
Constraint lib minor fixes & improvements
Updates "constraints" var on the constraint system when it matters
Fixed constraint.Pulley comparing one of its arguments to a global
Fixed constraint.Hydraulic's 4th retval always being nil
Removed reduntant usage of GetTable()
Rid of some unused locals
Add effects.GetList (#1527)
Solves garrysmod-requests/issues/1209. Pretty much a copy of [weapons.GetList](garrysmod/blob/394ae745df8f8f353ea33c8780f012fc000f4f56/garrysmod/lua/includes/modules/weapons.lua#L169-L177).
Ammo lib update (#1487)
* Bad tbl.name no longer silently fails
* Made ammo names case-insensitive.
notification.AddProgress upgrades
notification.AddProgress now has an optional 3rd argument - fraction - 0 to 1 value overriding the progress bar animation to show a desired value
Adjusted visuals for notification.AddProgress & made them truly infinite
Added a 3rd argument to search.GetResults (optional)
Create OptionsSubVoice.res
sbox_search_maxresults & other search improvements
Added sbox_search_maxresults
Spawnmenu search prop indexer now uses notification.AddProgress over the old blue progress bar
".mdl" part of models paths is no longer being searched
Having your spawnmenu closed during search will automatically update search results next time you open it
TTT: additional language fixes (#1653)
Co-authored-by: Perkzitos <30274161+Perkzitos@users.noreply.github.com>
Co-authored-by: svdm <svdm@users.noreply.github.com>
TTT: add Italian translation (#1652)
TTT: fixes to Chinese and Portuguese (#1650)
FOF spawnpoint ents
FOF maps category
Read only ContentHeader no longer editable
Use correct rendermode/groups and use actual enums
Spawnmenu UI improvements
Translated right click menus for Tools in spawnlists & multiselection right click menu (Community)
Tool search in spawnlists now works with localization
Spawnicons and spawnlist tools now obey read only parents (such as spawnlist Search)
Post Processing icons can now be deleted from spawnlists
TTT: fix "select language" translation inconsistencies (#1649)
Replace Delete with #spawnmenu.menu.delete (#1646)
gmod_language for loading screen
Fix GetEyeTraceNoCursor caching (#1645)
* Fix GetEyeTraceNoCursor caching
Fixes garrysmod-issues/issues/4430.
Also
- Use FrameNumber instead of CurTime for caching so that it doesn't clash with prediction
- Added skipcache arg to both GetEyeTrace and GetEyeTraceNoCursor for skipping the clientside cache
- Check if the PlayerTrace/PlayerAimTrace vars are tables before returning them in-case they're modified by other addons accidentally
* Fix styling
* Remove skipcache arg
TTT: Fix GetEyeTrace override (#1647)
- Only do caching clientside so that it allows lag compensation to retrace
- Use FrameNumber instead of CurTime so that it doesn't clash with prediction
- Default to MASK_SOLID as the trace does internally, so that traces that explicitly specify MASK_SOLID can use the cached results of traces with no explicit mask
TTT: Remove unnecessary GetWeapons and HasWeapon overrides (#1648)
Main menu fixes/changes
Main menu no longer errors if we failed to load API manifest or its fields changed
Blacklisted servers display why they were blacklisted in console