Corona-cation (Day 8)

Git Commit: None


    Today was cut short by other responsibilities but I was still able to start on a new enemy. This was the Plague Doctor for the medieval area. I wanted to do this enemy because it would be the first (and most likely easiest) enemy that would have multiple attacks. According to the current design doc these were an AOE and cone attack that would poison a player for some amount of time and a slash that would do immediate damage. 
    The base of the enemy was pretty simple with most of the same code being used from the basic melee enemy until the part where I had to implement the multiple attacks. The idea was that when the enemy goes to attack it would execute a service that would set a random attack from an enum. This randomness was supposed to be weighted according to the design doc with some attacks being more common than others. I decided that this feature can wait until I know it is possible for the rest of the system to work correctly. 
    I got the random attack selection working, as well as the AOE attack. This attack will find all players within range by using a very useful node called SphereOverlapActors so I don't have to test the distance to each player. After it gets all players it needs to poison them. I am still working out how I want this to happen though.
One option I have come up with is adding a custom event on the player base class, but I feel that wouldn't be the best. My other option was to make a poison component that I would attach to the player that could handle all damage calculations. The problem with this is that I can't figure out how to do that in blueprint while I know it's possible in C++. We'll see.

    Other than the top-down game, I have been trying to compile the UE source code. This will be a long process as my internet isn't the greatest and it took just about two hours just to clone the repo from git. Hopefully it will be worth it.

Comments

Popular posts from this blog

Polishing the Foundation

Progress Update #13

A New Chapter