4,305 Commits over 1,919 Days - 0.09cph!
Show belt items as locked to make it clearer you can't use them when handcuffed
Added "togglecluffslocked" console command
Hooked up first person struggle anim for unlock minigame
Handcuffs block crafting.
Don't show push menu if player is dead or sleeping
Merge from hood_and_cuffs
Removed some debug logs and unused/temp code.
Removed protobuf and serialization stuff as it's not needed now.
Some initial cleanup.
Select handcuffs as active item when loading or waking restrained players.
Added a handcuffed test save.
Items can now be flagged to block map use.
Prisoner hood blocks map use.
Handcuffs block gestures.
Codegen.
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
More ent setup and gameplay wip