branchgarrysmod/mastercancel

710 Commits over 2,496 Days - 0.01cph!

1 Year Ago
Fixed collision bounds of custom Sandbox NPCs Fixed collision bounds of custom Sandbox NPCs with uppercase characters in model name
1 Year Ago
Fixed an error when dupe-spawning admin only NPCs without player obj
1 Year Ago
Delete progressbar.lua It is unused
1 Year Ago
Redrawing of ping icons (#1845)
1 Year Ago
Add math.SnapTo (#1888) * Add math.SnapTo * Formatting consistency & small typo fix
1 Year Ago
Added: Editable entity combo box can now use default selected and hav… (#1871) * Added: Editable entity combo box can now use default selected and have icons * Changed: Move icon check up * Fixed: Not passing booleans to `vars.selected` * Fixed: Selection operator working with nil/bool Moved: Flag nest to the loop * Added: Spacing before if-statement * Fixed: IF bracket space * Update prop_combo.lua Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
1 Year Ago
Resolve my oopsie
1 Year Ago
Fix entity spawning out of bounds (#1863) * Fix entity spawning out of bounds Fixes garrysmod-issues/issues/5028 * Don't edit trace result Fixes code to avoid changing the trace result. Removes the redundant OBBCenter() calculation, since it doesn't work until the entity is spawned. Moves entities 2 units closer to surface when spawn position is being corrected, to avoid DropToFloor() moving the entity out of bounds. * Make fix better conform to old behavior Makes it so that the new spawn position is offset even when aiming at an entity, like before. Also cleaner readability
1 Year Ago
IsAdmin bypasses for singleplayer So that badly behaving addons that override IsAdmin cannot screw with basic functionality in singleplayer Adjust spawn offsets for HL ents Less likely to be outside of the map this way Save cookies on game shutdown Spawnmenu does not try to run empty console commands Search maps by addon name main menu fixes Addon conflict problem menu stuff Make sure spawned ents/weps are not out of the map
1 Year Ago
Fixed lingering toolgun ghost when using Player:SelectWeapon in multiplayer (#1674) See garrysmod/pull/1673. Consider fixing the extra clientside Think call after Holster in the engine instead. Also cached the constant trace mask in Primary/SecondaryAttack since I was already editing the file.
1 Year Ago
Localizing g_SkyPaint to get data (#1879) * Localizing g_SkyPaint to retrieve data There is no need to access global variables every time to get data. And if it is necessary, something is wrong. * Update sky_paint.lua Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
1 Year Ago
Fix CollapseKeyValue docstring (#1891)
1 Year Ago
Tiny fix - validation of panel in timer (#1889) * Tiny fix - validation of panel in timer Co-authored-by: Brandon Sturgeon <brandon@brandonsturgeon.com>
1 Year Ago
TTT: PT-BR translation: add missing letter (#1892)
1 Year Ago
TTT: fix weapons disappearing during round reset As per #1887, weapon entities that are part of the map (as opposed to rearm scripts) are recreated by the map reset. At that point players are holding nothing and could pick up the recreated weapon entity. This would then be stripped again when the players got respawned a moment later. We avoid this by tracking whether a map reset is in progress and preventing weapon pickups during that time. (Based on a different solution proposed in #1887). Closes #1887.
2 Years Ago
Update mainmenu.lua Flash game window on loading finish hook.Add checks for nil hook ident Sandbox tool fixes Sandbox save system improvements Fixed a regression with string.Comma Update main_menu.properties DIconLayout: Fix border being counted twice for LEFT content alignment
2 Years Ago
TTT: Fix ammo ents blocking +use near other entites (#1878)
2 Years Ago
fix Error Message printing Add instead of Remove (#1877)
2 Years Ago
Fix DIconLayout (#1873) x starts at m_iBorder, not zero, so it should be compared to max width including the left side border
2 Years Ago
Fixed an issue with halo not resetting color of pp/copy
2 Years Ago
Update language files Persistence system changes Fixed a crash with DListView and made other improvements to it Fixed a few server lag exploits Implemented Steam chat filter Update faceposer.lua Reset spawnmenu search cache when mounted content changes Hoverball enabled/disabled state improvements
2 Years Ago
Nocollides shouldn't use phys_constraintsystem (#1870)
2 Years Ago
TTT: Add hook for last words (#1869) - Add TTTLastWordsMsg(ply, msg)
2 Years Ago
Renamed math.DistToSqr to math.DistanceSqr More logical/consistent with math.Distance Fixed MarkupObject:Draw's new argument not working without MaxWidth being set
2 Years Ago
Try using the new UI functions in Sandbox tools Cleanup net.lua
2 Years Ago
Add argument to net.Read/WriteColor to skip alpha (#1841) * Add argument to net.Read/WriteColor to skip alpha More network efficient if you aren't using the alpha. The value between the read and write calls must match and should be a warning on the wiki page if this is merged. * Change alpha read from faux ternary to cond branch Since net.ReadUInt is a cfunc
2 Years Ago
Added: Color box method (#1854) * Added: Color box method * Added function to control panel also * Updated: Coding stile Updated: Use ipairs instead of pairs * Utilize: Use of `ipairs` Removed: All changes from DForm * Fixed: wrong variable names for R,G,B,A Utilize: Pairs loop when configuring default convar settings * Updated: Use camel case * Removed: Use `if var` instead of `if var != nil` for convention changed: Loop internal variables to `k,v` for convention * Relace the IF statement with selection operator
2 Years Ago
minor style change
2 Years Ago
Correction of a typing error in the comments (#1862) This is a problem of huge importance: it was written "interger" instead of "integer". The game will surely be better with this fix ;)
2 Years Ago
Moved DForm.ToolPresets and DForm.KeyBinder to ControlPanel panel The panels those functions create are Sandbox gamemode exclusive Less error prone tool panel creation string.JavascriptSafe escapes ` Minor cleanups in menu state Added Permissions viewer TTT uses new permissions.EnableVoiceChat
2 Years Ago
Add new types to AccessorFunc (#1800)
2 Years Ago
Optimized string.Comma. (#1513) * Optimized string.Comma. * code style fixes Co-authored-by: howmanysmall <9477871+1@iechs.org> Co-authored-by: Rubat <3299036+robotboy655@users.noreply.github.com>
2 Years Ago
add math.DistToSqr (#1844)
2 Years Ago
Additional check for TableInherit function (#1830) If you write argument in base entity like a string and then overwrite it like table you will catch error like [ERROR] lua/includes/modules/scripted_ents.lua:25: bad argument #1 to 'pairs' (table expected, got string) 1. pairs - [C]:-1 2. TableInherit - lua/includes/modules/scripted_ents.lua:25 3. TableInherit - lua/includes/modules/scripted_ents.lua:30 4. Get - lua/includes/modules/scripted_ents.lua:184 5. unknown - lua/includes/modules/scripted_ents.lua:151
2 Years Ago
Markup Library Improvements (#1732) * Markup Library Improvements - New argument to MarkupObject:Draw() (textAlign) allows for text alignment inside the maxWidth bounds (i.e. align text center, align text right) - Added MarkupObject:GetMaxWidth() - Added markup.Escape which escapes markup-sensitive characters ( & < > ) - Fixed trailing spaces on new lines - Fixed issue where new blocks were unnecessarily being split in the middle of a word - Changed pairs to ipairs - Improved code readability, cleaned up comments, removed a redundant comment * New blocks will not wrap unless preceded by a space, remove some redundant code, change name of variable and add new comment * Use lookup table for unescape string.gsub * Small optimizations - Changed blocks[ i ] to blk - Populate new_block tables during declaration rather than setting keys & values after creation * Create markup.Color which converts a Color into a string for use in <color> tags
2 Years Ago
Removed useless variable (#1832)
2 Years Ago
TTT: fix TTTCanPickup hook not denying pickup when false is returned (#1860)
2 Years Ago
TTT: PT-BR translation final update (#1859)
2 Years Ago
TTT: update PT-BR translation (#1858)
2 Years Ago
TTT: translation updates (#1857) * Add L.tip41 to Brazilian Portuguese translation * Correct inconsistencies with the date markers * Removes some translations from the Simplified Chinese translation that do not exist in the original English translation.
3 Years Ago
Fixed a potential error in duplicator tool
3 Years Ago
TTT: update Russian translation (#1847)
3 Years Ago
Added: Various handy methods replacing PANEL:AddControl() (#1702)
3 Years Ago
Problems system improvements Code style cleanups Lowercase model name in PropSelect for sorting purposes This simply matches behavior of the "old" method which ends up with lowercase keys.
3 Years Ago
hook.Add with invalid 2nd argument throws proper error (#1810)
3 Years Ago
Add SlowWalkSpeed to player_manager / GM.SetPlayerSpeed / Default player classes (#1827)
3 Years Ago
Add utility functions for using the Hammer IO system (#1530) Example usage ```lua function ENT:KeyValue( key, value ) if ( BaseClass.KeyValue ) then BaseClass.KeyValue( self, key, value ) end if ( self:SetNetworkKeyValue( key, value ) ) then return elseif ( self:AddOutputFromKeyValue( key, value ) ) then return end -- Your entity's logic goes here end function ENT:AcceptInput( name, activator, called, value ) if ( BaseClass.AcceptInput and BaseClass.AcceptInput( self, name, activator, called, value ) ) then return true end if ( self:AddOutputFromAcceptInput( name, value ) ) then return true end -- Your entity's logic goes here return false end ```
3 Years Ago
Create table.MemberValuesFromKey (#1539)
3 Years Ago
New library: math.ease (#1755) * New library: ease * ease -> math.ease * fix: call correct math.ease function probably a module leftover * Reduce repeated multiplication to powers * Reduce _G lookups and use a `module()` Co-authored-by: Tom <27384135+CupCakeR@users.noreply.github.com>
3 Years Ago
Add DComboBox:OnMenuOpened(menu) (#1659)