Manhunt is a project developed in collaboration with Theodore Landles, Game Designer, where my main responsibility was developing the player character mechanics.
Based on the brief provided by Ted, I was required to create two types of player character: The Hunter, and The Hunted.
At this stage, almost all of the mechanics for The Hunter have been developed, just awaiting polish.
Tag - Allows Hunter to tag the Hunted with the click of the Left-Mouse Button
Charge - a 5m dash with a 10 second recharge
Lunge - Temporarily doubles The Hunters Tag range but reduces movement speed
Jogging - Increases movement speed by 1.2x and drains stamina
Dodge - 2m dash in any direction and 1.5 second immunity from Tag
Sprint - Increases movement speed by 1.5x but drains stamina faster than The Hunter
Last Minute - instantly regain Dodge and Sprint ability but drains 2x faster
The charge was one of the more simpler mechanics to create in blueprint. It required checking that the player wasn't jumping and then applying an impulse.
There were initially some issues with the launch velocity wherein the Hunter would be launched a disproportionately long distance if they used the ability to charge over the edge of a raised platform.
This was solved by increasing the Braking Deceleration Falling from 0 to 10000 units.
The Lunge ability was a bit more complex.
First I had to increase the half-height of the collision capsule that is used to detect the tag, and then set its location so that it starts in the same position as the regular tag capsule.
Then I had to create a timer to determine how long the Lunge lasted. Once the timer is complete, the Tag capsule returns to its default half-height and returns to its original location.
The Jogging required the Hunters movement speed to increase by x1.2m/s and a recharging stamina system.
To start, I used bools and a Do Once to set the max walk speed x speed multiplier (1.2). This triggers a Component blueprint for the stamina and loops it to slowly remove stamina.
When the player stops jogging, it triggers the Stamina Regen which increases the stamina. The player can start jogging as soon as the stamina is greater than O.