branchsbox-forsaken/maincancel

362 Commits over 304 Days - 0.05cph!

1 Year Ago
Pass InventoryItem as a parameter to transfer target handlers so they can provide different container options per item type
1 Year Ago
Added IHeatEmitter and SphereTrigger Added EntityExtension class and Entity.FindParentOfType<T> extension Implemented IHeatEmitter on Furnace and Campfire and calculate and lerp player's temperature to surrounding heat emitters
1 Year Ago
Automatically close any storage UI panels where either the entity has become invalid or the entity is a loot spawner and the inventory is now empty
1 Year Ago
Added LootSpawner base entity type. Added a basic loot crate for spawning with Hammer. Added LootTableResource, ILootTableItem. Added spawn chances etc to all available items so far. Added InventoryContainer.IsTakeOnly to make a container so the player can only take from it.
1 Year Ago
Actually take the items that are required for each structure piece
1 Year Ago
Added ItemCostAttribute and updated all Structure types to have one Added structure item costs to the Toolbox Menu and show when it is unaffordable
1 Year Ago
Simplify radial menu by having a single SCSS file that both ReloadMenu and ToolboxMenu share
1 Year Ago
Added dry fire sound event and increase spread for buckshot
1 Year Ago
Set recoil ranges for Pump Shotgun
1 Year Ago
Increase max players to 32 Add Shotgun ammo type to enum Have weapon base use item clip size and set hold type properly move a bunch of public virtual methods to protected Early out if type description for item resource doesn't exist Start adding shotgun with buckshot and slug ammo types and add temp icons for all including pistol and rifle ammo Add ProjectileCount support to ProjectileWeapon and move projectile backwards one tick on initialize Updated slug ammo stack size Added pump shotgun weapon and added damage falloff curves Add damage falloff getter to WeaponItem Fixed to NetInventoryContainer and NetInventoryItem, update value based on previous version when hotloading Return null if passing unique id of null or empty into InventorySystem.GetDefinition Add working ammo type selector and switching ammo - move reloading to server-side only https://files.facepunch.com/conna/1b2811b1/sbox-dev_wuJt54qN9X.mp4
1 Year Ago
Various inventory networking fixes (invalid items) and no longer need to specify item to InventorySlot panel just the slot number
1 Year Ago
Added ICookerEntity and ICookableItem and CookingProcessor to process cooking Ore is tagged as ore and fuel is tagged as fuel Update InventoryView to support multiple open inventory containers Update furnace to use CookingProcessor and implement ICookerEntity Add cooking UI https://files.facepunch.com/conna/1b2511b1/sbox-dev_EykTn4ZqaE.mp4
1 Year Ago
Added a crafting recipe for the Storage Crate Don't show output stack size for crafting recipe if the stack size is 1 Adjusted some placeholder item icons Added furnance.vmdl and furnace.vmat and added attachment for fire Added Furnace and FurnaceItem (WIP) Added a crafting recipe for the Furnace item Fixed some entities not being hovered properly by the cursor if they are too tall Increase stack size of all ammo types Added a method to Weapon to create a temporary short-lived light source at a position Client-side create a temporary light source at the muzzle position when firing the MP5 to light up the area
1 Year Ago
When hovering a crafting queue item have it transition its border to red and show a red box shadow
1 Year Ago
Change wording a little
1 Year Ago
Simplify the recipe categories a little for now until additional categories are needed
1 Year Ago
Have ITooltipProvider inherit IValid Updated Bolt recipe to provide 2x Bolt per craft Check for IsValid() in CustomTooltip to determine if the tooltip should fuck off Item definitions are always valid Added RecipeCategory enum and add a property for it on RecipeResource Added the first fully working version of the crafting interface https://files.facepunch.com/conna/1b2511b1/sbox-dev_PTQgHsDnTd.mp4
1 Year Ago
Some additional styling changes for the crafting mockup
1 Year Ago
Started mocking up the first crafting menu draft
1 Year Ago
Added a client-side ConVar to show your own nametag (debug)
1 Year Ago
Fixed an out-of-range exception when clearing the crafting queue on death Added Nametags and Nametag and update them for each client
1 Year Ago
Updated Flashlight and Laser Sight attachments to have correct rotation Remove AttachmentResource - attachments don't really need to be a game resource they each require very specific logic Add Flashlight derived from SpotLightEntity with pre-configured properties Add AttachmentItem with various virtual methods (OnAttached, OnDetatched, etc) Update InventoryContainer.FindItems to return an IEnumerable instead of a new list every time Call a method when a WeaponItem has its weapon entity changed or nulled Add working WeaponFlashlightItem attachment and make sure OnAttached/OnDetatched is called in AttachmentContainer
1 Year Ago
When an item in a slot contains items in its child container show an icon to represent that
1 Year Ago
Updated all weapon models with latest and source. Added AttachmentContainer, AttachmentItem and AttachmentResource. Added a simple Weapon Flashlight attachment (non-functional.)
1 Year Ago
Simplified some naming so that InventoryContainer and InventoryItem both just have Parent
1 Year Ago
Inventory containers are no longer required to have a parent entity. Inventory containers can have an optional parent item. Items can now control whether or not they register their own child containers. This is useful because now weapons can now have their own "inventory" to store attachments. Updated all inventory UIs to support selecting an item and showing any child containers.
1 Year Ago
Less spacing between inventory slots and reduce the border radius by half
1 Year Ago
Added TemperatureModifier to ArmorResource & ArmorItem and appropriately adjust the player's temperature based on what they are wearing Extended the equipment inventory to support a new armor type: Feet. Added Army Boots, Black Hoodie and Cargo Pants as available items
1 Year Ago
Added a hover loot feature (hold Ctrl and hover over items in a container to add them to a transfer queue to be transferred to their transfer target container) Completed refactored InventoryContainer to support derived types and custom serialization Some tidy up around InventoryContainer Refactored item tag system to be a hash set of strings and can be set on the game resource. Item tag display info for tooltips etc can be registered with ItemTag.Register this stuff will be used for inventory container item filtering Completely remove hardcoded equipment check and add a new whitelist and blacklist item tag filter to inventory containers (client + server) show an invalid drag if trying to drag into a container that disallows the item Merge branch 'main' of sbox-forsaken
1 Year Ago
Campfire particle tweak
1 Year Ago
Added Thoughts and some generic thoughts for invalid placement of construction pieces and deployables https://files.facepunch.com/conna/1b2211b1/sbox-dev_3TTHzT5GR3.mp4
1 Year Ago
Some tweaks to the campfire
1 Year Ago
Updated font to Vollkorn for Cursor title and action names
1 Year Ago
Added a dynamic light to the campfire that flickers and moves around for a cool effect
1 Year Ago
Added SetRadialGradientBackground PanelStyle extension method Add ForsakenPlayer.GetChatRecipients Added opacity transitions for Backpack, Hotbar, Storage and ToolboxMenu Fix Draggable selecting IDroppable panels that aren't visible Added glow background to InventorySlot and use a radial gradient Added a chatbox with support for system messages Merge branch 'main' of sbox-forsaken
1 Year Ago
made campfire particle smaller
1 Year Ago
Add a default muzzle flash effect to the MP5A4
1 Year Ago
Temporarily fix parse ordering error by using &deg;
1 Year Ago
Refactored context actions to use a simple class with ids instead of a bunch of classes Use ??= for internal environment in TimeController Reduce size of campfire by ~50% Support new context action stuff in player, make cursor movement less frame dependent, and simulate deployable placement in FrameSimulate Update Storage Crate and Item Entity to new context action stuff Add the first version of the deployable campfire (cooking UI to come later)
1 Year Ago
Some alternative styling to tooltips, draggables and inventory slots to better match the theme Added TimeGradient<T>, ColorGradient and FloatGradient to TimeController and added TimeSystem.Temperature Remove unused properties from MoveController Added networked temperature to the player (for now this just gets set to the ambient temperature) Added a simple (temporary) vitals display to show health, stamina and temperature Merge branch 'main' of sbox-forsaken
1 Year Ago
Campfire particle
1 Year Ago
Update InventorySlot styling
1 Year Ago
Added campfire model and Vollkorn font and resource paths
1 Year Ago
Added a command to throw an item from a container Add `item` tag to ItemEntity entities and show stack size in the context name PickupAction now works with ItemEntity entities as well as storage crates Reverse FindDroppable loop in Draggable class Make Backpack and Storage panels droppable and, when items are dropped onto the background, throw the items out of the container in that direction
1 Year Ago
Ensure that stack sizes of given items (from command, or by cancelling a crafting entry) properly respect an item's max stack size value
1 Year Ago
Added CraftingTime to RecipeResource (the amount of time it takes to craft in seconds) Added CraftingQueueEntry networkable type Added a networked crafting queue (CraftingQueueEntry) and various methods to add or cancel entries for crafting Updated bolt recipe to have a crafting time of 2 seconds
1 Year Ago
Use Color cast for hex colors in ItemColors class
1 Year Ago
Add an intro transition to the custom tooltips
1 Year Ago
Add some placeholder resource icons Remove unused baseball cap icon Increase draggable icon size Fix radial menu and custom tooltip to use new FinalLayoutChildren overload Add some fundamental material item types Add methods for getting total item count in inventory (sum of stack sizes) and HasItems and TakeItems these will be used for crafting
1 Year Ago
Added guard for ResourceLibrary being null (seems to happen sometimes in menu, even with a Host.IsMenu check?) Added StackSize and some documentation to RecipeResource