DAY 24
TODAY I got the stun mechanic mostly working; enemies will now get stunned for 1 second when you shoot them. I want to make the stun time change depending on how long you charged the shot, but other than that it works great. I'm continuing to get more experience using Behavior Trees in Unreal which is very satisfying. I ALSO implemented a mechanic I've been wanting to get in since I started on the railgun, which is adjusting the cooldown period between shots based on how long you charged the railgun. Now it looks at the % of time you charged the gun compared to the max charge time, and divides that by a number, the result of which is the amount of time your gun will need to cool down. Here's a screenshot:
Just an absolute rainbow of debug text ain't it wonderful. Next I'll probably work on changing the stun time based on your charge time, and/or I'll look at the design currently and see what may need to be improved or built upon. Or build the enemy spawner that I mentioned last time whoops. Ok good night bye.