🎮 Game
The stock s&box sandbox gamemode: players spawn props, weld, wire and drive contraptions, fight with bullet and melee weapons, and get AI NPCs to shoot at, all driven by spawn menu, toolgun modes, inspect menu and HUD panels. Code splits into per-feature systems (Builder geometry and placement, Cleanup, LimitsSystem, Permissions, UndoSystem, SaveSystem, SignalSystem) with components, tool modes and Razor UI on top. Networking is host-authoritative with owner-only RPCs for spawning, tools and constraints.
🐞 Possible Bugs
Game/PostProcessing/PostProcessManager.csPreview on an effect that is spawned but disabled calls SetEnabled(path, true), which adds the path to _enabled, so Unpreview sees IsEnabled true and skips disabling it, leaving the preview stuck on permanently.
Game/Weapon/ProjectileEntity.csNotifyHit builds the owner connection and then does nothing, so the instigator is never told the projectile hit.
TimeSinceCreated is reset in OnEnabled but never read, so there is no projectile lifetime handling.
UI/SpawnMenu/Spawnlists/SpawnlistResource.csEntry.GetIdent calls Ident.Trim with no null check, so an Item entry with an empty Ident (the default state of a freshly added row) throws a NullReferenceException inside ToData before the `if ( item.Ident is null ) continue;` guard can skip it.
Entry.ToString calls GetIdent for every kind, so Divider and Title entries with no Ident throw NullReferenceException and the `?? Title` fallback never runs.
UI/ToolPresets/ToolPresetEditor.razorSave() never assigns SelectedId from the returned saved preset, so a newly created preset stays at Guid.Empty and every later save inserts another new preset instead of overwriting it.
Weapons/ToolGun/Modes/Balloon/BalloonTool.cssplineInterpolation is set from `segmentCount > maxSegmentCount`, but segmentCount is already clamped to maxSegmentCount, so the value is always 4 and the 8 branch is unreachable.
Weapons/ToolGun/Modes/RopeTool.cssplineInterpolation is always 4: segmentCount is clamped to maxSegmentCount (48) right above, so `segmentCount > maxSegmentCount` never fires and long ropes never get the 8 interpolation value.
Weapons/ToolGun/Modes/Stacker/StackerTool.csSpawnStack drops the scale it computed: the clone is built with new Transform( tx.Position, tx.Rotation ), which defaults scale to 1, so stacking a scaled object spawns unscaled copies while the preview draws them with tx.Scale (target.WorldScale).