Garry's Mod

Facepunch Studios · Simulation

Garry's Mod patch notes · Jul 8, 2014

Experiment

The Summer update

What's new in The Summer update: 109 changes to Garry's Mod, released Jul 8, 2014.

Balance · 1

  • Tweaked default values for some tools and limits in context panels.

    tool default values and limit

Content · 4

  • Removed the loop flag from sound.PlayURL.

    removed loop flag from sound.playurl
  • Fancified Bouncy Ball.

    bouncy ball visual
  • Hidden some useless HL2 maps.

    hl2 maps visibility
  • Added right click option for lamp tool to copy settings of another lamp.

    lamp tool copy settings option

System · 57

  • Added CSoundPatch:SetDSP(dsp) and GetDSP().

    csoundpatch dsp function
  • Trace tables accept an output parameter for writing results.

    trace output parameter
  • Added __tostring to these metatables.

    tostring metamethod
  • Added gui.InternalKeyTyped(code).

    gui.internalkeytyped function
  • Player:HasWeapon and Player:GetWeapon are now shared.

    hasweapon and getweapon shared realm
  • Second argument (delay) of Entity:PlayScene is now optional.

    entity:playscene delay argument
  • Added ENT:Blocked(other).

    ent:blocked hook
  • SWEP holdtypes are now properly networked.

    swep holdtype networking
  • Entity(0) now returns the world on both server and client.

    entity(0) world return
  • Pitch clamped between -90 and 90 instead of -180 and 180.

    anglerand pitch clamp
  • Added IGModAudioChannel:PlayFile(path, flags, callback).

    audio channel playfile function
  • Added Entity:PhysicsDestroy().

    entity:physicsdestroy function
  • Moved PlayScene to the Entity metatable.

    playscene function relocation
  • Second argument of Weapon:CallOnClient is now optional.

    weapon:callonclient argument
  • Added Entity:SetLagCompensated(bool) and IsLagCompensated().

    lag compensation flag for entity
  • game.GetWorld is now shared.

    game.getworld shared realm
  • Post Process effects are no longer saved across restarts.

    post process effect persistence
  • gui.OpenURL now clamps URLs to 511 characters max.

    gui.openurl url length limit
  • Added Angle:SnapTo(component, degrees).

    angle:snapto function
  • Deprecated settings/controls/*.txt files.

    settings/controls/*.txt support
  • Added StartTouch, Touch, EndTouch hooks to scripted effects.

    scripted effect touch hook
  • Added team.SetColor(index, color).

    team.setcolor function
  • Added Entity:SetLOD(lod=-1).

    entity:setlod function
  • Accept a third parameter that prevents keys from becoming lowercased when true.

    keyvaluestotable lowercase preservation
  • Removed support for vm_origin and vm_angles from GM:CalcView.

    vm_origin and vm_angles support in calcview
  • Added safeguards to mesh library functions.

    mesh library safeguard
  • Optimized vgui.LoadControlsFromString.

    vgui.loadcontrolsfromstring performance
  • draw.SimpleTextOutlined now returns the same thing as draw.SimpleText.

    draw.simpletextoutlined return value
  • Added Player:SetAllowWeaponsInVehicle(bool) and GetAllowWeaponsInVehicle().

    weapons in vehicles setting
  • Added IGModAudioChannel:EnableLooping(bool).

    audio channel looping
  • Changed Entity:PhysicsInitBox to be consistent with PhysicsInitConvex, no longer creating broken physics objects in some cases.

    physicsinitbox consistency
  • Vector and angle access using numerical index is now slightly faster.

    vector and angle numerical index access speed
  • Added Weapon:GetHoldType().

    weapon:getholdtype function
  • Added optional second argument controlling expiry time.

    setphysicsattacker expiry argument
  • Added util.SharedRandom(uniqueName, min, max, additionalSeed=0).

    util.sharedrandom function
  • Updated LuaJIT to version 2.0.3.

    luajit version
  • Added IsColor, net.WriteColor, net.ReadColor.

    color network and type function
  • Added PhysObj:GetName().

    physobj getname function
  • Added the TTTPlayerUsedHealthstation hook.

    tttplayerusedhealthstation hook
  • Entities can now have up to 64 DT vars of each type (except strings).

    dt var limit
  • Added navmesh.GetNavAreaCount, GetNavArea, GetNavAreaByID, BeginGeneration, IsGenerating, GetPlayerSpawnName, SetPlayerSpawnName, AddWalkableSeed, ClearWalkableSeeds.

    navmesh function
  • Callbacks receive error ID and name as second and third parameters on error.

    sound.playfile and playurl error callback
  • Added Color:__tostring, Color:__eq and Color:ToHSV.

    color metamethods and tohsv
  • Made player_manager.TranslateToPlayerModelName case insensitive.

    translatetoplayermodelname case sensitivity
  • Moved Disposition, GetActivity, IsNPCMoving, IsUnreachable to NPC metatable with renamed IsMoving.

    npc function relocation
  • Added CUserCmd:SelectWeapon(weapon_ent).

    cusercmd selectweapon function
  • Entity:GetMaxHealth is shared again and properly networked.

    getmaxhealth networking
  • Added Draw, IsUnderwater, GetSizeX, GetSizeY, IsRoughlySquare, IsFlat, GetZ, IsOverlapping, Contains, IsCoplanar, GetClosestPointOnArea, IsVisible, GetCorner.

    cnavarea function
  • Moved these Player functions to Lua.

    freeze and god mode functions relocation
  • Added lag compensation to the crowbar's secondary attack.

    lag compensation for crowbar secondary attack
  • Loose .vcd files can now be loaded without being compiled into scenes.image.

    loose .vcd file loading
  • Entity:DrawViewModel takes an optional second argument selecting the viewmodel (default 0).

    drawviewmodel optional argument
  • Kick/ban reasons are now optional and may contain newlines.

    player:kick and ban reason
  • Updated jQuery/AngularJS.

    jquery/angularjs version
  • Added Entity:IsDormant().

    entity:isdormant function
  • Added game.SetSkillLevel(int) and game.GetSkillLevel().

    skill level function
  • Added util.BlastDamageInfo(dmginfo, origin, radius).

    util.blastdamageinfo function

UI · 7

  • Bots are no longer counted towards player count in server browser.

    server browser player count
  • Improved context menu properties in various ways.

    context menu property
  • MsgC can now print text in several colors in a single call.

    msgc multi-color printing
  • Addons and games are sorted alphabetically in Browse.

    browse addon and game sorting
  • Lua errors notification only stays for 10 seconds instead of 30.

    lua errors notification duration
  • Clicking Resize in spawnicon right click menu no longer automatically rerenders the icon.

    spawnicon resize rerender
  • Updated server browser looks.

    server browser look

Fix · 39

  • Fixed derma.SkinTexture.

    derma.skintexture
  • Fixed return values of draw.SimpleText.

    draw.simpletext return value
  • Fixed a minor issue with teleporter effects.

    teleporter effect
  • Files with an incorrect extension can no longer be loaded as modules.

    module loading of incorrectly extended file
  • Fixed NPC sound functions not calling their engine equivalents.

    npc sound functions not calling engine equivalent
  • Fixed SMG viewmodel animation glitch when firing exactly 3 shots in a single burst.

    smg viewmodel animation glitch
  • Fixed PhysicsCollide callback missing information about the collided entity.

    physicscollide callback collided entity info
  • Fixed util.JSONToTable losing precision for large integers.

    util.jsontotable integer precision
  • Context menu now works properly when looking from camera or driving a vehicle.

    context menu behavior with camera and vehicle
  • Fixed the vehicle noclip exploit.

    vehicle noclip exploit
  • Fixed big numbers not sending properly with net.WriteTable.

    big number sending in net.writetable
  • Fixed another possible exploit with CNetChan::SendFile.

    cnetchan::sendfile exploit
  • Fixed some issues with Drive property and cameras.

    drive property with camera
  • Fixed Alyx gun and HL1 grenade being .357 clones.

    alyx gun and hl1 grenade being .357 clone
  • Fixed pasted ragdolls with duplicator being in T pose until touched; saves still affected.

    pasted ragdoll t pose
  • Fixed IMaterial:GetMatrix crashing the game.

    imaterial:getmatrix crash
  • Fixed util.CRC not working correctly on strings with embedded zeroes.

    util.crc embedded zeroe
  • Fixed InnerAngle and OuterAngle parameters not affecting lights created by DynamicLight().

    dynamiclight innerangle and outerangle
  • Fixed longstanding thruster crash exploit.

    thruster crash exploit
  • Now properly creates scripted panels.

    vgui.loadcontrolsfromfile/string scripted panel
  • Fixed inaccurate text selection in RichText controls.

    richtext text selection
  • Fixed gmod_admin_cleanup/gmod_cleanup errors when run in a dedicated server console.

    gmod_admin_cleanup/gmod_cleanup errors on dedicated server
  • Fixed Entity:GetBoneController returning a truncated value.

    getbonecontroller truncated value
  • Fixed snow footsteps.

    snow footstep
  • Fixed a console crash on some machines.

    console crash
  • Admin commands no longer appear in "last words".

    admin commands in last word
  • Fixed Entity:SetHitboxSet not working properly with an integer parameter.

    sethitboxset integer parameter
  • Fixed Entity:PhysicsFromMesh building a deformed collision mesh.

    physicsfrommesh deformed collision mesh
  • Fixed some textures on gm_construct having an incorrect normal map when running under DX8.

    normal map under dx8
  • Fixed an exploit allowing access to any file on a client machine.

    client file access exploit
  • Fixed env_microphone not always transmitting NPC voices in multiplayer.

    npc voice transmission
  • Fixed shipped weapons creating errors when given to NPCs.

    shipped weapons errors on npc
  • Fixed sound.Add not working on dedicated servers.

    sound.add on dedicated server
  • Fixed vehicles not duplicating their skin, bodygroups, etc.

    vehicle skin, bodygroup duplication
  • Fixed util.TableToJSON crashing when passed a table with keys that aren't strings or numbers.

    util.tabletojson crash on invalid key
  • Fixed vehicle third person affecting cameras.

    vehicle third person camera
  • Fixed item pickups not being collectable in some cases.

    item pickup collection
  • Fixed ents.FindByClass not interpreting wildcards correctly.

    ents.findbyclass wildcard
  • Fixed SimpleDoF to properly work with cameras.

    simpledof camera compatibility

Also in this patch1

  • Reverted Entity:IsValid to its old behaviour.

    entity:isvalid behavior