Garry's Mod Logo
add_circle

Features

  • Added Entity.GetHitBoxHitGroup( hitbox, set )
  • Added Player.SetLastHitGroup( group )
  • Added NPC.GetCurWaypointPos()
  • Added NPC.GetNextWaypointPos()
  • Added Entity.LookupPoseParameter( name ) = id
  • Added 3rd argument to Player.SetFOV - requester entity
  • Added GM.PostEntityTakeDamage( ent, dmginfo, tookDamage )
  • Added Entity.GetLayerPlaybackRate (shared)
  • Added Panel.SetUnderlineFont( font ), sets the clickable text font for RichText panels
  • Added Panel.GetFG/BGColor()
  • Added Panel.GetSelectedTextRange() = start,end pos, works for both RichText and TextArea
  • Added Panel.Set/GetMaximumCharCount, both of which work on TextEntry and RichText
  • Added CLuaParticle.Set/GetMaterial
  • Added File.EndOfFile
  • Added Entity.RemoveInternalConstraint( num = -1 )
  • Added GM:OnEntityWaterLevelChanged( ent, old, new ) hook
  • Added BLENDFUNC_MIN and BLENDFUNC_MAX enums
  • Added GM:PlayerChangedTeam( ply, old, new ) - serverside
  • Added PhysObj.GetFrictionSnapshot()
  • steamworks.DownloadUGC's callback now has a second argument - a File object pointing to the .gma file
  • DisableClipping global now returns the previous state of Clipping
  • Added Player.SetSlowWalkSpeed( new speed )
  • Added Player.GetSlowWalkSpeed() = speed
  • Added Player.SetLadderClimbSpeed( new speed )
  • Added Player.GetLadderClimbSpeed() = speed
arrow_circle_up

Improvements

  • Allow using "Model" keyvalue from Spawnmenu on Zombie NPCs
  • Automatically remove FCVAR_ARCHIVE from replicated convars clientside
  • Made Entity.SetLayerPlaybackRate and Entity.Set/GetLayerWeight shared (currently only intended to be used on players as a trial)
  • Made Vehicle.GetDriver, Vehicle.GetPassenger, Vehicle.GetVehicleViewPosition shared
  • Added DevWarnings for trying to base surface.CreateFont fonts off of game/existing fonts
  • CTakeDamageInfo.__tostring now includes the damage value
  • Entity.StopSound now also sort of works with direct paths
  • Move certain S_RegisterSound messages to developer 1 (sound.Register)
  • Stack trace for "[ParticleEmitter:Add] Material Handle is invalid!"
  • Converted umsg.Start error messages into ErrorNoHalts
  • Not providing the first argument to umsg.Start won't create a new message and then just fail and do nothing with it
  • surface.DrawPoly with no arguments causes an expected Lua error, rather than printing a warning into console.
  • Minor optimizations to player.GetBy* functions (Community Contribution)
  • util.TypeToString now works nicer for angles (Community Contribution)
  • Better error handling for Entity.SetBonePosition, Entity.GetBonePosition, Entity.SetBoneMatrix, Entity.GetBoneMatrix
handyman

Fixed

  • Fixed SendUserMessage erroring on client (Community Contribution)
  • Fixed HSVToColor and HSLToColor freezing the game with large Hue values
  • Fixed CNavArea.ConnectTo crashing the game when we could not compute a direction between the 2 nav areas
  • Fixed DListView's non sortable columns creating duplicate panels
  • Fixed Entity.TranslatePhysBoneToBone not working on ai_serverragdolls 1 ragdolls
  • Fixed DFrame causing issues with 3D2D
  • Fixed underline not working for custom fonts
  • steamworks.DownloadUGC doesn't fail with 2 or more files downloading concurrently
  • Vehicle.SetVehicleParams doesn't unexpectedly change maxSpeed, boostMaxSpeed and maxRevSpeed when not given new values for those fields
  • Entity.SetMaterial works on Brush entities (You can now also use LightmappedGeneric materials on brush entities with SetMaterial)
  • Disabling suit zoom (Player:SetCanZoom(false)) no longer prevents firing weapons when trying to use suit zoom