userJakbcancel

203 Commits over 1,096 Days - 0.01cph!

11 Months Ago
WIP orbital camera setup. Currently swaps cameras with pressing Q, Tab changes lock target, hold right click and use mouse to move orbit. Needs UI setup
11 Months Ago
Setup the rest of the player gesture animation buttons. Surrender and the dances don't work right now
11 Months Ago
Setup more anims: Viewmodel specific: manualcycle, dryfire, throw, use_self, use_other, use_other_wounded PlayModel specific: drop_item, pickup_item, drink, victory, wave
11 Months Ago
Only allow camera movement when the input field is not in focus
11 Months Ago
TODO comments for later around camera work
11 Months Ago
Move camera gradually using WASD/leftshift (up)/leftctrl (down)
11 Months Ago
Clothing is now equipped to the active viewmodel. Makes use of a new editor-only method to apply clothing directly from a list of ItemModWearable rather than using a BasePlayer to look at their equipped clothing. Run this method when equipping items and wearables so the viewmodel is always up to date. (Doesn't work with skins just yet)
11 Months Ago
Commenting
11 Months Ago
Added new FOV slider to the canvas to modify Camera FOV. Setup min/max values respecting regular gameplay FOV bounds. Includes "Field of View" text overlaying the slider
11 Months Ago
Renamed script in line with scene rename
11 Months Ago
Setup the existing positonal marker square images in the centre of the canvas so they can be toggled on/off with a new button. Shortcutted with `U`. Some code cleanup & commenting
11 Months Ago
Added the scene to SceneLoader so it appears in Editor scenes dropdown menu. Renamed scene to CharacterAnimationAndSkinViewer
11 Months Ago
Copied legacy script's Camera setup so ironsights ADS, screen shake and animation camera rotations work as expected
11 Months Ago
Fixed not being able to reselect most recently selected items/wearable after using the clear buttons
11 Months Ago
Added a clear selected item button (shortcutted with `I`) to unequip the player item, worldmodel and viewmodel
11 Months Ago
merge from main
11 Months Ago
Setup Animations button in the bottom left to open a collapsable scroll view. Works harmoniously with the Items and Wearables select collapsable scroll view - animations button forces collapse of select scroll view, items/wearables button forces collapse of animations scroll view.
11 Months Ago
Ensure the selected item viewmodel always has the same player skin as the spawned PlayerModel
11 Months Ago
Commenting
11 Months Ago
Fixed editor PlaySoundFirstPerson NRE when there isn't a local player. Added a Sound Manager to this scene so sounds work
11 Months Ago
Simplified how the scroll view is populated
11 Months Ago
Code cleanup and reordering
11 Months Ago
Fixed wearables being removed when selecting a new item
11 Months Ago
Code setup for new collapsable Items and Wearables selection. Each one is a toggle button that opens a scrollview and populates with items or wearables - replaces the old 2 separate scroll views, creating more screen space. Made the UI bigger. Removed old scrollviews and setup code
11 Months Ago
Setup new UI layout for tabbed collapsable item and wearable search. Code setup next
11 Months Ago
Prevent keyboard shortcuts for randomising player seed and clearing wearables being triggered when typing in filter input boxes. Ignore shortcuts when filter input boxes are in focus
11 Months Ago
Randomising the player seed preserves selected clothing
11 Months Ago
Player can now be equipped with clothing using the wearableScrollView. Multiple items of clothing can be equipped as long as they are compatible in regular gameplay. Equipping a clothing item that is not compatible with others selected will clear the selected clothing. New button to clear player clothing, shortcut with pressing O
11 Months Ago
Redid UI sizing
11 Months Ago
Reapplied player changes
11 Months Ago
Subtract 127494 - contained unwanted files
11 Months Ago
Increase UI size so the scene feels better maximised
11 Months Ago
Now spawning a BasePlayer in the scene rather than just a PlayerModel so we can give items to the player later. Rotation is broken right now
11 Months Ago
Load all wearables into the UI and setup wearable filtering - mirroring the item setup. Can likely clean this up later.
11 Months Ago
Setup "Randomise Player Seed" button. Some code cleanup/preparations
11 Months Ago
Duplicated item's scroll view and filter input to create a scroll view and filter box for wearables
11 Months Ago
Spawn the PlayerModel on Awake. Rotate 180 degrees to face the camera. Force censorship cubes off and randomise the player seed. Randomise player seed again by pressing P
11 Months Ago
Cleaned up needsCursor, capslock input, item giving, InitPlayer and capslock scene help text
11 Months Ago
merge from god_indicator
11 Months Ago
NRE fix for UIGodOverlay Instance not being initialised yet when saved convars are loaded. Tested in editor.
11 Months Ago
merge from main
11 Months Ago
Fixed bug case where UIGodOverlay could be enabled by setting godforceoffoverlay false when god and godforceoverlay were both already false, changed argument
11 Months Ago
Admin convar `global.god` (godmode) now displays GameUI when godmode is active https://files.facepunch.com/jacob/1b2411b1/Unity_l3B1S3MDpp.mp4 Includes new `global.godforceoffoverlay` convar to force disable the UI overlay when enabled to help when recording media
11 Months Ago
Now spawning the viewmodel in the world at the correct position by disabling VM camera and adding new editor-only position override bool
11 Months Ago
Add help text "Press Capslock to use UI" and change default text on FilterInput to "Filter items..."
11 Months Ago
Equip the item on the player when a button is pressed
11 Months Ago
Reset the vertical scrollbar position to the top when typing in the filter box
11 Months Ago
Selecting item buttons from the scroll view now creates a worldmodel and a viewmodel, pressing a different item button replaces it. On player connection, the player's inventory is cleared in the case of having an editor loadout equipped - in preparation for giving the item to the player. Added a skydome to the scene from Playground to resolve lighting errors on some viewmodels
11 Months Ago
Fixed scrollview position anchoring to remain consistent when maximised
11 Months Ago
Now generating a struct of ItemDefinition and GameObjectRef to the viewmodel and worldmodel, only adding items with a viewmodel and worldmodel to the list