usermattcancel
branchsbox/mastercancel

983 Commits over 1,066 Days - 0.04cph!

2 Years Ago
snd_event_point should play from the entity instead of it's position, this way it'll behave correctly when parented to a moving platform. I think this was the original intention of this entity, but we'd opted for Sound.FromWorld because sounds were playing at 0,0,0 - this was very likely because this entity was never transmitted to the client, which it now is.
2 Years Ago
fix ident_size being wrong in all our .editorconfig
2 Years Ago
Hammer taglist supports editing multiple selected (as long as they don't have different values) Hammer map meshes use tag property editor for embedded Tags property
2 Years Ago
Editor errors list (#360) * Error list for the editor, gathers compile errors and takes you straight to them in your code editor * Right clicking error gives you a context menu of Open in Code Editor or Copy Error * Disable compile errors going to console whilst in tools mode * When a build error occurs make sure the errors list dock widget is open. https://files.facepunch.com/matt/1b1211b1/sbox_yu3L3pwgEx.png
2 Years Ago
Don't open the legacy asset browser on startup, make it so you can access it easily from the tools menu bar still though for now
2 Years Ago
Hammer: Remove large toolbar from map window, tuck into a small layout icon button - I'll probably shuffle some things from the "Fullbright" menu into this still. Also fix the icons for these layouts using the wrong path. https://files.facepunch.com/matt/1b0411b1/sbox_tVMBcvmiCL.jpg
2 Years Ago
Hammer: Get rid of all the text in the top toolbars, huge waste of space that also limited usage as vertical toolbars https://files.facepunch.com/matt/1b0311b1/sbox_oNHtLaD5Kf.png https://files.facepunch.com/matt/1b0311b1/sbox_vH2CK68K7H.png
2 Years Ago
Hammer: tidy up the outliner widget to make use of space better https://files.facepunch.com/matt/1b0311b1/sbox_x99gtaxdGM.png https://files.facepunch.com/matt/1b0311b1/sbox_Rx3STK6r6U.png
2 Years Ago
Hammer default layout remove auto vis, selection sets, undo history, map problems
2 Years Ago
Fix Surface not loading AudioMaterial properly making sounds extra wanky cause no material surfaces were defined Add internal virtual GameResource.PostLoad( GameHost ) for GameResource in Sandbox.Engine to know what host to grab any dependency GameResource from Defer calling GameResource.PostLoad until after all GameResource are "loaded" and can be grabbed with Resource.Get. Not really a hack and lets people do the most obvious thing
2 Years Ago
piss. fix DrawMaterialIcon -> DrawIcon
2 Years Ago
Add category count / filters to tools console widget so people can see they have errors and easily see them https://files.facepunch.com/matt/1b2911b1/sbox_neEB3rhcQI.png
2 Years Ago
Rename "Legacy Source1 Inverted Normals" -> "Inverted Normals (-Y)" Closes Facepunch/sbox-issues#1395
2 Years Ago
Add commands AlignObjects (Alt+T), AlignObjectsRotation (Alt+R) and AlignObjectsToWorkplane (Alt+E) to the selection tool
2 Years Ago
Add a hotkey table to the selection tool to make it more intuitive for newbies https://files.facepunch.com/matt/1b2711b1/sbox_dqOz2azaq7.png
2 Years Ago
Hammer: Add default bind for SetOriginToPivot command ( Ctrl + D ) Hammer: Add AlignWorkplaneToObject command, default bind Alt+Q
2 Years Ago
Give unique filenames to partial classes generated within the same file so the generator doesn't shit itself and crash Fixes Facepunch/sbox-issues#1968
2 Years Ago
Overload Package.Equals/GetHashCode to match Package.FullIdent, resolves Hammer thinking the same local addon is individual packages.
2 Years Ago
Give content & model addon types proper package type mappings, prevent them showing in local games menu
2 Years Ago
Mark games to compile in tools mode in a more sane place in Sandbox.Tools instead of Sandbox.Engine Recompile game addons on changes in tools mode when not actively in-game too, so you can adjust game resources / hammer entities without being in the game
2 Years Ago
List/Dictionary property editors work with IList / IDictionary (used by [Net]) I tried doing it within CanEditAttribute.CreateEditorFor, iterating over interfaces the type implements but it ended up being a huge sprawling mess. So just did a plain and simple [CanEdit] of both List<> and IList<> on the same editor
2 Years Ago
Fix Theme.DrawFilename if there's not enough room for the directory Dictionary<,> property editor, probably looks a bit shit but can't think of how to shag it up https://files.facepunch.com/matt/1b2311b1/sbox_uEj3AVv3OB.png
2 Years Ago
Improve VR performance by as much as double, enabling multiview instancing by default and lots of misc changes to the VR render process: - Fix our shaders for multiview instancing to work with the new transform system - Hard code some dumped stencil meshes for Oculus HMDs, reduce render area from 5-14% ( SteamVR doesn't pass us these ) - Remove multi-gpu support, complicates shit and pointless for us to even attempt to maintain - Add SCENE_RTSIZE_VRFRAMEBUFFER and make it adjust to multiview size, avoids allocating 8K render target for framebuffer fetches on VR - Don't attempt to render viewmodel shadows in VR - Fix asserts from C# trying to update viewmodels in VR mode (scenesystem transforms are locked here) - Global.IsRunningInVR doesn't false report if you're running in non VR mode with SteamVR in the background - Generally loads of dead code removal in the render pipeline Co-Authored-By: Sam Pavlovic <sam@sampavlovic.com>
2 Years Ago
Allow [Change] to be combined with [ConVar.*] the same way as [Net], e.g: ```csharp [ConVar.Replicated( "my_variable" ), Change] public static float MyVariable { get; set; } = 100.0f; public static void OnMyVariableChanged( float oldValue, float newValue ) { } ```
2 Years Ago
vsnd is a native type for ResourceTypeAttribute should fix the sound editor, this whole system is pretty messy though
2 Years Ago
Fix TypeLibrary.GetDescription( Type ) returning inherited types randomly which was causing prop_physics to become PropGib in Hammer and probably a load of other shit
2 Years Ago
Add TraceResult.HitPosition same as EndPosition for rays, but for sweeps its going to be the contact point where as EndPosition should be how far the sweep got
2 Years Ago
Add support for sweep traces against sphere shapes, needed to do some bullshit with a 0 radius sphere
2 Years Ago
Make [UseTemplate] work properly on consolidated builds (used for s&works) - instead of the generator trying to guess root directories feed it a map of physical paths -> virtual paths for all the cs files
2 Years Ago
Network Client.IsUsingVR
2 Years Ago
Don't give alternate flags when querying DX11 display mode list Fix crash when registering the minidump handler due to addon stuff being removed
2 Years Ago
[HideInEditor] works on asset properties Give [GameResource] a default question_mark icon so it's not null by default (also fix DrawMaterialIcon shitting the bed with null)
2 Years Ago
Fix static/dynamic colors not working on [EditorModel] ( This is only used for light modes, weird fucking place? )
2 Years Ago
Fix regression where entities base properties were getting stomped
2 Years Ago
If we can't allocate transform data (because of shitty small cbuffers) stop trying to render instead of just crashing, this should fix Hammer crashing on complex maps temporarily until structured buffers are merged in.
2 Years Ago
AddonConfig.GetPackageType() supports tool, fixes tools showing in local games list
2 Years Ago
Cursor gets set properly when you focus back into the game from tools
2 Years Ago
Fix `cursor: none` not working ( last cursor type wasn't getting set and always assumed to be 0 (None) )
2 Years Ago
Bit of error checking in CSteamAudioScene::BakePathData when creating path data to avoid access violation crash and give us the actual error
2 Years Ago
Hammer: Add toggleable fullscreen layout ( Shift + Alt + Z ) https://files.facepunch.com/matt/1b1211b1/sbox_0AAXaFMbCO.png
2 Years Ago
Add description to ModelDoc prop_data "Bake Lighting As Static Prop" so it doesn't seem unimplemented Delete ModelPropData.AllowStatic - did nothing
2 Years Ago
Collapsible game tabs in Hammer entity selector https://files.facepunch.com/matt/1b1111b1/sbox_h9bb4QJuJf.png
2 Years Ago
Replace per tool GameData with a shared one managed by IToolFramework2, move the managed GameData out of Tools.MapEditor and into Tools, same with it's interop. * Decoupled CGameData from CGameConfig (mapdoclib), removed g_pGameData use the IToolFramework2 locator now instead. * Initialize managed GameData from CToolFramework2::Init() before anything could ever need it. * Populate GameData from managed asynchronously, this solves race conditions of loading Hammer too fast, as well as letting you add localaddons mid game. Tool scenes loading maps will now have access to all this managed game data too, solving lighting issues / missing sky boxes in modeldoc / others. This also gives us a very easy route to deprecate fgd files in ModelDoc if desired. Instead of loading GameData from addons on initialize, load it in from assemblies when added to GameAssemblyManager Unfuck the map compilation, gotta use a dirty global for gamedata still in mapdoclib, set it automatically when toolframework2 is avaliable, mapcompiler manages it's own manually though. A couple of dirty hacks to do this, we can undo these if we end up making map compilation not use a seperate process - or there may be some nicer ways to do these globals.
2 Years Ago
Add some additional launch profiles to Sandbox.Engine for VR or going straight into a map, etc. Add VR checks when creating a VROverlay Don't try creating a borderless window in tools mode, fixes keyboard input not working in-game on tools
2 Years Ago
VR: Get auto fidelity levels actually loading from their config, they don't seem to do anything yet though so need to tinker more Fix bizzarre rendering logic preventing VR autofidelity from setting the render targets size
2 Years Ago
Default vr_depth_submit to on VR overlays should set their transform from standing origin, this should be more consistent with everything else in the engine now Added `VrHand.TriggerHapticVibration( float duration, float frequency, float amplitude )` Usage: `Input.VR.LeftHand.TriggerHapticVibration( 0.25f, 100.0f, 1.0f )` This is clientside only for now, we can probably hook it up as an RPC though if it's required. It would've been nice to hook this up as a unified API with controller vibrations, but haptics and rumble are pretty different, enough that emulating it either way ends up being utter wank.
2 Years Ago
VR: Simplify and remove more code that we use OpenVR for or has no purpose for sbox VR: Submit depth texture to the SteamVR compositor, flagged behind `vr_depth_submit 1` - this primarily assists Occulus' time warping / reprojection, but could help other HMDs too
2 Years Ago
Remove CS:GO freeze frames from world renderer ( they didn't work, if you wanted them to work you'd easily make them in C# ) Remove some dead code from world renderer VR ALWAYS uses a compositor, remove a lot of dead code from the renderer Fix VR window display being bizarrely offset or not displaying anything at all depending on VR render resolutions
2 Years Ago
VR: Set the render viewport to the SteamVR recommended render target size and not the window size ( this was making the default resolution 1080p )
2 Years Ago
Hammer: Add tiling support to fast texture tool ( behaves exactly the same as the one in dota tools ) Before: https://files.facepunch.com/matt/1b0211b1/sbox_8X63pqiVql.png After: https://files.facepunch.com/matt/1b0211b1/sbox_ylhMiqliDi.png