branchrust_reboot/main/hood_and_cuffscancel
229 Commits over 91 Days - 0.10cph!
Fixed local gesture not transitioning out properly if the gesture was cancelled via the server
Correctly hide the progress bar when unlock minigame finishes successfully
Added ItemModForceWearFromBelt, added it to prisoner hood.
Prisoner hood is now force worn when added to a handcuffed player's belt bar.
Active held entities are notified when owner dies.
Unlock handcuffs on death, releasing player limitations for when they respawn.
Handcuff statuses are now correctly applied when handcuffes are placed during wounded state.
Locked handcuffs can't be removed from belts.
Added ItemModRestraint
Added ItemModForceSelectFromBelt and related implementation.
Allow handcuffs to be applied to wounded players
Added an unlock minigame progress bar
Added a method to get the current restraining item.
Interaction checks now check for surrendering or specific restraint item settings.
Suicide can now be blocked by restraint items. (blocked for handcuffs)
Set item locked status correctly.
VM now unlocks correctly visually after minigame.
Being pushed or taking damage cancels unlock minigame
Added IsRestrainedOrSurrendering.
Changes to loot locking. Always allow belt access (surrendering or cuffed) but don't allow the victim to modify belt.
Don't lock belt inventory, just prevent moving out of it by the owner. (other inventories are locked)
Interaction changes.
Some refactor/rework.
Added restrained flag.
Removed some RPCs.
Restrained players can now be looted (not just surrendering)
Fixed push menu showing for all players. Push now shows if restrained only.
Interaction functionality is now tied to being restrained, not locked inventory.
Set world model anim params to reflect state
Assign world model animator
Add anim override for captive state
Set entity animation override default to kidnapper
3p cuffs - 3p anim exports, also added an overirde controller for kidnapper state
world cuffs setup - Added poses for open & closed, as well as 'locked' bool to traverse between states
3p handcuffs updates:
- rigged world model, added poses
- added worldmodel animator
- setup entity with cuffs model
- added 1st pass 3p anims
More ent setup and gameplay wip
RPC fixes.
Deploy in correct state.
Auto select functionality.
handcuffs 3p setup - added initial anims, created override controller, set entity to use
vm handcuffs - anims, added states, trigger & bools to animator,
Apply handcuffs to victim wip
Don't run base input when locked
Switch handcuffs to use BaseMelee