2,296 Commits over 4,567 Days - 0.02cph!
Water bucket viewmodel: move hands and fingers out to stop glove clipping (#79)
Water bucket viewmodel: move hands and fingers out to stop glove clipping
Flamethrower: fix corrupted v_flamethrower@dial_anims.fbx from #68 (#78)
Flamethrower: fix corrupted v_flamethrower@dial_anims.fbx from #68
Flamethrower: fix fuel gauge needle not tracking fuel (#68)
Flamethrower: fix fuel gauge needle not tracking fuel
Animation preview: show the player body on player anim FBXs with no rig beside them
Viewmodel locomotion: shared walk, sprint and jump anims for viewmodels
Water bucket viewmodel
- moved hands/fingers out in all anims to fix clipping issues with some gloves
Flamethrower: fix fuel gauge needle not tracking fuel
- updated dial anims
- Added needle_wobble layer (additive, synced to base, weight 0.2) to keep the fire anim's needle wobble on top of the fuel reading
- New flamethrower_needle_wobble_mask (gauge_arrow only)
worldmodel updates
w_uzi (used for the dropped worldmodel only) is now:
- folded
- one combined mesh ( body & mag)
- uses naming convention
- static (non skinned mesh)
merge from Uzi texture fix branch
Uzi: stock always folded when holstered, unfolds on deploy
- new w_uzi deploy_stock anim with the stock unfold, hooked up in w_uzi controller
- 3p deploy_stock updated to match the viewmodel unfold
- Uzi.cs: holstered world model always shows the stock folded (visual only, still in rifle mode)
- updated 3p aniims to match correct bolt position, fix out of sync issues
- New AttachmentMountScale component: client-only, resets parented mods to localScale 1 so they inherit the mount's scale
- Entity parenting uses worldPositionStays, which counter-scales mods and cancelled or skewed any mount scale in 3p
- Added to uzi.entity.prefab flashlight.attachment and barrel mounts, scales tuned for the uzi
couple more attachment points zero'd
Uzi viewmodel
- added shell to top of mag
- set up system to hide shell on zero ammo count
- added events to show shell on return of new mag during reloads
Uzi - charm support and world model Picatinny rail
- world model rig re-exported with Picatinny rail, shown only when a sight is attached
- charm set up in 1p/3p
- supportsAccessories enabled on item
- attachment positions adjusted in 3p
UZI viewmodel
- Add Picatinny rail to rig & updated
- set up rail to show when sights are attached
- adjusted attachment positions
- rail/mag ViewModelRenderers
viewmodel updates
- tightened up fire anims
- edited reload & bolt pulls to avoid clipping when using a scope
- added a new deploy with stock so it can be played at correct speed
- added sound events
- set deploy stock in animator back to 1
- scope attachment position update
- viewmodel anim updates
- controller updates (no need for sep ADS fire and dryfire with no stock mode)
- anim event timing tweaks
custom spine offset added
Uzi 3p: fix stock deploy after weapon swap + stock swing on holster
- player + world controllers fall back to the stock deploy if the stock flag arrives late
- world stock deploy holds idle_stock instead of playing the swing
- world animator keeps state on disable so holstering doesn't replay the swing
merge from weapon_refresh_nailgun
merge from 3p_head_wobble_fixes
Uzi: mag drop and shell ejection
- Mag drop on world model reloads
- Shell ejection in first person and 3p: new eject_shell (viewmodel) and w_eject_pistol_shell (world, on the uzi shell_eject bone)
- viewmodel updated, shell eject position + enforceClipWeights on so fire/fire_ADS sharing a blend tree don't spawn two shells per shot
viewmodel lasersight/brake attachment placment
More Uzi 3p setup - stock and no stock anims for world model and player
- w_uzi anim hooked up, now swaps between the stock/ no stock anim sets when rifle mode is is toggled
- 3p anims now using a subsystem, not an overrride....so I can use multiple masks (no stock = one handed, left arm stays on locomotion, left hand comes in for the reload, stock out = two handed
- removed holdtype controller (not needed now)
- Stock deploy / collapse anims play when toggling between the two
- 3p anim updates + deploy/collapse stock clips
- uzi.entity: ProjectileAnimationSubSystem driven by the StockDeployed flag, HoldType.uzi override removed
- Uzi.cs (client only): sets the rifle_mode float on the world model animator from the stock flag. Skipped while the animator is inactive, same approach as CrossbowWeapon/Handcuffs driving their world animators
- anims and clips for weapons own anims, inc stock deploy + collapse, reload and fire
- initial animator setup for these weapon anims
- clip update of 3p idle
- avatar setup for world weapon rig
3p setup wip
- 3p anims
- holdtype controller population
- holster placement
Set create mesh flag and set up viewmodel renderer
Shears balance - files missing from cs:169063 (fixes branch compile error)
- new ItemModShearTool on shears.item: 25% more wool than a knife
- shears.item: durability 200 (2x the knife)
- shears.entity: damage 4 slash + 4 stab (half the knife)
- Sheep.cs: applies the shear tool wool bonus, other blades unchanged
Added:
- Assets/Scripts/Item/ItemDef2/ItemModShearTool.cs (+ .meta)
Shears balance
- 25% more wool than a knife (12-13 per sheep instead of 10, before Yield gene) via new ItemModShearTool on the shears item
- 200% durability of the knife
- 50% damage of the knife - accidental hits or using on a lamb hurts the animal less
- other blades shear exactly as before
- added Shears_TakeMoreWoolThanAKnife test
- fixed entity errors
- removed old linedk mesh in viewmodel prefab
- removed throw and other no used states from viewmodel aniimator
- renaming
- deleted unneeded v_shears prefab (just a model)
fixed camera anims not working
Play eye movement and blinks from the customiser anims
- updated blink anims
- each clip's mask is the v4RustPlayerMask bones plus l_eye, r_eye, l_eyelid, r_eyelid
- UI_CharacterPreview - removes the procedural eye look-at and blink in the preview
- PlayerModel.ApplyHeadEyePositions - the preview re-applies each head's eye positions after the animation, to fix eyeballs sinking into skull
- self contained eye code changes in the customiser, In-game eye behaviour is unchanged
fix for fire anim freezing
merge from viewmodel_skinning_update
Viewmodel - Added bespoke idle/fire/dryfire ADS anims, tightened up transitions & conditions going in/out of ADS