Garry's Mod

Facepunch Studios · Simulation

Garry's Mod patch notes · Oct 17, 2018

Experiment

October 2018 Update is live!

What's new in October 2018 Update is live!: 98 changes to Garry's Mod, released Oct 17, 2018.

Balance · 3

  • Entity.SetModelScale is now limited to +-400 on the server (unchanged on the client).

    model scale limit
  • npc_sniper no longer becomes pacifist after one player kill.

    pacifist behavior
  • Made minor changes to NPC difficulty to match Half-Life games, via community contribution.

    npc difficulty

Content · 2

  • Ragdolls can now be ignited.

    ragdoll ignition
  • Restored Half-Life 1 turret entities.

    half-life 1 turret entities restored

Controls · 1

  • Added voice_overdrive, volume and _restart on client to the blocked console command list.

    blocked console command

System · 33

  • Added ProjectedTexture:GetQuadraticAttenuation().

    lua api addition
  • Added player.GetByAccountID( id ), via community contribution.

    lua api addition
  • Added CTakeDamageInfo.__tostring.

    lua api addition
  • Downloading workshop items when joining servers now deletes useless .compressed files that waste space.

    workshop download cleanup
  • Net messages can no longer be sent when there are no players on the server.

    net message sending with no player
  • Removed some entries from surfaceproperites.txt to fit the 128 entry limit.

    surface property entry
  • Added DMG_SNIPER and DMG_MISSILEDEFENSE damage constants.

    damage type constant
  • The player_manager entity can no longer be removed.

    entity removal protection
  • Updated TTT to its latest version.

    ttt version
  • Added input.GetKeyCode(), which works opposite of input.GetKeyName.

    lua api addition
  • Entity.GetInternalVariable now supports all field types as GetSaveTable/SetSaveValue does.

    field type support
  • prop_vehicle and prop_vehicle_driveable are now considered Vehicles by Lua.

    lua vehicle classification
  • Added ProjectedTexture:SetConstantAttenuation().

    lua api addition
  • Added ProjectedTexture:SetQuadraticAttenuation().

    lua api addition
  • Entity.SetSaveValue can now handle array fields, just like GetSaveTable().

    array field setting
  • Added util.GetSurfaceData().

    lua api addition
  • Added Entity.GetWorldTransformMatrix().

    lua api addition
  • Added a return value to DColumnSheet.AddSheet, via community contribution.

    lua api return value
  • Added ProjectedTexture:GetLinearAttenuation().

    lua api addition
  • Added ProjectedTexture:SetLinearAttenuation().

    lua api addition
  • The only argument of Vehicle.GetVehicleViewPosition is now optional.

    optional argument
  • mountdepots.txt is now automatically created if it doesn't exist so dedicated server owners can edit it.

    mountdepots.txt auto-creation
  • Re-enabled the monster_bigmomma HP recovery system.

    health recovery system
  • Added support for $treesway shader parameters, which are affected by env_wind entities on existing maps.

    treesway shader parameter support
  • Added render.WorldMaterialOverride.

    lua api addition
  • Added PhysObj.GetPositionMatrix().

    lua api addition
  • Calling net.Start() while a net message is already active now displays a message.

    net.start warning
  • Added CNavArea.GetPlace().

    lua api addition
  • Added CNavArea.SetPlace().

    lua api addition
  • Added the player_connect_client gameevent.

    gameevent addition
  • Added ProjectedTexture:GetConstantAttenuation().

    lua api addition
  • Increased maximum key length of key values in BSP from 32 to 64.

    bsp key value max length
  • Added Half-Life: Source CLASS_ enums.

    lua api addition

UI · 3

  • Added a quick search feature to the Material tool.

    material tool search
  • DLabelURL's color functions now work consistently with DLabel's.

    dlabelurl color function
  • Fixed chatbox filters looking weird.

    chatbox filters appearance

Fix · 55

  • Fixed FL_ANIMDUCKING not resetting when entering a vehicle.

    crouch flag reset
  • Fixed a crash issue with Half-Life: Source monster_*_dead NPCs.

    crash
  • Player.Kick no longer fails with overlong reasons; they are now cut off at about 512 characters.

    kick reason length
  • Fixed several vehicle functions returning garbage values in certain cases.

    garbage return value
  • Fixed purple blood color on HL1 alien NPCs.

    blood color
  • Fixed default join messages not working on dedicated servers.

    default join message
  • Fixed a crash issue with monster_flyer.

    crash
  • Fixed HTTP() cutting off the post body at the NULL byte.

    http post body truncation
  • Fixed npc_barnacle not picking up players from vehicles.

    player pickup from vehicle
  • Fixed RebuildSpawnIcon() not taking bodygroups into account.

    spawn icon bodygroup
  • PlayerUse no longer blocks using when Lua doesn't return a value or returns a non-boolean.

    playeruse blocking
  • Fixed some scenes not playing.

    scenes not playing
  • These functions now return an empty table where they previously returned nil.

    nil return value
  • Fixed a crash issue with Vehicle.GetVehicleViewPosition.

    crash
  • Fixed nav file error 4 (out of date) being displayed when the nav file is actually up to date.

    nav file out-of-date error
  • IGModAudioChannel:IsValid now reflects the validity of the sound channel instead of testing existence of the Lua object.

    channel validity check
  • Failed-to-send net messages now reset the current net message.

    net message reset on failed send
  • Fixed a potential AI pathfinding crash.

    ai pathfinding crash
  • Keys in mount.cfg are now marked as mounted for IsMounted() if they are in the list of mountable games.

    mounted game detection
  • Fixed the game crashing when assigning non-string keys onto players and entities.

    crash on non-string key assignment
  • Addon anim-type SENTs are now credited as inflictor rather than attacker when thrown into a player with the gravity gun.

    inflictor credit for gravity gun throw
  • Smooth scrape sounds are no longer replaced by rough scrape sounds for glass and tile textures.

    scrape sound replacement
  • Fixed HL2 barney appearing on the HL1 map c1a1.

    npc appearing on wrong map
  • Restored Gib Model functionality of func_breakable from HL1.

    gib model functionality
  • CLuaEmitter.Add will now also initialize startSize.

    startsize initialization
  • Entity.SetHitboxSet no longer assigns non-existent hitbox sets when given a string, which stops console warning spam.

    hitbox set console spam
  • Vector.WithinAABox now orders vectors on its own.

    aabox ordering
  • Spawnmenu icons no longer save images of missing models to disk.

    spawnmenu icon saving
  • Fixed an error with empty nextbox NPCs, via community contribution.

    error with empty nextbox npc
  • Most IGModAudioChannel functions now also check for channel validity.

    channel validity check
  • SWEP holdtype is now updated clientside whenever the server sends a holdtype update.

    swep holdtype update
  • Fixed a crash on srcds when combine soldiers with smg1 die and no player is in the first server slot.

    crash on srcd
  • Fixed the model of monster_hevsuit_dead.

    model
  • Fixed some effects, mostly on NPCs, not working in multiplayer.

    effects not working in multiplayer
  • Fixed DMenu's non-self-deleting submenus not opening in some cases.

    dmenu submenu opening
  • Added distance and entity validity checks for default properties to prevent clientside script exploitation.

    default property exploit
  • Fixed flashlight sound stopping weapon sounds.

    flashlight sound interfering with weapon sound
  • These functions no longer error on no input and return an empty string when given an empty string.

    compression and base64 errors on empty input
  • These no longer iterate over Inputs and Outputs.

    save table iteration
  • Fixed HL1 and HL2 episodes not displaying their chapter titles and other on-screen text.

    chapter titles and on-screen text display
  • Entity.GetSaveTable now works properly with most array fields, which show up as 1-based tables in Lua.

    array field handling in save table
  • DoModal no longer works without a visible cursor for all panels, not just Frame.

    domodal cursor requirement
  • Fixed func_breakable_surf crashing when damaged by DMG_BLAST with no inflictor.

    crash
  • IGModAudioChannel.__gc no longer crashes the game in some cases.

    crash
  • Fixed a rare crash with npc_combie_s trying to shoot a gun they don't have.

    rare crash
  • Caching is now consistent between these two eye trace functions, via community contribution.

    eye trace caching consistency
  • Fixed crash issues with these particle effect functions.

    crash
  • util.SpriteTrail no longer crashes the game if the material is not given the .vmt extension.

    crash without vmt extension
  • Fixed some HL1 NPCs not talking in multiplayer.

    npcs not talking in multiplayer
  • util.SpriteTrail no longer silently fails halfway through when not given a color.

    silent failure without color
  • Nav file errors now display the actual error by name rather than error ID.

    nav file error display
  • CTakeDamageInfo.GetDamageType now properly returns an unsigned int.

    damage type return value
  • Dragging and resizing DFrame as a child element now works properly, via community contribution.

    dframe dragging and resizing as child
  • util.GetSurfacePropName now returns an empty string for out of bounds input.

    out of bounds return value
  • JSON functions can now handle NULL bytes properly.

    null byte handling in json

General · 1

  • Updated language files through community contribution.

    general