Bug Fixes In Mantle and Hacking


After being done with implementing the core mechanics in our game the Mantle, Grappling, and Hacking systems. Many bugs were found while play-testing the mechanics.  


BUG 1: Mantling Backwards

Problem: The player can mantle onto a mantle block while looking away from it which creates weird mantle movements, especially in First Person Camera view.  

Tracking: There wasn't much tracking involved to find out where the bug was as it really isn't a bug, but more of an I wasn't checking for backward mantling. 

Solution: Add an extra check to see if the player is looking toward the mantle block, but instead of using the forward vector of the player's camera, you have to use the forward vector of the Capsule Component, since that insures no other bugs of this sort will arise. If the camera is used, weird bugs such as this one will arise: The player looks straight up to the sky, then tries to mantle, and the mantle will go through. 

Implementing the fix: A simple Dot product between the player's capsule component and the target mantle location can be used to see if the player is facing in the direction of the mantle block.


BUG 2: The player stuck In the air after hacking


Problem: The player gets stuck in the air after hacking a pawn or hack device. To reproduce the bug you have to grapple first then spam the hack key and the hacking process will begin making the player stuck in the air. 

Tracking: It was simple to track down as it was just missing a simple check.

Solution:  Can be solved by checking if the player is already in the air and is not grappling before allowing the player to hack. 

Implementing the fix: Simple if check 


 - Vrij Patel, VECCA Developer

Leave a comment

Log in with itch.io to leave a comment.