branchrust_reboot/main/shieldscancel
102 Commits over 153 Days - 0.03cph!
Restored the 2px gap between vital bars
Fixed player hitting their own shield when crouching and melee attacking
Added a OnPlayerClothingChanged client side callback to HeldEntity
Backpack meshes will now be enabled when a shield is equipped and disabled when the shield is holstered
Fixed a case where shooting while crouched would sometimes result in the player shooting their own shield, applying damage to themselves in the process
Shield vm animator can now go straight to block from the melee attack end state
Slightly adjust wooden shield back positions to not obscure the minicopter fuel gauge
Fixed some logic issues with the shield vm
Refactor shield handling into a static utility
Apply it to the legacy animals
Made new protection profiles for shield variants
Attacks from new wolves should now be blocked by the shield if the shield is raised and the wolf is in front of the player, will not block at all if the player isn't raising their shield
Fixed player arms animator layer getting stuck in aiming mode if player starts blocking while already crouched
Fixed weapons clipping into shield when shield is held up
Can now use hammer and tool gun with shield (can only repair)
Adjusted size of both wooden shield colliders
Fixed shields not rendering their shadows when in first person
Fixed being able to sprint while blocking with a shield
Fixed noclipping breaking held entities entirely
Fixed exception when moving the current held entity item to another hotbar slot while it was equipped with a shield
Fixed outlines on wooden shield and reinforced wooden shield world models
Fixed another case where spamming equip/unequip on a shield would throw an NRE
Fixed blocking flag staying on if the players shield is holstered or destroyed while blocking, was preventing input on subsequent held entities
Fixed shields not parenting properly
Fixed being able to block while in debug cam
Fixed pickup notices spawning in the wrong place
Fixed colliders on all shield world models to match their entity counterparts
Marked shields as equip on pickup
Fixed improvised shield incorrect world model mesh
Fixed picking up unrelated items would put away equipped shield
Adjusted holster offsets for all shields, mostly fixes them sticking out the side of the camper
Fixed exception when rapidly switching back and forwards from a shield compatible weapon to an incompatible weapon
Fixed impact effects not firing properly when a shield is hit by a server side projectile (auto turrets, scientists)
Much improved system to sync shield position/rotation to server, send shield pos/rot in model state
Fixed being able to equip weapons on non valid weapons by changing item in the currently equipped slot via the inventory screen
Fixed being able equip a shield by itself by scrolling through the belt bar
Merge from main (discard GameUI.HUD changes, will need to rebuild)
Fixed shield remaining in 3rd person hands while gesturing
Fixed 3rd person gestures not working due to animator updates
Enabled shield compatibility on:
Bone Club
Bone knife
Diver hatchet
P17
Butcher Knife
Sickle
Vampire Stake
Hatchet
HC Revolver
Combat Knife
Machete
Python
Revolver
Semi auto pistol
All spears (wood/stone/seasonal)
Nailgun
Fixed footstep effects being effected by equipped shield
Possible stringpool fix
Adjusted shield colliders
Allow shields to go in the belt bar, has the same behaviour as the backpack when selected (will get equipped when selected after a few seconds)