repogarrysmodcancel

792 Commits over 2,740 Days - 0.01cph!

12 Months Ago
Entity translation for scripted_sequence Fixed spawnmenu "Save Changes" / "Revert" buttons not having icons Regression from garrysmod/pull/1954 Fixed no loading screen when playing demos Fixed a bad thing with HTML translations Removed unused code from loading screen Removed usages of GM:LoadGModSaveFailed clientside Update icon_progress.lua Fixed a visual bug with drag'n'drop When the dragged panel's local position is higher than 2048 on any axis Duplicator uses `CurHealth` instead of `Health` Avoid issues with `Health()` function. Also make the NPC inherit duplicator table correctly Base gamemode supports DMG_REMOVENORAGDOLL for players
1 Year Ago
Make DeathNoticeEvent verify if the entities are players (#2040) * Make DeathNoticeEvent verify if the entities are players * Add IsValid checks
1 Year Ago
Clean ups Do not force render group of base SNPC/nextbots let the engine decide based on the NPC model Use ENT.WantsTranslucency for Sandbox entities duplicator saves "Make Persistent" setting Fixed misspelled community translations Clamp DAdjustableModelPanel FOV to 0-179 Faceposer: improved handling of too many flexes Fixed some sandbox entities not saving some settings in duplications Such as being frozen by the physics gun Fixed a regression introduced by PR #1787 Fixes issues with addons passing incorrect data types to Entity NetworkVar
1 Year Ago
made ammo types reflect game.GetAmmoTypes (#2035)
1 Year Ago
TTT: Replace most SteamID usage with SteamID64 (#2029)
1 Year Ago
Cleaning up vgui files
1 Year Ago
Refactor list.lua (#2024) - Refactor for optimisation, better var naming, and new code style standards - Remove doc comments
1 Year Ago
Rounding pixels to get rid from 1 pixel abnormal shift (#2034)
1 Year Ago
TTT: Fix Turkish translation file
1 Year Ago
Do not register duplicator related stuff clientside (Sandbox) Minor cleanup in matproxy library
1 Year Ago
Add chainstodoor to Door @BaseClass in base.fgd (#2031)
1 Year Ago
minor cleanups util.SetPData transition to SteamID64
1 Year Ago
Clean ups PLayer:SetPData transition to SteamID64 This is backwards compatible and will eventually convert all data to use SteamID64
1 Year Ago
Significantly improve the performance of SortedPairs (#2015) * Improve sortedpairs performance * Fix Keys typo, styling consistency
1 Year Ago
Add option to force override child tables in table.Merge (#1951)
1 Year Ago
Add math.tau (#2030) Convenience var for a well-established constant. Improves readability of code for formulas that typically use tau over 2pi. Fixes garrysmod-requests/issues/2216.
1 Year Ago
TTT: added Turkish Language (#2028)
1 Year Ago
Make Sky Editor inherit values of existing sky on spawn Minor code adjustments Fix conflicting addon problem stacking file paths
1 Year Ago
DT/NetworkVar Changes (#1787) This is an attempt to close garrysmod-requests/issues#798. This allows you to omit the slot of DT/NetworkVars, which simplifies DataTable inheritance. ```Entity:IsDTVarSlotUsed(typename, slot)``` and minor optimizations are also included. The DT/NetworkVars slot parameter can either be nil or completely omitted: ``` local ENT = {} ENT.Type = "anim" function ENT:SetupDataTables() self:NetworkVar("Int", 1, "Base1") self:NetworkVar("Int", 3, "Base2") self:NetworkVar("Int", 5, "Base3") self:NetworkVar("Float", 0, "Base4") self:NetworkVar("Float", 1, "Base5") if SERVER then self:SetBase1(1) self:SetBase2(2) self:SetBase3(3) self:SetBase4(4.4) self:SetBase5(5.5) end end function ENT:Initialize() print(self, self:GetClass()) for i=0, 31 do if self:IsDTVarSlotUsed("Int", i) then print("Int " .. i .. " used", self:GetDTInt(i)) end end for i=0, 31 do if self:IsDTVarSlotUsed("Float", i) then print("Float " .. i .. " used", self:GetDTFloat(i)) end end PrintTable(self:GetNetworkVars()) end scripted_ents.Register(ENT, "github_test") local ENT = {} DEFINE_BASECLASS("github_test") ENT.Base = "github_test" function ENT:SetupDataTables() BaseClass.SetupDataTables(self) self:NetworkVar("Int", nil, "Test1") -- backfills Int 0 self:NetworkVar("Int", "Test2") -- backfills Int 2 self:NetworkVar("Int", "Test3") -- backfills Int 4 self:NetworkVar("Int", "Test4") -- uses Int 6 -- Int 0 through 6 are used self:NetworkVar("Float", "Test5") -- uses Float 2 self:NetworkVar("Float", "Test6") -- uses Float 3 -- Float 0 through 3 are used if SERVER then self:SetTest1(-1) self:SetTest2(-2) self:SetTest3(-3) self:SetTest4(-4) self:SetTest5(-5.5) self:SetTest6(-6.6) end end scripted_ents.Register(ENT, "github_test_child") ```
1 Year Ago
Replaced util.TraceLine by util.TraceHull for tool traces. Fixes trace bypassing parented props (#1890)
1 Year Ago
Allow multiple hooks to modify the bullet structure (#1254)
1 Year Ago
Remove TF2 stuff from 360controller.cfg Changes to Options menu Update .gitignore Armor reduction system Added g_ragdoll_maxcount to spawnmenu This is a common issue among players where the cvar is set to 0 and NPC bodies despawn instantly Main menu workshop related changes Add to Favorites function, and vote up/down sync and display improvements Added dummy FizzlerVortex matproxy Fixes some Portal 2 mats to work out of the box Spawnmenu NPC improvements Save and restore NPC (max) health, make the correct NPC spawn when duplicated Read settings/users.txt from MOD path Fix Sandbox gamemode calling SetBodyGroups with nil Code style clean ups Consistency within touched files
1 Year Ago
Add math.Factorial (#1938) * Add a factorial function to the math library * Make everything norm-friendly * Use a loop instead of recursive * Remove recursive from the comment --------- Co-authored-by: Maxime <72105771+MaaxIT@users.noreply.github.com>
1 Year Ago
Fixed Infinite loop on string.Comma when second parameter is numerical. (#2025)
1 Year Ago
Fix GetHighestKey not choosing anything if values are all 0 (#2026) Fixes totally empty gamemodes not using *any* description, instead falling back to internal folder name
1 Year Ago
Add custom icons for tree nodes in some spawnmenu categories (#2001) * Added list for sent category custom icons in spawnmenu * Added list for npc category custom icons in spawnmenu * Added list for vehicle category custom icons in spawnmenu * Added list for weapon category custom icons in spawnmenu
1 Year Ago
Add CanCreateUndo hook (#1685)
1 Year Ago
Make it easier to click on addons in the Addons list (#2018) * Click to check * Add listener only to the Description Remove extra spacing Add removed spacing * Move click handler to the workshopicon
1 Year Ago
Add PreRegisterTOOL hook (#2022) Considering https://wiki.facepunch.com/gmod/GM:PreRegisterSENT and https://wiki.facepunch.com/gmod/GM:PreRegisterSWEP both exist, i figured PreRegisterTOOL should exist too. It'd help with preventing some tools from loading / modifying tools.
1 Year Ago
TTT: Prevent error when NPC fires SWEP derived from weapon_tttbase (#2023)
1 Year Ago
Use Brackets for keys in PrintTable (#1754) To avoid confusion when there is [357] and ["357 "] for example. Example of how that looks: ``` [0.000000 0.000000 0.000000] = Vector [1] = Number [Entity [0][worldspawn]] = Entity ["stringIndex"] = String ```
1 Year Ago
Clear DoF_Ents table on DOF_Kill (#2020)
1 Year Ago
Fixed targetID being jumpy/jittery Clean ups
1 Year Ago
Add sequential parameter to net.Read/WriteTable (#1866) * Add sequential parameter to net.Read/WriteTable * Break instead of return * Update net.lua --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
1 Year Ago
Fixed spawnmenu cursor position resetting in certain cases Reworked killicon library Updated language files Update string.lua
1 Year Ago
UV support for killicons (#1158) * UV support for killicons * Update killicon.lua Change UV material argument to path Change UV coordinate arguments to pixel values Fix improper sizes for UV icons * Changed name to killicon.AddTexCoord --------- Co-authored-by: AwfulRanger <AwfulRanger@users.noreply.github.com>
1 Year Ago
Add string.CardinalToOrdinal (#1509) This would be a useful function to have for anyone who would want to use it. Example: `print( string.CardinalToOrdinal( 111 ) )` Output: `111th` Yes `STNDRD` exists, but it has a stupid name.
1 Year Ago
Add ents/player iterators (#1731) Adds iterators for entities and players which are read-only and cached. The main benefit to this is performance; crossing over from Lua to C and back every function call is slow and creates a new table each call. Closes Facepunch/garrysmod-requests/issues/738. Examples of use: ``` for i, p in player.Iterator() do print(p) end for i, e in ents.Iterator() do if e:GetClass() == "prop_physics" then e:Remove() end end ```
1 Year Ago
Update Team Fortress 2 map categories (#2017) The Scream Fortress update came along, and with it a new map category, zi_. This commit makes the "other" category empty again by adding it.
1 Year Ago
Main Menu changes and additions Disallow making addon presets with empty names Fixed number only names being unable to be deleted Confirmation when deleting addon presets Addon preset importing and exporting
1 Year Ago
Update net.lua (#1106) add net.ReadPlayer/WritePlayer Co-authored-by: Python1320 <Python1320@users.noreply.github.com>
1 Year Ago
Added FGD files
1 Year Ago
Add SWEP/SENT.ClassNameOverride (#1987) * Add SWEP/SENT.ClassNameOverride * Update weapons.lua
1 Year Ago
Reduce player __index calls in animations (#2010) * Reduce player __index calls in animations * Improve backwards compatibility
1 Year Ago
Add HL1 ground turrets (#1926) Added support for spawning the HL1 turrets on the ground, as well as fixing up some comments in commands.lua. --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
1 Year Ago
Half-Life: Source skill config adjustments More physics related killicons Crosshair customization menu clean ups Portal NPCs related changes Duplicator support, spawnmenu spawn position fix "Failed to find any models for this addon" message adjustments Empty out stored outputs for duplications Lua error fix due to recent engine changes Update garrysmod_english.txt Entity:Set/GetColor Lua implementation
1 Year Ago
Update Fistful of Frags map categories (#2013) This now makes the "other" tab once again empty with Fistful of Frags installed.
1 Year Ago
MatSelect improvements (#1872) * Added `MatSelect:Clear` * Added `MatSelect:SelectedItemPaintOver( x, y )` * `MatSelect:AddMaterial*` methods now return the created `DImageButton` * Added `local pnl = MatSelect:FindMaterialByValue( value )` * Added `MatSelect:SelectMaterial( pnl )` --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
1 Year Ago
Minor DComboBox improvements and DComboBox.RemoveChoice (#1851) Utilized the `DComboBox.CloseMenu` method in where appropriate Added `DComboBox.RemoveChoice( index )` --------- Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
1 Year Ago
Change deprecated MousePos function (#2006) * Changed depricated MousePos function * remove redundant call