scpcb
scpcb copied to clipboard
Fixes and improvements to 049 removing hazmat suit/714
Fixed + improved version of PR #179.
Before: https://streamable.com/cb18y1
After: https://streamable.com/v75oqp
4fe064823ac00b9cac6c1bbcc384d810f2ab8f20 Fixes and improvements to 049 removing hazmat suit/714
- Use two new globals as removal timers instead of BlurTimer, which fixes the issue where having blurry vision from another source (e.g. 420-J) causes 049 to remove the hazmat suit/714 sooner, as well as the issue where wearing both items at once causes 049 to only spend time removing the hazmat suit
- Hazmat suit now falls to the ground when removed by 049 instead of being inexplicably destroyed
- 714 now falls to the ground when removed by 049 instead of remaining in player's inventory (not that it matters much since the player dies afterwards)
- Add messages to make it clear to the player when an item is removed
- Make removal voice lines play sooner, replacing the initial awkward silence on contact and ensuring 049 is able to play a "kidnap" voice line on kill
- Previously, PrevState represented whether 049 had played a removal voice line, but it would reset to 2 the moment you backed away from 049, and would not allow both removal voice lines to play if you were wearing both items at once; now, ChannelPlaying checks are used instead, preventing removal voice lines from being spammable by repeatedly approaching and backing away from 049, and also allowing both removal voice lines to play (edit: in general this makes 049 interrupt himself less, at the cost of a voice line potentially not playing, as seen at the end of the after video)
ffdb4828e9647aa92775be967892e8c500480124 Remove ability to pick up items while dying
It was easy to pick up the dropped hazmat suit while dying after 049 removed it. This shouldn't be possible.