792 Commits over 2,740 Days - 0.01cph!
NoDrop NPC spawn fix (#1494)
* NoDrop NPC spawn fix
- Add NoDrop to multiple NPCs to fix them spawning below platforms/displacements. This is best shown spawning a rollermine or combine camera on this platform in gm_construct:
![](https://i.imgur.com/5pxiD7k.jpg)
DropToFloor's trace starts in the platform and does not hit the displacement below, so it will drop the NPC to the floor underneath the map. The NPCs chosen for this parameter do not rely on starting on the ground and can be spawned anywhere.
- Fixed NoDrop not applying to duped NPCs.
- Changed some raw numbers to SF_ enums.
* NoDrop duplicator fix
"noclip" drive mode can be exited now
Also clean up the files
Searching full model path works now
Trails are clamped in Dupe func, not tool
Also discard 0 start 0 end size trails
Added info_survivor_rescue spawnpoints
Removed info_survivor_position for the time being, c1m4_atrium has one of those in a box under the map
Updated spawnmenu.ActivateTool
DColorButton: Added ability to disable the tooltip (#1583)
Optimize table.Count comparisons (#1571)
* Optimize table.Count comparisons
1) Remove unnecessary use of table.Count in TTT (table is sequential).
2) Remove table.Count from duplicator icon generation and keep count in the already existing loop
* minor changes
Fixed HL1 wep sounds and world models
Options menu tab stuff
Physics Gun => PHYSICS GUN
Only affects player's inventory, not spawn menu
HL1 stuff in spawnmenu
Also changed up some HL2 names & rearranged NPC weapons in order of usefulness
fix for using the CMenu in nonvehicle entities (#1581)
* fix for using the CMenu in nonvehicle entities
improved version of my fix.
earlier description:
if you open the context menu while in a prop_vehicle_crane you will get a lua error like this
[ERROR] lua/includes/modules/properties.lua:114: attempt to call method 'GetThirdPersonMode' (a nil value)
1. GetHovered - lua/includes/modules/properties.lua:114
2. fn - lua/includes/modules/properties.lua:174
3. Run - addons/ulib_557962238/lua/ulib/shared/hook.lua:109
4. fn - lua/includes/modules/halo.lua:149
5. unknown - addons/ulib_557962238/lua/ulib/shared/hook.lua:109
this is because LocalPlayer():GetVehicle() return the crane you are in, so the IsValid check will return true, but since it's not an actual vehicle, calling a Vehicle function will cause a lua error.
Restore encoding for gmod_eng.txt
Revert Lua gun translations to normal caps (#1582)
Upon popular demand. Fixes garrysmod-issues/issues/3832.
DCategoryList reacts to SetBGColor
Fixes garrysmod-issues/issues/3815
Merge branch 'master' of garrysmod
TTT: Remove util.SafeRemoveHook (#1574)
Minor spawn icon editor changes
stop perform layout infintie loops on sidebar
added tab icons
Changes to DFileBrowser and DHorizontalScroller
DFileBrowser has an example in derma_controls
Added DHorizontalScroller.GetCanvas, ScrollToChild, SetScroll
DPropertySheet tabs can be right clicked to quickly switch between tabs when they overflow DPropertySheet's width
Dnumberwang code style (PR#1356)
fixes to ENT:BeingLookedAtByLocalPlayer
And people wonder why PRs don't get merged
Co-Authored-By: Collin (code_gs) <collings509@gmail.com>
ENT:BeingLookedAtByLocalPlayer optimisation (#1514)
* ENT:BeingLookedAtByLocalPlayer optimisation
- ENT.ViewDistance can now set the maximum distance the worldtip is displayed at when looking at an entity.
- The distance check now uses the view entity's ShootPos if its a player, just like the local player does. This makes the result consistent between a player and spectators.
- Dist->DistToSqr
- Order of operations changed in ENT:Think and ENT:BeingLookedAtByLocalPlayer to do traces last - optimises entities too far from the player from doing an unnecessary eyetrace.
* Changed ViewDistance to MaxWorldTipDistance
Added SetInterval and GetInterval to DNumberWang (#1356)
Allows for an easier way to add and subtract numbers higher/lower than 1 in DNumberWang.
TTT: More table.IsEmpty (#1570)
Hydraulic toggle option
And a small bugfix which required you to press the keybind twice before the hydraulic would work
TTT: Optimizations using table.IsEmpty (#1569)
Checkbox visual clarity improvement
Its for Hammer but affects everything else too
Add HL1 and Garry's Mod language strings (#1562)
* Update language files
* Fix conflicts
* Fix conflicts v2
GitHub really hates text files
* Reverted weapon_cubemap capitalisation changes
* Updated HL1 weapons
Optimizations using table.IsEmpty (#1568)
make Player:SetPData and Player:RemovePData actually return a boolean (#1394)
* make Player:SetPData and Player:RemovePData actually return a boolean
According to the wiki [SetPData](https://wiki.garrysmod.com/page/Player/SetPData) and [RemovePData](https://wiki.garrysmod.com/page/Player/RemovePData) should return a boolean on success/failure which at the moment they're not.
Additionally it would be optimal if they would also throw an error (sql.LastError()) if it fails so people actually know why their stuff didn't get stored.
Add Tooltip accessors (#998)
* Add Tooltip accessors
Solves garrysmod-requests/issues/514
Style consistency for weld.lua
Add MarkupObject metatable to the registry (#1541)
Co-Authored-By: Collin (code_gs) <collings509@gmail.com>
Remove MarkupObject:Create() (#1542)
This function shouldn't exist - it's a class function of the MarkupObject that... creates a MarkupObject. Calling it on an existing MarkupObject creates an object that now has the metatable of the previous MarkupObject which is improper and inconsistent behaviour for a class function. Even the single use of it calls the function on the MarkupObject metatable as if it were an object. It also updates the __index of the metatable to itself every time needlessly instead of setting it once outright.
This will break no compatibility with previous code since the MarkupObject metatable isn't available outside of a single file, and calling it on an actual MarkupObject results in bad behaviour.
add nocollide to weld tool (#1544)
helpfull function
Changed table.Count to table.IsEmpty in halos
Merge pull request #1565 from Kefta/patch-109
Changed table.Count to table.IsEmpty in halos
Add table.IsEmpty
More efficient method
Credits to @Kefta
Merge pull request #1538 from WilliamVenner/table_isempty
Create table.IsEmpty
Spawnmenu editing hints
Halo.add with no entities silently fails
ImageCheckBox.Set/GetChecked
Flechette effects iin Mp fixed
Fixed faceposer UI bug
was hiding last flex accidentally
Icons for spawnlist rightclicks
lower screen res css fixes
Language files
Fix flechette console spam
Moved weapon script files
Updated language files
Some HL1 translations
Added missiing stuff
How the hell did this not get into the previous commit
ENT:HandleAnimEvent for nextbots
TTT: granular ammo pickup (#1550)
Only ammo the player can carry is taken from ammo boxes, if the box has more than a quarter left it stays around and the remainder can still be picked up.
Player Class changes
Player classes are set on all clients automatically clientside
Added hook GM:PlayerClassChanged
Player classes are initialized as soon as they are set, instead of on first hook call
Explanation to !IsFirstTimePredicted()
Nextbot:FireAnimationEvent dummy/docs
Fix toolgun ghost being left behind (#1557)
Backgrounds do not change in loading
prop_effect changes
Bodygroups and making MakeEffect usable
Serverlist changes
Stop refreshing server list upon joining a server or switching between server list types (Internet, LAN, favorites, etc)
Double the amount of servers shown per gamemode
Do not hide "Stop refreshing" button while browsing servers of a gamemode
Reduced rankiing impact of empty servers, increased ranking impact of full servers
Server ranking based on player count now starts earlier
Fix copypasta error
Moved default spawnlists
Moved default spawnlists to settings/spawnlist_default
Fixes for SWEP/SENT table recreation
Also makes ENT/SWEP table inheritance more consistent
Panel changes/fixes
Fixes for GetCount not updating
Hide tabs in icon editor
Spawnmenu icon editor doesn't display an empty Bodygroups tab
Invisible children of DHorizontalScroller will no longer affect position of the visible panels
Fix for prop_effect bodygroups
Fixed duped effects not having AttachedEntityInfo + minor effect fixes (#1553)
* Fixed duped prop_effects not having their AttachedEntityInfo table (meaning no entity mods, skin/bodygroup changes, bone manips, etc.) ever since the MakeEffect function was added. This value used to be copied over because duped prop_effects were being spawned with GenericDuplicatorFunction, which dumps the entire dupe data table into the new entity. Now that they have their own spawn function, we have to copy the value over manually.
* Fixed prop spawn effect not working on prop_effects because it was trying to apply them to the prop_effect itself instead of its AttachedEntity
* SWEP spawn effect
Toolgun Think fixes (#1547)
- Check owner validity - fixes rare edge case of the owner being invalid when Think is called and cases where the owner is an NPC
- Check last tool object validity before releasing its entity - fixes error when switching from invalid mode to another invalid mode
- Remove a return when a mode switch occurs and the last mode was invalid, causing the first Think after a mode switch to be skipped - fixes garrysmod-issues/issues/3682
Fix invalid table.GetWinningKey behavior. (#1554)
Add new Blade Symphony map to the menu (#1540)
Fix missing argument (#1549)