Garry's Mod

Facepunch Studios · Simulation

Garry's Mod patch notes · Jul 1, 2021

Experiment

July 2021 Patch

What's new in July 2021 Patch: 33 changes to Garry's Mod, released Jul 1, 2021.

Content · 4

  • xalign and yalign arguments were added to draw.WordBox (community contribution).

    xalign and yalign argument
  • A second argument was added returning bone matrices and parent IDs keyed by bone ID.

    util.getmodelmeshes second argument
  • A new IsConCommandBlocked function was added.

    isconcommandblocked function
  • New hashing functions were added that take a string and return a hex string.

    util.md5/sha1/sha256 function

System · 7

  • PhysicsFromMesh can now also accept just a list of vectors.

    entity.physicsfrommesh vector input
  • More debug info was added to the Invalid HitboxSet warning.

    hitboxset warning debug info
  • An experimental network-to-clients option was added as a third argument, defaulting to true.

    network to clients option for bone manipulation
  • Stack overflow protection was applied to util.TableToJSON.

    util.tabletojson stack overflow protection
  • Depth is limited to 5000 to avoid stack overflows.

    util.jsontotable depth limit
  • C++ now takes and returns 4 numbers, with a Lua override using color objects, expected to be about 2x faster and returning proper color objects.

    entity.set/getcolor implementation
  • A console message is now displayed when ServerDL fails to download something.

    serverdl failure reporting

UI · 2

  • The clientside queue now shows the addon name when running blocked concommands.

    blocked concommand console queue addon name
  • A player mic volume slider was added to the TTT scoreboard (community contribution).

    player mic volume slider

Fix · 20

  • Errors from GetInt() when text entry is not numeric are fixed (community contribution).

    getint() errors on non-numeric text entry
  • Crashes, missing textures and error models when changing maps or servers are fixed.

    crashes, missing textures and error models on map/server change
  • Lua errors when creating 0 width ropes are fixed.

    lua errors from zero-width rope
  • Duplicated Motors, Winches and Hydraulics could be activated by any player on the server; this is fixed.

    duplicated motor/winch/hydraulic activation
  • The DownloadingFile javascript function fires again for Fast/ServerDL after a regression.

    downloadingfile javascript callback for fast/serverdl
  • Some entities had improper color/material in the dupe icon preview; this is fixed.

    color/material in dupe icon preview
  • table.Shuffle in TTT is fixed (community contribution).

    table.shuffle
  • ent_remove no longer allows removal of the world entity.

    world entity removal via ent_remove
  • Entity FXBlend cache resets when the view changes mid-frame, fixing point_camera messing up entity fade distances.

    fxblend cache reset on view change
  • A server crash when npc_fastzombie attacks a non-player entity is fixed.

    server crash when fast zombie attacks non-player entity
  • Safeguards were added to unlink from previous parent, prevent self-parenting, and check for cyclic parents.

    entity.setmoveparent crash and infinite loop safeguard
  • The duplicator now copies Lua-set color and material overrides, not only Sandbox tool ones.

    duplicator copying of lua-set color and material override
  • Entering a chair no longer causes everything to disappear for a bit.

    everything disappearing when entering a chair
  • The propspec_allow_named setting now takes effect in TTT (community contribution).

    propspec_allow_named setting
  • A server crash when item_ammo_crate is given an invalid ammo type is fixed.

    server crash on invalid ammo type
  • The net library now resets its internal variables on level change.

    net library reset on level change
  • A server crash when an NPC tries to holster a weapon_frag is fixed.

    server crash when npc holsters weapon
  • ent_remove_all can no longer delete players.

    player deletion via ent_remove_all
  • The Drive property can no longer be used on entities that are already being driven, preventing players from getting stuck in an invalid state.

    drive property on already-driven entity
  • A regression with the SetSpeed input when called with speed 0 is fixed.

    func_movelinear setspeed input with speed 0