branchrust_reboot/main/primitivecancel
43 Commits over 31 Days - 0.06cph!
Don't replace the equipped shield if picking up another shield from the ground
Only auto equip a shield in the shield slot if there is no shield is equipped
Fixed the equipped backpack being dropped on the ground if the player right clicks a backpack item in their inventory while the inventory is full
Affects all backpacks, not just shields
FIxed water pistol not resting in hands properly while a shield is equipped
Fixed water pistol not sitting in hand properly while a shield is equipped
Fixed exception when equipping a shield while a shield compatible weapon is already held
Added a nicer way to GetActiveShield(), cuts down on some repeating inventory reads
Don't show the crosshair when blocking with a shield while a gun is equipped (you can't shoot anyway)
Another attempt to fix the player corpse not implemented exception
Call SetHeld(false) before clearing the owner player rather than after
Fixes some logic in that method failing because it needs the owner player to be able to access the current shield if the equipped weapon is being dropped
Fixed case where player could hit their own shield with melee weapons
Enabled shield compatibility on:
Skinning Knife
Water Pistol
Candy Cane Club
Flashlight
Concrete hatchet + pickaxe
Lumberjack axe
Shovel
Bone Knife
Frontier Hatchet
Combat Knife
Stone Pickaxe
Show whether a gun can be used with a shield in the info panel
Minor layout reshuffling in the inventory, crafting and tech tree panels to support this
Both wooden shields now use wooden impact pfx
Fixed "ent kill" commands affecting shields
Fixed priority of block impact anims so they don't go via the idle state
Fixed left hand driven camera animation not working when shields are active
Split "Save Backpack Holster" option on HeldEntity inspector into two options, "Save Scene Position as Holster" and "Save Scene Position as Backpack Holster"
Added a "Save Holster Info to Prefab" button that copies the current holster values to the prefab asset
Don't show any of these options on Held entities if they are not in the scene (they would have failed anyway)
Adjust shield holstered positions
Removed some placeholder anims
Disable write defaults on shield idle
Fixed NotImplementedException on the client when a ragdoll collides with something
Fixed jittery movement when noclipping
Fixed shield resetting to idle briefly in 3rd person when getting shot/hit
Improved projectile hit handling for shields
Due to the thickness of the player capsule on the server the player often fully encompasses the shield collider, leading to the shield missing shots that it should be blocking because the shot hits the player first
Server fired and player fired projectiles now do an additional check when damaging players to see if the shield should block the hit by checking the racyast against the equipped shield
Fixed melee vm hit block animations not playing
Move AnimationUtil to an editor only namespace
Merge from primitive/prop_offset
Merge from root_label_fix
Fixed asset labels on all new shields, manifest
Only apply auto turret behaviour when actively bocking with the shield
Some protection value changes
If an auto turret is aiming at a person using a shield, adjust the targeting to shoot at the shield
Adjusted improvised shield collider
Update attack loops on reinforced shield
Delete animator controllers for wooden, reinforced and improvised shields
There are overrides setup for each shield viewmodel variant, we should be using those
Shortened the transition between melee_atk_loop and melee_atk_end to fix the slight hold when going straight to block
Don't allow the shield to block while the held weapon is playing it's deploy animation
Possible horse server fix
Codegen, manifest, protobuf, etc
Merge from shields (new branch to collect all primitive stuff in one spot for media)