Garry's Mod

Facepunch Studios · Simulation

Garry's Mod patch notes · Apr 3, 2014

Experiment

The first 2014 update

What's new in The first 2014 update: 140 changes to Garry's Mod, released Apr 3, 2014.

Content · 68

  • Added VMatrix:Identity.

    vmatrix identity
  • Added GM:EntityEmitSound.

    entityemitsound hook
  • Added Player:SetViewPunchAngles.

    player view punch angles setter
  • Added VMatrix:GetInverse.

    vmatrix getinverse
  • Added VMatrix:GetField.

    vmatrix getfield
  • Added Player:GetCurrentViewOffset.

    player current view offset getter
  • Added IGModAudioChannel:Get3DFadeDistance.

    igmodaudiochannel 3d fade distance getter
  • Added VMatrix:GetForward.

    vmatrix getforward
  • Added VMatrix:SetUp.

    vmatrix setup
  • Added IGModAudioChannel:Get3DCone.

    igmodaudiochannel 3d cone getter
  • Added VMatrix:ToTable.

    vmatrix totable
  • Added IGModAudioChannel:GetLevel.

    igmodaudiochannel getlevel
  • Added VMatrix:SetForward.

    vmatrix setforward
  • Added VMatrix:SetRight.

    vmatrix setright
  • Added VMatrix:IsRotationMatrix.

    vmatrix isrotationmatrix
  • Added Player:SetCurrentViewOffset.

    player current view offset setter
  • Added FL_* enums.

    fl enum
  • Added render.OverrideColorWriteEnable.

    color write enable override
  • Added sound.GetTable.

    sound.gettable function
  • Added IGModAudioChannel:GetLength.

    igmodaudiochannel getlength
  • Added VMatrix:GetRight.

    vmatrix getright
  • Added IGModAudioChannel:GetFileName.

    igmodaudiochannel getfilename
  • Added VMatrix:IsIdentity.

    vmatrix isidentity
  • Added chat.Open.

    chat open function
  • Added VMatrix:Set.

    vmatrix set
  • Removed PANEL:OnDeletion hook.

    panel ondeletion hook removal
  • Added sound.GetProperties.

    sound.getproperties function
  • Added system.FlashWindow.

    window flash function
  • Added IGModAudioChannel:GetPos.

    igmodaudiochannel getpo
  • Added VMatrix:GetUp.

    vmatrix getup
  • Added Entity:IsFlagSet.

    entity isflagset
  • Added IGModAudioChannel:IsLooping.

    igmodaudiochannel islooping
  • Added IGModAudioChannel:SetTime.

    igmodaudiochannel settime
  • Added chat.Close.

    chat close function
  • Added PANEL:OnRemove hook.

    panel onremove hook
  • Added Entity:AddFlags.

    entity addflag
  • Added IGModAudioChannel:Set3DCone.

    igmodaudiochannel 3d cone setter
  • Added a few requested ACT enums.

    act enum
  • Added timer.TimeLeft and timer.RepsLeft.

    timer time and repetition query function
  • Added GM:StartCommand.

    startcommand hook
  • Added render.SetLightmapTexture.

    lightmap texture function
  • Added VMatrix:SetScale.

    vmatrix setscale
  • Added render.SetWriteDepthToDestAlpha.

    depth to dest alpha writing
  • Added the GMOD_CHANNEL_* and FFT_* enums.

    gmod_channel and fft enum
  • Added IGModAudioChannel:IsOnline.

    igmodaudiochannel isonline
  • Added util.GetSurfacePropName.

    surface property name function
  • Added IGModAudioChannel:Is3D.

    igmodaudiochannel is3d
  • Added render.OverrideAlphaWriteEnable.

    alpha write enable override
  • Added VMatrix:Invert.

    vmatrix invert
  • Added render.PushRenderTarget.

    render target push function
  • Added IGModAudioChannel:FFT.

    igmodaudiochannel fft
  • Added IGModAudioChannel:GetSamplingRate.

    igmodaudiochannel getsamplingrate
  • Replaced Entity:GetTextures with Entity:GetMaterials.

    entity gettextures replacement
  • Added VMatrix:GetInverseTR.

    vmatrix getinversetr
  • Added IGModAudioChannel:GetVolume.

    igmodaudiochannel getvolume
  • Added IGModAudioChannel:Set3DFadeDistance.

    igmodaudiochannel 3d fade distance setter
  • Added VMatrix:SetField.

    vmatrix setfield
  • Added Player:GetViewPunchAngles.

    player view punch angles getter
  • Added IGModAudioChannel:SetPlaybackRate.

    igmodaudiochannel setplaybackrate
  • Added IGModAudioChannel:GetState.

    igmodaudiochannel getstate
  • Added IGModAudioChannel:GetBitsPerSample.

    igmodaudiochannel getbitspersample
  • Added render.PopRenderTarget.

    render target pop function
  • Added Entity:RemoveFlags.

    entity removeflag
  • Added VMatrix support for the ==, ~=, + and - operators.

    vmatrix operator support
  • Added VMatrix:InvertTR.

    vmatrix inverttr
  • Added NEXTBOT:OnRemove.

    nextbot onremove hook
  • Added GM:EntityFireBullets.

    entityfirebullets hook
  • Added IGModAudioChannel:GetPlaybackRate.

    igmodaudiochannel getplaybackrate

System · 25

  • Player:LagCompensation should now work in any predicted hook.

    lagcompensation in predicted hook
  • GM:CalcViewModelView now returns a position and angle to override viewmodel position.

    calcviewmodelview return value
  • sound.Add now accepts a table as pitch and volume parameters.

    sound.add table parameter
  • IGModAudioChannel:SetPos now takes an optional orientation vector.

    igmodaudiochannel setpos orientation
  • Clientside Lua is now always allowed in singleplayer.

    clientside lua permission in singleplayer
  • Vector:__unm and Angle:__unm were moved from Lua to C.

    vector and angle unary minus implementation
  • All util trace functions now accept an ignoreworld boolean in their trace data.

    util trace ignoreworld parameter
  • Old damage force behaviour has been restored.

    damage force behaviour
  • The first argument of Player:ViewPunchReset is now optional and defaults to 0.

    viewpunchreset optional argument
  • The singleplayer jump boost from HL2 is now implemented in Lua as a sandbox feature.

    singleplayer jump boost
  • Matrices can now be multiplied by vectors.

    matrix by vector multiplication
  • sv_allowcslua is now saved to the config file.

    sv_allowcslua saving
  • VMatrix objects can now be printed to the console.

    vmatrix console printing
  • vm_origin and vm_angles fields from GM:CalcView are now deprecated.

    vm_origin and vm_angles deprecation
  • IGModAudioChannel:Stop now permanently deletes the channel.

    igmodaudiochannel stop behaviour
  • game.AddDecal now accepts a string table as its second argument.

    game.adddecal string table argument
  • sv_kickerrornum now defaults to 0 and its value is saved to the config file.

    sv_kickerrornum default and saving
  • Entity:DispatchTraceAttack arguments changed to (dmginfo, traceres, dir).

    dispatchtraceattack argument order
  • net.Start starts an unreliable message if its second argument is true.

    unreliable net message
  • HTTP requests now accept a headers table.

    http headers support
  • Command blacklisting for these functions has been improved.

    console command blacklisting
  • Entity:IsValid no longer returns true for entities removed during the current frame.

    entity:isvalid removed-entity check
  • sound.PlayURL second parameter can now contain the noblock flag to disable block streaming.

    sound.playurl noblock flag
  • Matrix can now take an optional 4x4 table as an argument.

    matrix function Object() { [native code] } argument
  • The mounting system has been improved.

    mounting system

UI · 2

  • Some spawn icons have been improved.

    spawn icon
  • Added the clientside convar cl_steamoverlay_pos.

    steam overlay position convar

Fix · 45

  • Viewmodel no longer jitters when overwriting its position.

    viewmodel jittering
  • surface.CreateFont no longer disconnects clients when an invalid table is passed.

    surface.createfont client disconnect
  • Metrocops holding the stunstick no longer go into a T-pose when attacked.

    metrocop t-pose when attacked
  • Combine balls now collide with players.

    combine ball player collision
  • keyframe_rope now respects attachment points.

    rope attachment point
  • Key bindings now work correctly in the main menu.

    key bindings in main menu
  • SetStencilWriteMask now sets the write mask instead of the test mask.

    render stencil write mask
  • File functions now work with file names containing certain special characters.

    file functions with special character
  • Gravity gun and crowbar are no longer removed when dropped using Player:DropWeapon.

    gravity gun and crowbar removal on drop
  • CSoundPatch:Stop now actually stops the sound when the game is paused.

    csoundpatch stop while paused
  • Functions from the render and surface libraries partially now write alpha when drawing on a render target.

    alpha writing on render target
  • NPCs now receive the appropriate amount of damage from HL2 weapons.

    npc damage from hl2 weapon
  • Long-term performance issues with Entity:Remove are fixed.

    entity:remove performance
  • Sound spam with weapon_rpg when out of ammo is fixed.

    rpg sound spam
  • CLuaEmitter:Finish now frees the emitter.

    cluaemitter finish freeing
  • GMod decals now work when used on props.

    gmod decals on prop
  • Lamps no longer project backwards.

    lamp projection direction
  • Spawnicons now regenerate at the correct resolution when resized.

    spawnicon regeneration resolution
  • Shell ejection issues on the HL2 pistol and SMG are fixed.

    shell ejection
  • Viewmodel bobbing no longer snaps when jumping or noclipping.

    viewmodel bobbing snapping
  • Gamemode name reported by Steam is now updated after a changelevel.

    steam gamemode name update
  • EnableMatrix now propagates matrix transform to child bones.

    enablematrix child bone propagation
  • NEXTBOT:Use is now called.

    nextbot use call
  • Rendering artifacts when particle effects render in front of the skybox are fixed.

    particle rendering artifact
  • VMatrix:SetAngles now preserves translation and scale.

    vmatrix setangles translation and scale
  • Jigglebones no longer occasionally snap into impossible positions when moving rapidly.

    jigglebone snapping
  • Pre/PostDrawOpaqueRenderables now receive correct arguments.

    pre/postdrawopaquerenderables argument
  • GibBreakClient now takes skin number into account.

    gibbreakclient skin handling
  • Nav files no longer remain open after loading a map.

    nav file left open
  • Flashlight no longer gets duplicated when receiving a full packet update.

    flashlight duplication
  • Debug textures are now precached.

    debug texture precaching
  • Floating point values are now encoded with sufficient accuracy.

    tabletojson float precision
  • TextEntry panels no longer filter tab characters.

    textentry tab character filtering
  • Memory leak when calling timer.Create on an existing timer is fixed.

    timer.create memory leak
  • Prediction errors when switching to thirdperson and back are fixed.

    viewmodel prediction error
  • GravGunPickupAllowed now prevents the gravity gun from picking up forbidden entities.

    gravity gun forbidden pickup
  • nan and +/-infinity now return a null-terminated string when converted.

    nan/infinity string conversion
  • ScreenFade now takes color alpha into account.

    screenfade alpha
  • MapCreationID no longer returns different values after a map cleanup.

    mapcreationid stability
  • GravGunPunt is now called clientside when holding an object.

    gravgunpunt clientside call
  • Panels now feed mousewheel events to their parent when the hook is defined.

    mousewheel event forwarding
  • surface.GetTextSize no longer ignores '&'.

    surface.gettextsize ampersand handling
  • Metrocops now turn their stunstick on before attacking.

    metrocop stunstick activation
  • env_zoom now works.

    env_zoom functionality
  • An exploit involving require, Player:ConCommand and game.ConsoleCommand is fixed.

    console command exploit