862 Commits over 2,830 Days - 0.01cph!
Undo MAX_EDICT_BITS hack (#2257)
It is already a global value in the game, so it doesn't make sense
Fixed a regression in TTT voice chat team colors
Fixes garrysmod-issues/issues/6246
Blame garrysmod/pull/2229
Spawn/ContentIcon.Copy copies the tooltip as well
For when drag'n'drop copying icons, since copying does not use the same codepath as generating the initial icon
TTT: Update Turkish L10n (Crosshair Settings) (#2249)
* TTT: Update Turkish L10n
* TTT: Update Turkish L10n
Removed loan word
Shortened text so it can be seen easily in the gui
Better formal expressions
* TTT: Update Turkish L10n (Crosshair Settings)
TTT: Russian localization update (#2250)
* TTT: Russian localization update
- Localized strings that were added/updated in: garrysmod/pull/2235
* Update russian.lua
Fix accidental global (#2251)
TTT: Add crosshair customisation (#2235)
[TTT] Fixed health station having one more health than intended (#2244)
* [TTT] Fixed health station having one more health than intended
Also cleaned up OnTakeDamage function slightly
* Another minor cleanup in OnTakeDamage
Fixed killfeed names regression
Localize Balloon and Dynamite world tool tips
Idea from garrysmod/pull/2166
Drag'n'drop right click menu icons
Handle NPC squads overflowing when spawning a lot of them
Unify spawnmenu rightclick code & add GM:SpawnmenuIconMenuOpen
Idea from garrysmod/pull/2142 but better implementation
Fix team.GetColor() retuning non copy default color (#2243)
Minor cleanup
env_skypaint FGD inputs
Also added Entity:SetNetworkVarsFromMapInput
TTT: Fix Spelling (#2242)
* ironsight to iron sight
* Minor Fixes In Turkish
Return nil on file.Read not found as opposed to no value (as wiki suggests) (#2241)
https://wiki.facepunch.com/gmod/file.Read suggests that the return data should be `The data from the file as a string, or nil if the file isn't found.`
print(type(file.Read("a.txt", "DATA")))
> no value
This results in unexpected behaviour, for example trying to tonumber the results of file.Read will error, while this function can normally handle nil values - it cant handle no values.
print(file.Read("a.txt", "DATA")) -- nil
print(file.Read("a.txt", "DATA")==nil) -- true
tonumber(nil) -- no error , returns nil
tonumber(file.Read("a.txt", "DATA")) -- bad argument #1 to 'tonumber' (value expected)
Port original ear ringing behavior from HL2 to Lua
Better default text color for game_text
Update base_npcs.lua
Remvoed `weapon_shotgun` as default weapon for medic rebels, to give them some identity, add RPG to enemy rebels
Unify tooltip code for spawnmenu content icons
Prevents extra new line for cases where no extra info is actually added.
Mark the RPG Launcher as a Default Weapon for rebels (#2233)
2 fixes for NPC icons + ENT.Information support (#2238)
Make PLAYER:LimitHit server only (#2240)
This feature never worked on the client anyway and never will
Better error handling for reworked kill feed
Fixes garrysmod-issues/issues/6221
Update cl_voice.lua (Formatting)
Updated localization files
New map categories
Loading screen changes for singleplayer games
Remove DOFModeHack from bokehDOF
Fixed scrollbars not updating grip position when resized
Fixed DTextEntry autocomplete not inheriting derma skin
Fix taken from DComboBox
DDrawer uses icons instead of `::` text
Minor cleanups
Deprecated stuff, linter stuff
Spawnmenu DDrawer adjustments
Spawnmenu categories are no longer being hidden by expanded DDrawer
Made the disabled spawnlist editor overlay more closely match the shape of the underlying content
Move "Enemy Citizen" NPC to combine category, add info
ContentIcon text scrolling
Localize "Author: " text in ContentIcon tooltips
Allow NPCs to set Author field, and set it for default NPCs
Cleaner server list layout code & Better display on small screens (#2210)
* Server listings to use a cleaner layout method
and improved on very small screens
* Add ability to toggle server info, make use of space
* Merge garrysmod/commit/46a71ac65a9cacf4c69b1b779820c0e8da7fc73d
Merge "remove unused dependencies" garrysmod/commit/46a71ac65a9cacf4c69b1b779820c0e8da7fc73d
* Improve text alignment
* Close button tweak
* Fix merge
* reposition close button, make it not cover server name
---------
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
TTT: Let TTTLastWordsMsg hook override default behaviour (#2227)
- Return true from the hook to disable default behaviour
- Adds the original chat text as a parameter
TTT: Fix players being revealed as dead if they chat/voicechat at the exact moment of death (#2229)
New Localisation Phrases (#2207)
* Additional terms
* Remove mine/my
* add network terms
Added Reconnect, Offline, and Online.
Did not add as they already exist: Disconnect and Connect
Fix DButton:SetConsoleCommand() not accepting vararg (#2223)
Makes variable arguments in DForm:Button() function properly.
Update AngularJS from 1.1.2 to 1.8.2 (#2190)
* Update AngularJS, fix files
* Prevent middle-click links breaking menu
* Revert "Prevent middle-click links breaking menu"
This reverts commit 58db1674d3d4b990a227cd5739c4f436c70c62b7.
* Merge garrysmod/commit/46a71ac65a9cacf4c69b1b779820c0e8da7fc73d
Merge "remove unused dependencies" garrysmod/commit/46a71ac65a9cacf4c69b1b779820c0e8da7fc73d
* Clean up ng-click hyperlink handling
* Update menuApp.js (Formatting)
* Update spawnmenu panels to use 1.8.2
* Delete common.js
---------
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
[TTT] Fixed typo in scoreboard voice panel hide logic (#2226)
TTT: Close player volume slider along with scoreboard (#2221)
* Close player volume slider along with scoreboard
* Re-use HideVolume function
* tie volume panel to player row
Co-Authored-By: Malivil <Malivil@users.noreply.github.com>
* Fix everything
* Fixes Lua errors when a target player dies/respawns with a voice slider open (causing the row to be re-created), and then trying to modify the volume
* Fixes players dying/respawning while the voice panel is open not closing the associated voice panel when the scoreboard closes
* Close all other voice slider panels when opening a new one. There isn't a good reason to allow multiple panels to exist at the same time for different players
* This also prevents opening a voice slider for the same player multiple times, which again, there's no point in allowing this.
---------
Co-authored-by: Malivil <Malivil@users.noreply.github.com>
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
TTT: add ttt_filter_role entity (#2225)
- Added ttt_filter_role as a proper filter entity for roles, as an alternative to ttt_logic_role
- Updated ttt_traitorcheck.vmf with an example
TTT: Fix pistols using revolver reload gesture (#2220)
Remove angular-ui, jquery-ui, jquery-color (#2219)
Refactor sandbox hints (#2218)
* Clean up comments
* Stop using deprecated `GetConVarNumber`
* Use string.gsub's function mode for binding lookups
```
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
> text = "foo %+one% bar %+two% baz %+three%"
> function replacer(res)
print("replacer!", res)
return string.upper(res)
end
> print(string.gsub(text, "%%([^%%]+)%%", replacer))
replacer! +one
replacer! +two
replacer! +three
foo +ONE bar +TWO baz +THREE 3
```
* Formatting
* Update cl_hints.lua
---------
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
Micro-optimize Workshop Mount VGUI (#2209)
* Micro-optimize workshop mount vgui
- Remove redundant calls
- Cache colors outside of Paint function
* Micro-optimize workshop rocket vgui
- Remove redundant calls
- Remove unused Blast method
- Localize to reduce __index calls in Paint method
* Remove redundant __index call
TTT: Update Turkish L10n (#2217)
* TTT: Update Turkish L10n
* TTT: Update Turkish L10n
Removed loan word
Shortened text so it can be seen easily in the gui
Better formal expressions
Remove # in tool name (#2213)
TTT: clarify Health Station usage hint text (#2215)
Changed "Press" in L.hstation_hint to hold
Fix CS:S not mounted warning (#2204)
Remove weapon_cubemap localizations
It's an internal weapon that never appears in anywhere user accessible.
New bloom preset
Do not include notifications library in menu state
Case insensitive lua_run code keyvalue
Fixed Lua errors with drive library on Camera entity from Sandbox
Fixed hoverball toggle button not functioning
Undo system localizations
Improve handling of localized spawnmenu categories
Preserves alphabetical ordering
Added "hostile" option to npc_citizen
Updated MdlPicker layout in engine tools (Hammer)
TTT: Fix C4/Radio sounds not playing outside of PAS (#2203)
Replace use of `sound.Play` for C4 sounds, because it relies on `CPASAttenuationFilter` internally which means players not in the same PAS as the C4 could not hear the sounds, even if in close proximity. The attenuation aspect of the filter has been reimplemented in Lua, so that we retain the functionality of only clients within audible range receiving the sound.
TTT: Magneto-stick code cleanup (#2200)
Further expand on Entity:SetCreator calls in Sandbox
SetCreator for NPCs (#2197)
Remove math.IsNearlyZero
Remove useless panels from Game tab in Options
Remove redundant argument from CPanel:NumSlider calls