TTT: Changes in ukrainian.lua #2252
Merged
robotboy655 merged 1 commit intoFacepunch:masterfrom Mar 31, 2025
Merged
Conversation
Update + Corrections + Alignment of lines
dennisstewart
added a commit
to dennisstewart/nickcagematch-ttt
that referenced
this pull request
Apr 10, 2025
* Warning about bypassing blocked main menu * Minor cleanup * Update surfaceproperties.txt These values are not used, idk how they even got here * Fixed copy paste error in edit_sky * Replace debug.getregistry usage with RegisterMetaTable (Facepunch#2097) * Typo In Motor Tool (Facepunch#2102) Fixes Facepunch/garrysmod-issues#5976 * Use math.tau in some places instead of 2π (Facepunch#2104) * TTT: Fix Swedish chef language borking setting (Facepunch#2099) * Map Pool for G String (Facepunch#2105) * Error handle bad spawnlist files better * Minor cleanups * Fixed commits.facepunch.com link * Use `m_pitch` and `m_yaw` for looking around in the taunt camera (Facepunch#2108) * DNumSlidier: Setting min or max value updates slider pos * Merge some math lib optimizations from Facepunch#1477 Closes Facepunch#1477 Co-Authored-By: code_gs <collings509@gmail.com> * TTT: Add SAM support to karma banning (Facepunch#2106) * Show Icons for Mountable Games (Facepunch#2110) * util.IntervalTimer (Facepunch#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> * TTT: fix and optimize traitor button rendering (Facepunch#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 * Delete constraints.lua Unused file * Make game mount list wider (Adjustments for Facepunch#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 Facepunch#1962 * Fixed halo rendering on certain models making the screen black. Facepunch/garrysmod-issues#6000 * Improvements to MatSelect panel * Improvements to PropSelect panel (to match MatSelect) * Added sbox_max(rope)constraints * Add a search bar to sequences and make them sort properly. (Facepunch#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> * TTT: Update Turkish (Facepunch#2112) * Update turkish.lua I can't believe I missed this one * Plural to Singular Plural to Singular to mimic CS2's translation. * Allow for properties to be removed (Facepunch#2113) * Allow for properties to be removed * Added validation checks * Improve SortedPairs even more (Facepunch#2032) * Improve SortedPairs even more pr Facepunch#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) * Fixed attempt to index global 'sam' (a nil value) (Facepunch#2121) * Update spanish.lua in the terrortown gamemode (Facepunch#2118) * Minor improvements (Facepunch#2120) * 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 Facepunch/garrysmod-requests#2475 * Minor cleanups * Localization Support For In Game Weapons & Items (Facepunch#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> * Create .editorconfig Lets try and see if this does anything useful * Localization Support for key bindings. (Facepunch#2126) * TTT: Updated Turkish Localization (Facepunch#2127) * TTT: Quickchat Fix in Turkish * Update turkish.lua * Update turkish.lua * Updated Turkish Properties * Remove arguments overloading in surface.SetDrawColor (Facepunch#2125) * Remove arguments overload * Code styling * 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 * Localization for NPC and Vehicle tabs Closes Facepunch#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. * Fixed using wrong translation string in previous commits * Make esc block blue + informational instead of a yellow error (Facepunch#2131) * Localization Support for Options (Facepunch#2129) * Localization Support for Options - Legal * Add files via upload * TTT: fix ragdoll not being created if ttt_dyingshot is on (Facepunch#2135) Fix assumption of DoPlayerDeath running twice on DyingShot, instead run fully once and prevent future triggers. * Check for "icon" to be "ContentIcon" before reading its spawnname (Facepunch#2137) * update german translation (Facepunch#2132) * Reduced bits used by net.Read/WritePlayer based on maxplayers (Facepunch#2078) * reduced bits used by net.Read/WritePlayer based on maxplayers * Update net.lua * Fortress Forever + NeoTokyo support: Info_ff_teamspawn (Facepunch#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> * 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 * Updated FGD files * Minor cleanups * nav_blocked event * Last Played iteration in server browser * Remove `weapon_hl2mp_base` from properties Pointless string * TTT: check data_static for rearm scripts for use in workshop addons (Facepunch#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. * Update decals_subrect.txt New version from HL2, adds 2 new decals from Portal 1 * Update serverevents.res `player_say` includes `teamonly` field. * Fixed a typo in a comment in net.lua (Facepunch#2146) * Fix "Bad SetLocalOrigin(x,y,z) on gmod_hands" warnings (Facepunch#2143) * Fix Bad SetLocalOrigin hands warnings * Update formatting * self:GetTable() => meta.GetTable( self ) (Facepunch#2154) * Improve performance of ```team``` library (Facepunch#2144) * Improve performance of ```team``` library Improves many functions of this library, especially GetColor * Compliance with requirements * Remove nil check * Useless check * TTT: Russian localization update - Fixed some typos. - Updated some wrongly localized strings. Initially, some of the changes were from here: Facepunch#2156 (thanks to @Blueberryy ) * 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 Facepunch#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 * fixed a typo in hudanimations.txt (Facepunch#2160) * Localization Support For Crosshair Setup (Facepunch#2148) * Localization For Crosshair Setup * Lowercase * Adds Entity:AddSpawnFlags, Entity:RemoveSpawnFlags and Entity:SetSpawnFlags (Facepunch#2138) * Optimize DLabel autostretch behavior (Facepunch#2089) * Cache result of gmod.GetGamemode() in gamemode.Call (Facepunch#2157) * Cache result of gmod.GetGamemode() in gamemode.Call * Missing empty line * Formatting * Cache result of gmod.GetGamemode() in hook.Run (Facepunch#2075) * don't call a C function in hook.Run * cache gmod.GetGamemode() instead of using GAMEMODE/GM suggestion by @Astralcircle * removed unused declaration * 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 * 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 * 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 * Fix indentation of the gamemode list items (Facepunch#2179) * Improve file.Write function to return success status (Facepunch#2178) * Improve file.Write function to return success status * Update file.Append to return success status * Update .fgd files * Fix NPCs in spawnmenu search not having their weapons set * Color:SetUnpacked type checking * Improve stack traces for existing error() calls * Remove NULLs from Entity.Constraints * Added debug.getregistry & IMaterial:GetColor implementations * Update garrysmod_english.txt * Added Missing Strings (Facepunch#2153) * Missing Strings * Added Missing Strings (Properties) * Deleted Unused String "Creations" * Update weapons.lua * Update getmaps.lua * Update game_hl2.lua * Update postprocess.lua * Update main_menu.properties * Update spawnmenu.properties * Revert Back Changes * Revert Back Changes * Update sent_ball.lua * Update spawnmenu.properties * #ent.editors * #ent.editors * #ent.editors * Added more missing strings (#1) * Update spawnmenu.properties * Update entities.properties * Update base_vehicles.lua * Update base_npcs.lua * Update spawnmenu.properties * Update npc_tf2_ghost.lua * Update cl_init.lua * Update custom.lua * Update getmaps.lua * Update entities.lua * Update npcs.lua * Update postprocess.lua * Update vehicles.lua * Update weapons.lua * Update edit_sun.lua * Update edit_sky.lua * Update edit_fog.lua * Update game_hl2.lua * Update sent_ball.lua * Update weapons.lua * Update entities.lua * Update npcs.lua * Update vehicles.lua * Update postprocess.lua * Update weapons.lua * Update spawnmenu.properties * Localization: added more missing strings (#2) * Localization: added more missing strings * Localization: added more missing strings * Localization: added more missing strings * Localization: added more missing strings * Updating base.fgd to match base branch * Update gmod_hands.lua * Update gmod_player_start.lua * Update npc.lua * Update player.lua * Update stool.lua * Update weapons.lua * Update sandbox.txt * Update russian.lua * Update control.NewGame.js * Update loading.html * Update base_npcs.lua * Update hook.lua * Update util.lua * Update entities.properties * Update weapon_frag.txt * "C" to " "%+menu_context%" * Revert Back Last Change Will try to implement it. * npc_gmod_nextbot_example → npc_tf2_ghost (#3) * npc_gmod_nextbot_example → npc_tf2_ghost * npc_gmod_nextbot_example → npc_tf2_ghost * crosshair loc commit * typo commit * Update crosshair_setup.lua * Update entity.lua * Update npc.lua I don't even know how this ended up here. * Update base_npcs.lua * Update game_hl2.lua * spawnmenu.category.chairs * Update spawnmenu.properties * spawnmenu.category.fun_games * spawnmenu.category.other * texturize_pp.* * texturize_pp.* in texturize.lua * British Now * New category * spawnmenu.category.other * Update postprocess.lua spawnmenu.category.other * Update vehicles.lua spawnmenu.category.other * Update edit_sun.lua spawnmenu.category.editors * Update edit_fog.lua spawnmenu.category.editors * Update edit_sky.lua spawnmenu.category.editors * Update entities.lua spawnmenu.category.other * Update getmaps.lua Favourites * Update entities.properties * Update npc_tf2_ghost.lua * Update getmaps.lua * npc_tf2_ghost again * Update entities.properties npc_tf2_ghost * Move NextBot to Other Category * Localization: updated some strings (#4) * Localization: updated some strings * Localization: updated some strings * weapon_frag.txt how is this a change hmm * Update getmaps.lua * Update main_menu.properties * Update weapon_frag.txt * Remove useless changes & move stuff to correct places * Restore unnecessary deletion * Fix final issue --------- Co-authored-by: Aram <dragolino6@mail.ru> Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Use a local variable in gmod_tool (Facepunch#2188) * Add tool copying (Facepunch#2186) * Rounding out the news panel (Facepunch#2185) * Use `render.PushRenderTarget` and `render.PopRenderTarget` instead (Facepunch#2180) * Improve skypaint matproxy performance (Facepunch#2107) * Updated deprecated CPanel calls (Facepunch#2184) * Made NumSlider automatically pick the convar value. * Added PropSelect method to controlpanel. * Replaced "AddControl" with non-deprecated code. * Added dedicated method to select rope material. * Various fixes to suggestions * Minor changes * Minor clean ups * Fix Balloon tool having broken model selector * More cleanups * Added ControlPanel:ComboBoxMulti --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Updated FGD files * Remove redundant category from npc_tf2_ghost * Minor cleanups * Fixed Entity.DoNotDuplicate not affecting saves properly * Do not save singleplayer tool ghost in saves * Restore CameraProp's keybinds on level transition This really needs to be done for all tool entities * remove server is full rating penalty (Facepunch#1697) Since servers just abuse this and find ways to make it not matter, should just remove it. * Optimize ```ents.FindByClassAndParent``` (Facepunch#2167) Optimizes this function by about 25% * Minor cleanups * Frontend Speedup (Facepunch#2183) * Update jQuery to the latest version * Optimize images by adding lazy loading * Remove unnecessary jQuery calls * Speed up the loading of the mainmenu * Optimize loading screen: use DOMContentLoaded and defer jQuery * Replace jQuery to JavaScript * Fix the screen resolution glitch when game start up * Fix the code style to the current code base * Returning the js script binding to the head block * Remove unnecessary changes --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Add math.IsNearlyZero() and math.IsNearlyEqual() (Facepunch#2172) * Add math.IsNearlyZero() and math.IsNearlyEqual(). * Rename `smallNumber` to `epsilon` * Use 1e-8 for epsilon instead of max.exp(-8) * Fix comments to match function arguments * Remove epsilon variable, code style fixes. * Don't draw effect rings w/gravgun (Facepunch#2083) * Color manipulation methods (Facepunch#2136) * Update color.lua Add color manipulation functions with HSV, HSL, HSB, HWB. Add HWB support. * Update color.lua fix style, rm :SetValue alias, add HSLToColor & HSVToColor lua implementation (100500x faster than C) * Fixed some issues + formatting Moved stuff around to be more logically placed, made changes to HSVToColor and HSLToColor to more closely match the C++ version's returns * fixed mod issue 255 % 255 == 0 we cant use mod here --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Improve game styles (Facepunch#2192) * Improved Server List * Improved NavBar * Improved NewGame * Improved Workshop * Undo style changes * Actually make the margins equal for Start Game --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Updated deprecated CPanel calls (Continuation & Conclusion) (Facepunch#2194) * Updated the rest of deprecated AddControl. * Removed SetDefaultValue from AddControl * Used ToolPreset for the Post Processing UI * minor changes Remove unnecessary parameter from Panel:NumSlider Undo unnecessary changes --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Remove math.IsNearlyZero * Remove useless panels from Game tab in Options * Remove redundant argument from CPanel:NumSlider calls * SetCreator for NPCs (Facepunch#2197) * Further expand on Entity:SetCreator calls in Sandbox * TTT: Magneto-stick code cleanup (Facepunch#2200) * TTT: Fix C4/Radio sounds not playing outside of PAS (Facepunch#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. * 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) * Remove weapon_cubemap localizations It's an internal weapon that never appears in anywhere user accessible. * Fix CS:S not mounted warning (Facepunch#2204) * TTT: Change holdtypes for consistency with viewmodels (Facepunch#2212) Update to two-handed version for the pistol, deagle, flaregun, glock, and silenced pistol. * TTT: clarify Health Station usage hint text (Facepunch#2215) Changed "Press" in L.hstation_hint to hold * Remove # in tool name (Facepunch#2213) * TTT: Update Turkish L10n (Facepunch#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 * Micro-optimize Workshop Mount VGUI (Facepunch#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 * Update russian.lua * Refactor sandbox hints (Facepunch#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> * Remove angular-ui, jquery-ui, jquery-color (Facepunch#2219) * TTT: Fix pistols using revolver reload gesture (Facepunch#2220) * TTT: add ttt_filter_role entity (Facepunch#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: Close player volume slider along with scoreboard (Facepunch#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] Fixed typo in scoreboard voice panel hide logic (Facepunch#2226) * Update AngularJS from 1.1.2 to 1.8.2 (Facepunch#2190) * Update AngularJS, fix files * Prevent middle-click links breaking menu * Revert "Prevent middle-click links breaking menu" This reverts commit 58db167. * Merge Facepunch@46a71ac Merge "remove unused dependencies" Facepunch@46a71ac * 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> * Fix DButton:SetConsoleCommand() not accepting vararg (Facepunch#2223) Makes variable arguments in DForm:Button() function properly. * New Localisation Phrases (Facepunch#2207) * Additional terms * Remove mine/my * add network terms Added Reconnect, Offline, and Online. Did not add as they already exist: Disconnect and Connect * TTT: Fix players being revealed as dead if they chat/voicechat at the exact moment of death (Facepunch#2229) * TTT: Let TTTLastWordsMsg hook override default behaviour (Facepunch#2227) - Return true from the hook to disable default behaviour - Adds the original chat text as a parameter * Cleaner server list layout code & Better display on small screens (Facepunch#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 Facepunch@46a71ac Merge "remove unused dependencies" Facepunch@46a71ac * 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> * 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 * Updated FGD files * Update cl_voice.lua (Formatting) * Better error handling for reworked kill feed Fixes Facepunch/garrysmod-issues#6221 * Make PLAYER:LimitHit server only (Facepunch#2240) This feature never worked on the client anyway and never will * 2 fixes for NPC icons + ENT.Information support (Facepunch#2238) * Mark the RPG Launcher as a Default Weapon for rebels (Facepunch#2233) * 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. * Port original ear ringing behavior from HL2 to Lua * Better default text color for game_text * Return nil on file.Read not found as opposed to no value (as wiki suggests) (Facepunch#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) * TTT: Fix Spelling (Facepunch#2242) * ironsight to iron sight * Minor Fixes In Turkish * Minor cleanup * env_skypaint FGD inputs Also added Entity:SetNetworkVarsFromMapInput * Fix team.GetColor() retuning non copy default color (Facepunch#2243) * Minor cleanups * Localize Balloon and Dynamite world tool tips Idea from Facepunch#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 Facepunch#2142 but better implementation * Fixed killfeed names regression * [TTT] Fixed health station having one more health than intended (Facepunch#2244) * [TTT] Fixed health station having one more health than intended Also cleaned up OnTakeDamage function slightly * Another minor cleanup in OnTakeDamage * TTT: Add crosshair customisation (Facepunch#2235) * Balloon fixes * Fix accidental global (Facepunch#2251) * TTT: Russian localization update (Facepunch#2250) * TTT: Russian localization update - Localized strings that were added/updated in: Facepunch#2235 * Update russian.lua * TTT: Update Turkish L10n (Crosshair Settings) (Facepunch#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) * Update base.fgd * Fixed a regression in TTT voice chat team colors Fixes Facepunch/garrysmod-issues#6246 Blame Facepunch#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 * Undo MAX_EDICT_BITS hack (Facepunch#2257) It is already a global value in the game, so it doesn't make sense * Make `PLAYER:AddCleanup` server only (Facepunch#2258) * Updated FGD files * Localize named HL2 NPCs. * Added 2 new options to Keyboard options Fixes Facepunch/garrysmod-requests#2694 * Prevent weapon_base errors when given to NPCs Fixes https://github.com/Facepunch/garrysmod/pull/2259/files * TTT: Updated and fixed French localization (Facepunch#2254) * TTT: Updated Ukrainian localization (Facepunch#2252) Update + Corrections + Alignment of lines * [TTT] Fix incosistency for default values (Facepunch#2262) Fixes "ttt_haste_minutes_per_death" and "ttt_detective_pct" in `terrortown.txt` not following the same values as the GM's Lua files. * Localization: "Toggle" → "Toggle key" (Facepunch#2255) - Made the "Toggle Key" text be in the places it should. * Make Spawn_ functions return the spawned entity (Facepunch#2248) Functions such as `Spawn_NPC` will now return the entity it spawned. * Added trigger_teleport_relative to the FGD * Minor cleanup * Remove Color related hacks * Updated DButton In conjunction with engine changes. Implements DButton:SizeToContentsX to mimic implementation of SizeToContents Both of them calcualte text indent before setting the size, so it is consistent. Adjust text inset for center aligned text on buttons for better looks. * Proper buttons for Copy to Clipboard in Problems panel * Icons & Copy button for gui.OpenURL dialog * weapon_base sets Inflictor and Attacker More as an example, but also helps base-derived weapons to get proper DamageInfo weapon and inflictor. * TTT: updates to "New Game" settings and convars (Facepunch#2263) - Improve option labels in New Game menu and add a toggle for the karma system - Adds FCVAR_NOTIFY to various convars - Changed defaults of some convars: * If voice drain is enabled, by default it will not be applied to admins (`ttt_voice_drain_admin` = 0) * Allows Innocents to pick-up dropped Detective hats by default (`ttt_detective_hats_reclaim_any` = 1) * [TTT] fix players sometimes being revealed as dead when they chat/voicechat right as they die (again) (Facepunch#2264) * Updated weapon scripts * Update mdlpicker.res For changes to the Hammer model picker * Revamp scoreboard volume sliders to they are more obvious * Creator tool randomizes NPC weapons * Fixed DMenuOption pressed in colors being white-on-white * Fix DTextEntry autocomplete --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> Co-authored-by: aStonedPenguin <aStonedPenguin@users.noreply.github.com> Co-authored-by: Talha Berkay Akbulut <49911006+NovaDiablox@users.noreply.github.com> Co-authored-by: Astralcircle <142503363+Astralcircle@users.noreply.github.com> Co-authored-by: figardo <figardo@users.noreply.github.com> Co-authored-by: IBRS <56501720+IBRS-4Ever@users.noreply.github.com> Co-authored-by: [aka]bomb <69766525+b0mbie@users.noreply.github.com> Co-authored-by: code_gs <collings509@gmail.com> Co-authored-by: William Gaylord <chibill110@gmail.com> Co-authored-by: T-Rizzle12 <92559393+T-Rizzle12@users.noreply.github.com> Co-authored-by: Riggs <riggs9162@gmx.de> Co-authored-by: Ghost <55670478+DeveloperGhost@users.noreply.github.com> Co-authored-by: Beelzebub <34854689+Be1zebub@users.noreply.github.com> Co-authored-by: Malivil <Malivil@users.noreply.github.com> Co-authored-by: Fer <ferbg9@gmail.com> Co-authored-by: Redox <mail@redox.to> Co-authored-by: Elektronixx <37477610+Elektronixx@users.noreply.github.com> Co-authored-by: Darsu <95997959+dar-su@users.noreply.github.com> Co-authored-by: Cedricp06 <cece.pepin@gmail.com> Co-authored-by: mgetJane <104243160+mgetJane@users.noreply.github.com> Co-authored-by: BreakinBenny <fox@blaj.net> Co-authored-by: Wizard <74285801+wizard00000@users.noreply.github.com> Co-authored-by: thecraftianman <64441307+thecraftianman@users.noreply.github.com> Co-authored-by: noaccess <54954576+noaccessl@users.noreply.github.com> Co-authored-by: Aram <dragolino6@mail.ru> Co-authored-by: Stefan van der Meer <svdm@users.noreply.github.com> Co-authored-by: Shabeel <77049275+Shabeel69420@users.noreply.github.com> Co-authored-by: eon (bloodycop) <minerva.servers.eon@gmail.com> Co-authored-by: Dark Fated <49955245+darkfated@users.noreply.github.com> Co-authored-by: Srlion <srlion32@gmail.com> Co-authored-by: AnimeRem <54372355+animerem@users.noreply.github.com> Co-authored-by: Cheatoid <Cheatoid@users.noreply.github.com> Co-authored-by: ъ знака <111152233+friztailo@users.noreply.github.com> Co-authored-by: rubisetcie <rubisetcie@gmail.com> Co-authored-by: Devin Korb <meepdarknessmeep@gmail.com> Co-authored-by: Cyn <181435937+xCynDev@users.noreply.github.com> Co-authored-by: StrawWagen <64710817+StrawWagen@users.noreply.github.com> Co-authored-by: Vrej <DrVrej@users.noreply.github.com> Co-authored-by: Mavis <107206864+SvveetMavis@users.noreply.github.com> Co-authored-by: Bonyoze <59924045+Bonyoze@users.noreply.github.com> Co-authored-by: Zaurzo <101999193+Zaurzo@users.noreply.github.com> Co-authored-by: Lexi Robinson <lexi@lexi.org.uk> Co-authored-by: DarthTealc <DarthTealc@users.noreply.github.com> Co-authored-by: Kari-Jukka <j.liettya@gmail.com> Co-authored-by: eon (bloodycop) <eon.bloodycop@gmail.com> Co-authored-by: blobles <75809218+blobles-dev@users.noreply.github.com> Co-authored-by: Niilyx <43385037+Niilyx@users.noreply.github.com> Co-authored-by: Erick_Maksimets <59126348+ErickMaksimets@users.noreply.github.com> Co-authored-by: Tiagoquix <30274161+Tiagoquix@users.noreply.github.com>
dennisstewart
added a commit
to dennisstewart/nickcagematch-ttt
that referenced
this pull request
Apr 10, 2025
* util.StringToType does not error with invalid "int" inputs * Warning about bypassing blocked main menu * Minor cleanup * Update surfaceproperties.txt These values are not used, idk how they even got here * Fixed copy paste error in edit_sky * Replace debug.getregistry usage with RegisterMetaTable (Facepunch#2097) * Typo In Motor Tool (Facepunch#2102) Fixes Facepunch/garrysmod-issues#5976 * Use math.tau in some places instead of 2π (Facepunch#2104) * TTT: Fix Swedish chef language borking setting (Facepunch#2099) * Map Pool for G String (Facepunch#2105) * Error handle bad spawnlist files better * Minor cleanups * Fixed commits.facepunch.com link * Use `m_pitch` and `m_yaw` for looking around in the taunt camera (Facepunch#2108) * DNumSlidier: Setting min or max value updates slider pos * Merge some math lib optimizations from Facepunch#1477 Closes Facepunch#1477 Co-Authored-By: code_gs <collings509@gmail.com> * TTT: Add SAM support to karma banning (Facepunch#2106) * Show Icons for Mountable Games (Facepunch#2110) * util.IntervalTimer (Facepunch#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> * TTT: fix and optimize traitor button rendering (Facepunch#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 * Delete constraints.lua Unused file * Make game mount list wider (Adjustments for Facepunch#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 Facepunch#1962 * Fixed halo rendering on certain models making the screen black. Facepunch/garrysmod-issues#6000 * Improvements to MatSelect panel * Improvements to PropSelect panel (to match MatSelect) * Added sbox_max(rope)constraints * Add a search bar to sequences and make them sort properly. (Facepunch#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> * TTT: Update Turkish (Facepunch#2112) * Update turkish.lua I can't believe I missed this one * Plural to Singular Plural to Singular to mimic CS2's translation. * Allow for properties to be removed (Facepunch#2113) * Allow for properties to be removed * Added validation checks * Improve SortedPairs even more (Facepunch#2032) * Improve SortedPairs even more pr Facepunch#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) * Fixed attempt to index global 'sam' (a nil value) (Facepunch#2121) * Update spanish.lua in the terrortown gamemode (Facepunch#2118) * Minor improvements (Facepunch#2120) * 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 Facepunch/garrysmod-requests#2475 * Minor cleanups * Localization Support For In Game Weapons & Items (Facepunch#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> * Create .editorconfig Lets try and see if this does anything useful * Localization Support for key bindings. (Facepunch#2126) * TTT: Updated Turkish Localization (Facepunch#2127) * TTT: Quickchat Fix in Turkish * Update turkish.lua * Update turkish.lua * Updated Turkish Properties * Remove arguments overloading in surface.SetDrawColor (Facepunch#2125) * Remove arguments overload * Code styling * 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 * Localization for NPC and Vehicle tabs Closes Facepunch#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. * Fixed using wrong translation string in previous commits * Make esc block blue + informational instead of a yellow error (Facepunch#2131) * Localization Support for Options (Facepunch#2129) * Localization Support for Options - Legal * Add files via upload * TTT: fix ragdoll not being created if ttt_dyingshot is on (Facepunch#2135) Fix assumption of DoPlayerDeath running twice on DyingShot, instead run fully once and prevent future triggers. * Check for "icon" to be "ContentIcon" before reading its spawnname (Facepunch#2137) * update german translation (Facepunch#2132) * Reduced bits used by net.Read/WritePlayer based on maxplayers (Facepunch#2078) * reduced bits used by net.Read/WritePlayer based on maxplayers * Update net.lua * Fortress Forever + NeoTokyo support: Info_ff_teamspawn (Facepunch#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> * 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 * Updated FGD files * Minor cleanups * nav_blocked event * Last Played iteration in server browser * Remove `weapon_hl2mp_base` from properties Pointless string * TTT: check data_static for rearm scripts for use in workshop addons (Facepunch#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. * Update decals_subrect.txt New version from HL2, adds 2 new decals from Portal 1 * Update serverevents.res `player_say` includes `teamonly` field. * Fixed a typo in a comment in net.lua (Facepunch#2146) * Fix "Bad SetLocalOrigin(x,y,z) on gmod_hands" warnings (Facepunch#2143) * Fix Bad SetLocalOrigin hands warnings * Update formatting * self:GetTable() => meta.GetTable( self ) (Facepunch#2154) * Improve performance of ```team``` library (Facepunch#2144) * Improve performance of ```team``` library Improves many functions of this library, especially GetColor * Compliance with requirements * Remove nil check * Useless check * TTT: Russian localization update - Fixed some typos. - Updated some wrongly localized strings. Initially, some of the changes were from here: Facepunch#2156 (thanks to @Blueberryy ) * 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 Facepunch#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 * fixed a typo in hudanimations.txt (Facepunch#2160) * Localization Support For Crosshair Setup (Facepunch#2148) * Localization For Crosshair Setup * Lowercase * Adds Entity:AddSpawnFlags, Entity:RemoveSpawnFlags and Entity:SetSpawnFlags (Facepunch#2138) * Optimize DLabel autostretch behavior (Facepunch#2089) * Cache result of gmod.GetGamemode() in gamemode.Call (Facepunch#2157) * Cache result of gmod.GetGamemode() in gamemode.Call * Missing empty line * Formatting * Cache result of gmod.GetGamemode() in hook.Run (Facepunch#2075) * don't call a C function in hook.Run * cache gmod.GetGamemode() instead of using GAMEMODE/GM suggestion by @Astralcircle * removed unused declaration * 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 * 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 * 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 * Fix indentation of the gamemode list items (Facepunch#2179) * Improve file.Write function to return success status (Facepunch#2178) * Improve file.Write function to return success status * Update file.Append to return success status * Update .fgd files * Fix NPCs in spawnmenu search not having their weapons set * Color:SetUnpacked type checking * Improve stack traces for existing error() calls * Remove NULLs from Entity.Constraints * Added debug.getregistry & IMaterial:GetColor implementations * Update garrysmod_english.txt * Added Missing Strings (Facepunch#2153) * Missing Strings * Added Missing Strings (Properties) * Deleted Unused String "Creations" * Update weapons.lua * Update getmaps.lua * Update game_hl2.lua * Update postprocess.lua * Update main_menu.properties * Update spawnmenu.properties * Revert Back Changes * Revert Back Changes * Update sent_ball.lua * Update spawnmenu.properties * #ent.editors * #ent.editors * #ent.editors * Added more missing strings (#1) * Update spawnmenu.properties * Update entities.properties * Update base_vehicles.lua * Update base_npcs.lua * Update spawnmenu.properties * Update npc_tf2_ghost.lua * Update cl_init.lua * Update custom.lua * Update getmaps.lua * Update entities.lua * Update npcs.lua * Update postprocess.lua * Update vehicles.lua * Update weapons.lua * Update edit_sun.lua * Update edit_sky.lua * Update edit_fog.lua * Update game_hl2.lua * Update sent_ball.lua * Update weapons.lua * Update entities.lua * Update npcs.lua * Update vehicles.lua * Update postprocess.lua * Update weapons.lua * Update spawnmenu.properties * Localization: added more missing strings (#2) * Localization: added more missing strings * Localization: added more missing strings * Localization: added more missing strings * Localization: added more missing strings * Updating base.fgd to match base branch * Update gmod_hands.lua * Update gmod_player_start.lua * Update npc.lua * Update player.lua * Update stool.lua * Update weapons.lua * Update sandbox.txt * Update russian.lua * Update control.NewGame.js * Update loading.html * Update base_npcs.lua * Update hook.lua * Update util.lua * Update entities.properties * Update weapon_frag.txt * "C" to " "%+menu_context%" * Revert Back Last Change Will try to implement it. * npc_gmod_nextbot_example → npc_tf2_ghost (#3) * npc_gmod_nextbot_example → npc_tf2_ghost * npc_gmod_nextbot_example → npc_tf2_ghost * crosshair loc commit * typo commit * Update crosshair_setup.lua * Update entity.lua * Update npc.lua I don't even know how this ended up here. * Update base_npcs.lua * Update game_hl2.lua * spawnmenu.category.chairs * Update spawnmenu.properties * spawnmenu.category.fun_games * spawnmenu.category.other * texturize_pp.* * texturize_pp.* in texturize.lua * British Now * New category * spawnmenu.category.other * Update postprocess.lua spawnmenu.category.other * Update vehicles.lua spawnmenu.category.other * Update edit_sun.lua spawnmenu.category.editors * Update edit_fog.lua spawnmenu.category.editors * Update edit_sky.lua spawnmenu.category.editors * Update entities.lua spawnmenu.category.other * Update getmaps.lua Favourites * Update entities.properties * Update npc_tf2_ghost.lua * Update getmaps.lua * npc_tf2_ghost again * Update entities.properties npc_tf2_ghost * Move NextBot to Other Category * Localization: updated some strings (#4) * Localization: updated some strings * Localization: updated some strings * weapon_frag.txt how is this a change hmm * Update getmaps.lua * Update main_menu.properties * Update weapon_frag.txt * Remove useless changes & move stuff to correct places * Restore unnecessary deletion * Fix final issue --------- Co-authored-by: Aram <dragolino6@mail.ru> Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Use a local variable in gmod_tool (Facepunch#2188) * Add tool copying (Facepunch#2186) * Rounding out the news panel (Facepunch#2185) * Use `render.PushRenderTarget` and `render.PopRenderTarget` instead (Facepunch#2180) * Improve skypaint matproxy performance (Facepunch#2107) * Updated deprecated CPanel calls (Facepunch#2184) * Made NumSlider automatically pick the convar value. * Added PropSelect method to controlpanel. * Replaced "AddControl" with non-deprecated code. * Added dedicated method to select rope material. * Various fixes to suggestions * Minor changes * Minor clean ups * Fix Balloon tool having broken model selector * More cleanups * Added ControlPanel:ComboBoxMulti --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Updated FGD files * Remove redundant category from npc_tf2_ghost * Minor cleanups * Fixed Entity.DoNotDuplicate not affecting saves properly * Do not save singleplayer tool ghost in saves * Restore CameraProp's keybinds on level transition This really needs to be done for all tool entities * remove server is full rating penalty (Facepunch#1697) Since servers just abuse this and find ways to make it not matter, should just remove it. * Optimize ```ents.FindByClassAndParent``` (Facepunch#2167) Optimizes this function by about 25% * Minor cleanups * Frontend Speedup (Facepunch#2183) * Update jQuery to the latest version * Optimize images by adding lazy loading * Remove unnecessary jQuery calls * Speed up the loading of the mainmenu * Optimize loading screen: use DOMContentLoaded and defer jQuery * Replace jQuery to JavaScript * Fix the screen resolution glitch when game start up * Fix the code style to the current code base * Returning the js script binding to the head block * Remove unnecessary changes --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Add math.IsNearlyZero() and math.IsNearlyEqual() (Facepunch#2172) * Add math.IsNearlyZero() and math.IsNearlyEqual(). * Rename `smallNumber` to `epsilon` * Use 1e-8 for epsilon instead of max.exp(-8) * Fix comments to match function arguments * Remove epsilon variable, code style fixes. * Don't draw effect rings w/gravgun (Facepunch#2083) * Color manipulation methods (Facepunch#2136) * Update color.lua Add color manipulation functions with HSV, HSL, HSB, HWB. Add HWB support. * Update color.lua fix style, rm :SetValue alias, add HSLToColor & HSVToColor lua implementation (100500x faster than C) * Fixed some issues + formatting Moved stuff around to be more logically placed, made changes to HSVToColor and HSLToColor to more closely match the C++ version's returns * fixed mod issue 255 % 255 == 0 we cant use mod here --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Improve game styles (Facepunch#2192) * Improved Server List * Improved NavBar * Improved NewGame * Improved Workshop * Undo style changes * Actually make the margins equal for Start Game --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Updated deprecated CPanel calls (Continuation & Conclusion) (Facepunch#2194) * Updated the rest of deprecated AddControl. * Removed SetDefaultValue from AddControl * Used ToolPreset for the Post Processing UI * minor changes Remove unnecessary parameter from Panel:NumSlider Undo unnecessary changes --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> * Remove math.IsNearlyZero * Remove useless panels from Game tab in Options * Remove redundant argument from CPanel:NumSlider calls * SetCreator for NPCs (Facepunch#2197) * Further expand on Entity:SetCreator calls in Sandbox * TTT: Magneto-stick code cleanup (Facepunch#2200) * TTT: Fix C4/Radio sounds not playing outside of PAS (Facepunch#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. * 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) * Remove weapon_cubemap localizations It's an internal weapon that never appears in anywhere user accessible. * Fix CS:S not mounted warning (Facepunch#2204) * TTT: Change holdtypes for consistency with viewmodels (Facepunch#2212) Update to two-handed version for the pistol, deagle, flaregun, glock, and silenced pistol. * TTT: clarify Health Station usage hint text (Facepunch#2215) Changed "Press" in L.hstation_hint to hold * Remove # in tool name (Facepunch#2213) * TTT: Update Turkish L10n (Facepunch#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 * Micro-optimize Workshop Mount VGUI (Facepunch#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 * Update russian.lua * Refactor sandbox hints (Facepunch#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> * Remove angular-ui, jquery-ui, jquery-color (Facepunch#2219) * TTT: Fix pistols using revolver reload gesture (Facepunch#2220) * TTT: add ttt_filter_role entity (Facepunch#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: Close player volume slider along with scoreboard (Facepunch#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] Fixed typo in scoreboard voice panel hide logic (Facepunch#2226) * Update AngularJS from 1.1.2 to 1.8.2 (Facepunch#2190) * Update AngularJS, fix files * Prevent middle-click links breaking menu * Revert "Prevent middle-click links breaking menu" This reverts commit 58db167. * Merge Facepunch@46a71ac Merge "remove unused dependencies" Facepunch@46a71ac * 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> * Fix DButton:SetConsoleCommand() not accepting vararg (Facepunch#2223) Makes variable arguments in DForm:Button() function properly. * New Localisation Phrases (Facepunch#2207) * Additional terms * Remove mine/my * add network terms Added Reconnect, Offline, and Online. Did not add as they already exist: Disconnect and Connect * TTT: Fix players being revealed as dead if they chat/voicechat at the exact moment of death (Facepunch#2229) * TTT: Let TTTLastWordsMsg hook override default behaviour (Facepunch#2227) - Return true from the hook to disable default behaviour - Adds the original chat text as a parameter * Cleaner server list layout code & Better display on small screens (Facepunch#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 Facepunch@46a71ac Merge "remove unused dependencies" Facepunch@46a71ac * 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> * 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 * Updated FGD files * Update cl_voice.lua (Formatting) * Better error handling for reworked kill feed Fixes Facepunch/garrysmod-issues#6221 * Make PLAYER:LimitHit server only (Facepunch#2240) This feature never worked on the client anyway and never will * 2 fixes for NPC icons + ENT.Information support (Facepunch#2238) * Mark the RPG Launcher as a Default Weapon for rebels (Facepunch#2233) * 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. * Port original ear ringing behavior from HL2 to Lua * Better default text color for game_text * Return nil on file.Read not found as opposed to no value (as wiki suggests) (Facepunch#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) * TTT: Fix Spelling (Facepunch#2242) * ironsight to iron sight * Minor Fixes In Turkish * Minor cleanup * env_skypaint FGD inputs Also added Entity:SetNetworkVarsFromMapInput * Fix team.GetColor() retuning non copy default color (Facepunch#2243) * Minor cleanups * Localize Balloon and Dynamite world tool tips Idea from Facepunch#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 Facepunch#2142 but better implementation * Fixed killfeed names regression * [TTT] Fixed health station having one more health than intended (Facepunch#2244) * [TTT] Fixed health station having one more health than intended Also cleaned up OnTakeDamage function slightly * Another minor cleanup in OnTakeDamage * TTT: Add crosshair customisation (Facepunch#2235) * Balloon fixes * Fix accidental global (Facepunch#2251) * TTT: Russian localization update (Facepunch#2250) * TTT: Russian localization update - Localized strings that were added/updated in: Facepunch#2235 * Update russian.lua * TTT: Update Turkish L10n (Crosshair Settings) (Facepunch#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) * Update base.fgd * Fixed a regression in TTT voice chat team colors Fixes Facepunch/garrysmod-issues#6246 Blame Facepunch#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 * Undo MAX_EDICT_BITS hack (Facepunch#2257) It is already a global value in the game, so it doesn't make sense * Make `PLAYER:AddCleanup` server only (Facepunch#2258) * Updated FGD files * Localize named HL2 NPCs. * Added 2 new options to Keyboard options Fixes Facepunch/garrysmod-requests#2694 * Prevent weapon_base errors when given to NPCs Fixes https://github.com/Facepunch/garrysmod/pull/2259/files * TTT: Updated and fixed French localization (Facepunch#2254) * TTT: Updated Ukrainian localization (Facepunch#2252) Update + Corrections + Alignment of lines * [TTT] Fix incosistency for default values (Facepunch#2262) Fixes "ttt_haste_minutes_per_death" and "ttt_detective_pct" in `terrortown.txt` not following the same values as the GM's Lua files. * Localization: "Toggle" → "Toggle key" (Facepunch#2255) - Made the "Toggle Key" text be in the places it should. * Make Spawn_ functions return the spawned entity (Facepunch#2248) Functions such as `Spawn_NPC` will now return the entity it spawned. * Added trigger_teleport_relative to the FGD * Minor cleanup * Remove Color related hacks * Updated DButton In conjunction with engine changes. Implements DButton:SizeToContentsX to mimic implementation of SizeToContents Both of them calcualte text indent before setting the size, so it is consistent. Adjust text inset for center aligned text on buttons for better looks. * Proper buttons for Copy to Clipboard in Problems panel * Icons & Copy button for gui.OpenURL dialog * weapon_base sets Inflictor and Attacker More as an example, but also helps base-derived weapons to get proper DamageInfo weapon and inflictor. * TTT: updates to "New Game" settings and convars (Facepunch#2263) - Improve option labels in New Game menu and add a toggle for the karma system - Adds FCVAR_NOTIFY to various convars - Changed defaults of some convars: * If voice drain is enabled, by default it will not be applied to admins (`ttt_voice_drain_admin` = 0) * Allows Innocents to pick-up dropped Detective hats by default (`ttt_detective_hats_reclaim_any` = 1) * [TTT] fix players sometimes being revealed as dead when they chat/voicechat right as they die (again) (Facepunch#2264) * Updated weapon scripts * Update mdlpicker.res For changes to the Hammer model picker * Revamp scoreboard volume sliders to they are more obvious * Creator tool randomizes NPC weapons * Fixed DMenuOption pressed in colors being white-on-white * Fix DTextEntry autocomplete --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com> Co-authored-by: aStonedPenguin <aStonedPenguin@users.noreply.github.com> Co-authored-by: Talha Berkay Akbulut <49911006+NovaDiablox@users.noreply.github.com> Co-authored-by: Astralcircle <142503363+Astralcircle@users.noreply.github.com> Co-authored-by: figardo <figardo@users.noreply.github.com> Co-authored-by: IBRS <56501720+IBRS-4Ever@users.noreply.github.com> Co-authored-by: [aka]bomb <69766525+b0mbie@users.noreply.github.com> Co-authored-by: code_gs <collings509@gmail.com> Co-authored-by: William Gaylord <chibill110@gmail.com> Co-authored-by: T-Rizzle12 <92559393+T-Rizzle12@users.noreply.github.com> Co-authored-by: Riggs <riggs9162@gmx.de> Co-authored-by: Ghost <55670478+DeveloperGhost@users.noreply.github.com> Co-authored-by: Beelzebub <34854689+Be1zebub@users.noreply.github.com> Co-authored-by: Malivil <Malivil@users.noreply.github.com> Co-authored-by: Fer <ferbg9@gmail.com> Co-authored-by: Redox <mail@redox.to> Co-authored-by: Elektronixx <37477610+Elektronixx@users.noreply.github.com> Co-authored-by: Darsu <95997959+dar-su@users.noreply.github.com> Co-authored-by: Cedricp06 <cece.pepin@gmail.com> Co-authored-by: mgetJane <104243160+mgetJane@users.noreply.github.com> Co-authored-by: BreakinBenny <fox@blaj.net> Co-authored-by: Wizard <74285801+wizard00000@users.noreply.github.com> Co-authored-by: thecraftianman <64441307+thecraftianman@users.noreply.github.com> Co-authored-by: noaccess <54954576+noaccessl@users.noreply.github.com> Co-authored-by: Aram <dragolino6@mail.ru> Co-authored-by: Stefan van der Meer <svdm@users.noreply.github.com> Co-authored-by: Shabeel <77049275+Shabeel69420@users.noreply.github.com> Co-authored-by: eon (bloodycop) <minerva.servers.eon@gmail.com> Co-authored-by: Dark Fated <49955245+darkfated@users.noreply.github.com> Co-authored-by: Srlion <srlion32@gmail.com> Co-authored-by: AnimeRem <54372355+animerem@users.noreply.github.com> Co-authored-by: Cheatoid <Cheatoid@users.noreply.github.com> Co-authored-by: ъ знака <111152233+friztailo@users.noreply.github.com> Co-authored-by: rubisetcie <rubisetcie@gmail.com> Co-authored-by: Devin Korb <meepdarknessmeep@gmail.com> Co-authored-by: Cyn <181435937+xCynDev@users.noreply.github.com> Co-authored-by: StrawWagen <64710817+StrawWagen@users.noreply.github.com> Co-authored-by: Vrej <DrVrej@users.noreply.github.com> Co-authored-by: Mavis <107206864+SvveetMavis@users.noreply.github.com> Co-authored-by: Bonyoze <59924045+Bonyoze@users.noreply.github.com> Co-authored-by: Zaurzo <101999193+Zaurzo@users.noreply.github.com> Co-authored-by: Lexi Robinson <lexi@lexi.org.uk> Co-authored-by: DarthTealc <DarthTealc@users.noreply.github.com> Co-authored-by: Kari-Jukka <j.liettya@gmail.com> Co-authored-by: eon (bloodycop) <eon.bloodycop@gmail.com> Co-authored-by: blobles <75809218+blobles-dev@users.noreply.github.com> Co-authored-by: Niilyx <43385037+Niilyx@users.noreply.github.com> Co-authored-by: Erick_Maksimets <59126348+ErickMaksimets@users.noreply.github.com> Co-authored-by: Tiagoquix <30274161+Tiagoquix@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Corrections, additions. Alignment of lines.