778 Commits over 2,740 Days - 0.01cph!
Reflect changes to engine.WriteSave
Remove useless arguments in spawnmenu/contextmenu internals
DAdjustableModelPanel "fix" for when main menu is open
Player Model Selector button in spawn menu
Update net.lua
Revert PR#2089
Causes regressions with spawnmenu help text and other issues
Optimize DListView_Line
Adjust DButton's text inset when an icon is present
8 px is consistent 4px on each side of the icon
Fixed Lua error in DTree_Node
Fixed Lua SWEPs not using the correct localization strings
Also removed some useless localization tokens from garrysmod_english.txt
Cache result of gmod.GetGamemode() in hook.Run (#2075)
* don't call a C function in hook.Run
* cache gmod.GetGamemode() instead of using GAMEMODE/GM
suggestion by @Astralcircle
* removed unused declaration
Cache result of gmod.GetGamemode() in gamemode.Call (#2157)
* Cache result of gmod.GetGamemode() in gamemode.Call
* Missing empty line
* Formatting
Optimize DLabel autostretch behavior (#2089)
Adds Entity:AddSpawnFlags, Entity:RemoveSpawnFlags and Entity:SetSpawnFlags (#2138)
Localization Support For Crosshair Setup (#2148)
* Localization For Crosshair Setup
* Lowercase
fixed a typo in hudanimations.txt (#2160)
Update base.fgd
Fixed Grenade weapon trying to emit NULL sounds
Do not set `commentary` on map load
Bump max_constraints default
Force Sandbox tool names lowercase
Portal 2 coop spawnpoints
Rollermine variants
Remove code to set NPC names from spawnmenu for the killfeed
Too error prone unfortunately
Fix regression with PR #2143
Optimize spawnmenu SWEP autorefresh stuff
Fixed loading screen month checking
Do not IsValid input in hook.Add
NULL entity is still an entity, and it used to work.
IsMounted hack to do with Half-Life 2 20th anniversary
TTT: Russian localization update
- Fixed some typos.
- Updated some wrongly localized strings.
Initially, some of the changes were from here: garrysmod/pull/2156 (thanks to @Blueberryy )
Merge pull request #2162 from Satton2/patch-1
TTT: Russian localization update
Improve performance of ```team``` library (#2144)
* Improve performance of ```team``` library
Improves many functions of this library, especially GetColor
* Compliance with requirements
* Remove nil check
* Useless check
self:GetTable() => meta.GetTable( self ) (#2154)
Fix "Bad SetLocalOrigin(x,y,z) on gmod_hands" warnings (#2143)
* Fix Bad SetLocalOrigin hands warnings
* Update formatting
Fixed a typo in a comment in net.lua (#2146)
Update decals_subrect.txt
New version from HL2, adds 2 new decals from Portal 1
Update serverevents.res
`player_say` includes `teamonly` field.
TTT: check data_static for rearm scripts for use in workshop addons (#2139)
Workshop addons can only include data files via data_static, which includes rearm scripts. TTT now checks data_static if no rearm script is present in the maps directory.
Remove `weapon_hl2mp_base` from properties
Pointless string
Updated FGD files
Minor cleanups
nav_blocked event
Last Played iteration in server browser
Server browser: Added last played date display
Addon Preset search box
360 controller configs have more reasonable binds
Move gmod specific language strings from gameui_english
To garrysmod_english
Localization string for main menu blocked message
Minor changes
Fixed Lua errors when duplication limits are hit
Change how custom spawnpoints are added to GMod
So its not 27 duplicated .lua files
Fortress Forever + NeoTokyo support: Info_ff_teamspawn (#2044)
* Fortress Forever spawnpoint
* Added info_ff_teamspawn to player.lua
* Update getmaps.lua
I almost forgot the getmaps thing for Fortress Forever.
* Create info_player_attacker.lua
NeoTokyo Attacker spawnpoint
* NeoTokyo defender spawnpoint
See prior commit
* NEOTOKYO spawnpoints, too!
* Update player.lua
* Update player.lua
---------
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
Reduced bits used by net.Read/WritePlayer based on maxplayers (#2078)
* reduced bits used by net.Read/WritePlayer based on maxplayers
* Update net.lua
update german translation (#2132)
Check for "icon" to be "ContentIcon" before reading its spawnname (#2137)
TTT: fix ragdoll not being created if ttt_dyingshot is on (#2135)
Fix assumption of DoPlayerDeath running twice on DyingShot, instead run fully once and prevent future triggers.
Localization Support for Options (#2129)
* Localization Support for Options - Legal
* Add files via upload
Make esc block blue + informational instead of a yellow error (#2131)
Fixed using wrong translation string in previous commits
Localization for NPC and Vehicle tabs
Closes garrysmod/pull/2122
Co-Authored-By: Tora <49911006+NovaDiablox@users.noreply.github.com>
Added Resistance Turret to spawnmenu
Tooltips for Vehicles tab in spawnmenu
Lack of these was hiding why the "Car Seat 1 2 3" existed from the players.
Use localized entity names for bouncy ball, sandbox editor entities
Removed unused variables in Problems panels
Removed duplicates in localization files
Fixed missing wooden ladder footsteps
Jalopy wheel size change for new model
So the visuals match with the physics better
Remove arguments overloading in surface.SetDrawColor (#2125)
* Remove arguments overload
* Code styling
TTT: Updated Turkish Localization (#2127)
* TTT: Quickchat Fix in Turkish
* Update turkish.lua
* Update turkish.lua
* Updated Turkish Properties
Localization Support for key bindings. (#2126)
Create .editorconfig
Lets try and see if this does anything useful
Localization Support For In Game Weapons & Items (#2114)
* test
* Add Properties File
* Trying to figure out what's wrong
* Update game_hl2.lua
* ...
* Finally I got it right
* Localization Support: game_hl2.lua
* Update game_hl2.lua
lua/includes/extensions/table.lua:87: bad argument #1 to 'pairs' (table expected, got number)
1. pairs - [C]:-1
2. Merge - lua/includes/extensions/table.lua:87
3. ADD_ITEM - lua/autorun/game_hl2.lua:7
4. unknown - lua/autorun/game_hl2.lua:21
* Update game_hl2.lua
* Update game_hl2.lua
* Slowy fixing #
* ...
* Update game_hl2.lua
* Fix HL Source Category
* Add Back Phsygun
* Add HL: Source Ammo
* Update game_hl2.lua
* Fix Space
* Portal Core Ents
* Portal Cores
* Rework how translations are applied
Also no unnecessary changes to order and stuff
* Update and rename engine_entities.properties to entities.properties
---------
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
Implemented DTree:GetText
Minor cleanups for Sandbox world hints rendering
Consistent return types from Sandbox tool Make* functions
Constraint library clean ups
Nocollide undo fix for Sandbox
SWEPs autorefresh for spawnmenu
garrysmod-requests/issues/2475
Minor cleanups
Minor improvements (#2120)
Update spanish.lua in the terrortown gamemode (#2118)
Fixed attempt to index global 'sam' (a nil value) (#2121)
Improve SortedPairs even more (#2032)
* Improve SortedPairs even more
pr #2015 is good, but we can make it much better.
improvments:
table.insert( tbl, val ) > tbl[ #tbl + 1 ] = val
next( keys, i ) > keys [ i ]
benchmarks:
brandonsturgeon's version is 10.57% better then default.
my version is 35.87% better then default
or 28.29% better then brandonsturgeon's.
bench src: https://gist.github.com/Be1zebub/4b90791fc7ab2d89a18c7a93da143095
* Update table.lua
not very significant, but why not
+ 2-5% more perf (compared to the improved version)
Allow for properties to be removed (#2113)
* Allow for properties to be removed
* Added validation checks
TTT: Update Turkish (#2112)
* Update turkish.lua
I can't believe I missed this one
* Plural to Singular
Plural to Singular to mimic CS2's translation.
Add a search bar to sequences and make them sort properly. (#2101)
* Add a search bar to sequences and make them sort properly.
* Update iconeditor.lua
* Update iconeditor.lua
* Update iconeditor.lua
* Update iconeditor.lua
* Update localized string for the search bar placeholder
---------
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
Delete constraints.lua
Unused file
Make game mount list wider (Adjustments for #2110)
Fixed Sandbox Tool Lua errors from engine saves
Would happen if the save was made with tools that are no longer available when the save is loaded
Show the unbound command in hints, if a command doesn't have a key bound
Based on the idea of garrysmod/pull/1962
Fixed halo rendering on certain models making the screen black.
garrysmod-issues/issues/6000
Improvements to MatSelect panel
Improvements to PropSelect panel (to match MatSelect)
Added sbox_max(rope)constraints
TTT: fix and optimize traitor button rendering (#2111)
- Prevent the highlighted button from redrawing for every button iterated through afterwards
- Don't draw an unhighlighted button if that button is highlighted
- Reset button texture after drawing a highlighted button so that other buttons don't appear highlighted
- Fix param translation text causing forced additive rendering
util.IntervalTimer (#2086)
* Update util.lua
- Added new function util.IntervalTimer, this is an IntervalTimer as found in the source SDK
* Update util.lua
* Update util.lua
- Merged util.IntervalTimer with util.Timer
* Update util.lua
- Undo a change made to the util.Timer Started function
* Update util.lua
- Remove IsLessThan and IsGreaterThan functions from the util.Timer metatable
* Update util.lua
- Add missing comma
* Update util.lua
- Changed the return value of GetElaspedTime to -1.0 if the timer hasn't been started
- Changed the util.Timer function to call the Start function upon creation
* GetElaspedTime returns correct time after timer stops
---------
Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
Show Icons for Mountable Games (#2110)
TTT: Add SAM support to karma banning (#2106)
DNumSlidier: Setting min or max value updates slider pos
Merge some math lib optimizations from #1477
Closes #1477
Co-Authored-By: code_gs <collings509@gmail.com>
Use `m_pitch` and `m_yaw` for looking around in the taunt camera (#2108)