top of page
Search

Dev Log#30: Capture The Flag

I created a capture the flag gamemode by creating a class based on the TeamsGameMode class. Which means we inherit all the functionality talked about in the previous blog post but the only difference is the flag score gets added onto the teams score whenever a player returns with the enemy's flag.


The flag is treated like a weapon but without any of the reload and shooting functionality.

In the key binding functions, they return early if the player is holding the flag.
In the key binding functions, they return early if the player is holding the flag.

The functionality for the flag is mainly behind the combat component class as I have a replicated boolean called bIsHoldingTheFlag.

The equip function is how the boolean is being set to true.
The equip function is how the boolean is being set to true.
The two situations where the player can stop holding the flag is to drop it for another weapon or to take it back to the team's base.
The two situations where the player can stop holding the flag is to drop it for another weapon or to take it back to the team's base.
Returning with the flag is verified with an overlap event.
Returning with the flag is verified with an overlap event.

 
 
 

Komentar


bottom of page