Garry's Mod

Facepunch Studios · Simulation

Garry's Mod patch notes · May 29, 2018

Experiment

May 2018 Update is out!

What's new in May 2018 Update is out!: 96 changes to Garry's Mod, released May 29, 2018.

Content · 3

  • Added support for BodyGroups in the Sandbox NPC list.

    bodygroups support in sandbox npc list
  • Added vid_sound 1/0 to control sound recording of gm_video (community contribution).

    gm_video sound recording control
  • Updated default spawnlists with Portal 1, Builder and HL2: Characters categories and added a Garry's Mod category; affects only new players.

    default spawnlist

Controls · 2

  • Eye Poser and Finger Poser Tools can now be used on Effects.

    eye and finger poser tool usage
  • Middle mouse clicking a slider's knob now resets it to its default value.

    slider reset

System · 41

  • Added better bounds checking to Entity:GetSequenceActivity.

    getsequenceactivity bounds checking
  • Entity.AddCallback now errors instead of silently failing when the second argument is not a function.

    addcallback error handling
  • Added PhysObj.ApplyTorqueCenter function.

    physobj.applytorquecenter api
  • Added Angle.Add function.

    angle.add api
  • Removed game/bin/sdk.fgd, as it was unused and contained non-existent or duplicate entities.

    sdk.fgd file
  • GMPublish now works better with big addons.

    gmpublish large addon handling
  • Added render.OverrideBlend, replacing render.OverrideBlendFunc.

    render.overrideblend api
  • Added PhysObj.SetContents and GetContents functions.

    physobj contents accessor
  • Added game.GetAmmoNPCDamage, GetAmmoPlayerDamage, GetAmmoForce and GetAmmoDamageType functions.

    ammo damage api
  • Added Player.IsSprinting function.

    player.issprinting api
  • Better and faster implementations of SortedPairs and similar functions (community contribution).

    sortedpairs performance
  • Added BLENDFUNC enums.

    blendfunc enum
  • Added Angle.Sub function.

    angle.sub api
  • Added TYPE_PHYSCOLLIDE enum.

    type_physcollide enum
  • Implemented DNumSlider.GetText.

    dnumslider.gettext
  • util.TableToJSON returns nil unless the top-most element is an object or array.

    util.tabletojson return value
  • Added Angle.Mul function.

    angle.mul api
  • Vector/Angle Mul and Div methods now have correct type checking and errors.

    vector/angle mul and div type checking
  • Micro optimisation to IsValid (community contribution).

    isvalid performance
  • Changed the default value of r_hunkalloclightmaps to 0.

    r_hunkalloclightmaps default
  • Language files were updated.

    language file
  • Added CNavLadder.GetTop, GetBottom and GetWidth functions.

    cnavladder accessor
  • Added PhysObj.GetShadowPos, GetShadowAngles and GetVelocityAtPoint functions.

    physobj shadow and velocity accessor
  • Added Entity.GetSequenceMovement function.

    entity.getsequencemovement api
  • Added ents.FindAlongRay function.

    ents.findalongray api
  • Player.SetAmmo now has proper ammo typeID bounds checking and a max ammo check (0-9999).

    player.setammo bounds check
  • Added PLAYERANIMEVENT_CANCEL_RELOAD enum.

    playeranimevent_cancel_reload enum
  • Added file.Rename function with the same restrictions as file.Write/file.Open.

    file.rename api
  • file.Exists and file.IsDir now return false where they previously returned nil.

    file.exists and file.isdir return value
  • Slightly improved performance of player animations (community contribution).

    player animation performance
  • Added CreatePhysCollidesFromModel function.

    createphyscollidesfrommodel api
  • Added DNumSlider.GetDefaultValue, SetDefaultValue and ResetToDefaultValue functions.

    dnumslider default value api
  • Faceposer now supports 128 flexes instead of 64.

    faceposer flex limit
  • Added Angle.Div and Angle.__div functions.

    angle.div and __div api
  • Added serverlist.AddCurrentServerToFavorites and CanAddServerToFavorites functions.

    serverlist favorites api
  • Added engine.TickCount function.

    engine.tickcount api
  • Reduced lag caused by a very large number of Sandbox notifications.

    sandbox notification lag
  • Added navmesh.GetGroundHeight function.

    navmesh.getgroundheight api
  • Added Vector.Div function.

    vector.div api
  • Updated .fgd files for Hammer to include GMod specific Sandbox key values.

    hammer .fgd file
  • Added ConVar support for plydmg, npcdmg and maxcarry keys of game.AddAmmoType.

    ammo type convar support

UI · 10

  • Some HL2 map icons were updated to be more recognizable.

    hl2 map icon
  • Decimal changes made to the DNumberScratch pop up window (community contribution).

    dnumberscratch pop-up decimal
  • Flex names are now displayed more prettily.

    flex name display
  • Added a 'Favourite this server' button to the bottom bar of the main menu when on a server.

    favourite server button
  • Flex list text is no longer cut off at the bottom.

    flex list text clipping
  • Secondary presets no longer occupy 3 rows when only 1 or 2 rows are populated.

    secondary presets layout
  • Faceposer has a quick filter feature for searching flexes by name.

    faceposer quick filter
  • Moved the Map and Source Engine Version text when console is open a bit down so it can be read.

    console map and engine version text position
  • The orange ring around the face is better placed so it no longer sits in the stomach of certain TF2 models.

    orange face ring placement
  • Added entity classname and index to the collision rules error message.

    collision rule error message

Fix · 40

  • Fixed prediction errors caused by using Player.SetHull(Ducked).

    prediction errors from sethull
  • Restored functionality of env_wind.

    env_wind functionality
  • Half-Life: Source Headcrabs no longer break Half-Life 2 Headcrabs and vice versa.

    headcrab cross-breaking
  • Fixed Paint Tool's reload not removing duplicator entity modifiers (community contribution).

    paint tool reload duplicator modifier
  • Player.IsFullyAuthenticated no longer returns the player object in some cases.

    isfullyauthenticated return value
  • Reduced probability of the game crashing when saving a dupe.

    game crash when saving dupe
  • Context panel now properly clears itself when the targeted entity becomes invalid.

    context panel clearing
  • FL_ANIMDUCKING is now used and set automatically.

    fl_animducking flag
  • GetCreator now returns NULL for no creator instead of nil (community contribution).

    getcreator return value
  • Entity.DeleteOnRemove can no longer remove players or the world.

    deleteonremove removing players or world
  • Bone manipulation now properly affects hit boxes of Players and NPCs.

    bone manipulation hit box
  • Toolgun holdtype changed from pistol to revolver to match the view model (community contribution).

    toolgun holdtype
  • Fixed Entity.GetAnimInfo not working at all.

    getaniminfo not working
  • 3rd person crouching animations were improved to better represent what happens in 1st person.

    3rd person crouching animation
  • Fixed util.DecalEx not working on entities with brush models.

    util.decalex on brush model
  • game.CleanUpMap no longer crashes on LZMA compressed maps.

    crash on lzma map
  • render.DrawSphere no longer draws one less longitude step than specified.

    render.drawsphere longitude step
  • Fixed a stack overflow in DListView.

    stack overflow
  • Fixed Half-Life: Source Scientists always having random skins.

    scientist random skin
  • Restored functionality of monster_mortar to fix a crash on a Half-Life Source map.

    crash on half-life source map
  • These functions now return NULL entity instead of nil where they previously returned nil.

    null entity return type
  • Fixed a crash having to do with playing sounds.

    crash related to sound playback
  • 3rd person reload animations are now automatically stopped when switching weapons.

    3rd person reload animation
  • ScriptedEntityType field now works equally on all entity types.

    scriptedentitytype field consistency
  • Fixed Entity.SetGravity resetting on players when they use ladders.

    gravity resetting on ladder
  • Faceposer clear function now properly resets all values to defaults so faces are no longer broken.

    faceposer clear function
  • Fixed Half-Life: Source Tentacles not dealing damage.

    tentacle damage
  • Fixed game.AddDecal not precaching added decals, which broke util.DecalMaterial in some cases.

    game.adddecal precaching
  • PrintTable will no longer try to print the table it is currently printing (community contribution).

    printtable self-recursion
  • Fixed calling Player.Spawn() on a player inside a vehicle leaving NPCs unable to see them.

    spawn inside vehicle invalid state
  • Fixed util.Base64Encode output for 0 and 1 byte inputs.

    base64 encoding of 0 and 1 byte input
  • Bone manipulation now works properly on players.

    bone manipulation on player
  • Entity.IsRagdoll attempts to return the proper value when the entity is marked for deletion.

    isragdoll return value
  • Fixed pick up HUD (ammo, weapons, etc.) not working properly for some time after HL2 campaign loading screens.

    pickup hud after loading screen
  • Fixed util.DecalEx scale arguments not working.

    util.decalex scale argument
  • Fixed entities inside player clip brushes not being usable by +use on Half Life Source maps.

    +use on entities inside player clip brush
  • Fixed util.DecalEx using an inverted normal for non brush entities.

    util.decalex normal inversion
  • Medkit Weapon now heals up to max health properly and lag compensates when used by players (community contribution).

    medkit healing and lag compensation
  • Vectors now work in Entity.GetKeyValues, with added support for FIELD_SOUNDNAME and FIELD_EHANDLE.

    entity.getkeyvalues vectors and field type
  • Right clicking a model no longer breaks the face on certain models like HWM TF2 models or Alyx.

    face breaking on right click