Regalis11 / scpcb

SCP - Containment Breach
354 stars 101 forks source link

Fixes to 049 #238

Closed ChronoQuote closed 1 year ago

ChronoQuote commented 1 year ago

31d2f8ff13d95feecc11c910de7dcbb0847eee33 Fix 049 teleporting to player room

There's a block of code in UpdateNPCs that would teleport 049 to a room adjacent to a room adjacent to the player room. Well, the player room itself is a room adjacent to a room adjacent to the player room. See commit for more info.

55c6f817fe99315312053944b3fb2e5e088c3b86 Fix 049 appearing on blue NVG interface while idle

When 049 is idle, the game positions his collider to 0,-500,0, but because ResetEntity isn't called, his collider collides with the floor and remains above ground while his model successfully goes below ground because it has no collision. This results in 049's collider showing up on the blue NVG interface even though he is idle and his model can't be seen. See commit for more info.

Haven't studied 049's AI too much but I know it has other issues. If I fix any more I'll add the fixes to this branch.

ChronoQuote commented 1 year ago

Ok cool, renaming a branch closes the PR, awesome.