Welcome back.
Now we have demons, but we still have a few things to take care of.
For one, we need some sound notifies and we need our demons to react when getting hit.
So first, let's go to our demons Walk animation.
So we'll go to assets enemies, demon animations.
And it's actually called Demon Red Run.
So we'll just add a couple footsteps to this.
Renaming the notify track to sounds.
Right click on the Sounds track, add notify play sound.
And we're just going to use the footsteps.
Quiet.
And we'll put some right there and right here.
So now our demons have footsteps.
Let's go ahead and make a hit.
React for our demon as well.
So we have a demon hit, React.
Here's what it looks like.
And we're going to go ahead and make a montage out of this.
So right click, create and a montage.
We'll call this a m underscore daemon.
Hit React.
And in our hit React animation, we need a hit react sound.
So let's go to assets sounds.
We'll go to enemies demon hurt and we have a nice demon hurt sound.
So I'm going to go back to sounds and take my template multi drag it and copy it into Demon Hurt.
Copy here.
I'm going to rename this to SFX underscore Demon Hurt.
We're going to open it, open the content drawer doc and layout and open that to enemies Demon hurt.
Select the input array, get these three sounds onto it.
Press play.
And we'll lower the volume a bit.
Let's make this 0.25.
And I'd like to raise the pitch.
We're going to go up to between 3 and 4 and we'll use this.
As if demon hurt and our hit react montage.
So we're going to go ahead and change the notify track to Sounds right, click add, notify play sound.
And there's demon hurt.
Okay, let's test out.
Hit reacts.
We'll save all.
And we're not getting anything.
And that would be because we didn't set it in our demon blueprint.
So here in Demon Warrior, let's search for hit, React.
And here's hit React montage.
We're going to set that.
So we have a demon hit React.
We need to do that for the other demon, the demon ranger.
I'm going to search for that here as well.
We'll set that here.
Demon hit React.
Now we can play a test.
And it looks like it's working.
It's working for the Warriors.
It's not working for the Ranger, is it?
So let's see why now.
Everything is the same except for the character class.
But because it's a ranger, it doesn't mean it shouldn't have that gameplay effect for hit React.
Sometimes we get an issue when duplicating blueprints as opposed to just creating a new one.
So what I'm going to try is go to Blueprints character Demon and take this Ranger and add underscore
deprecated.
So I know that that's the old one and I'm going to make a new demon.
I'm going to right click on my enemy base and make a child blueprint and call this one BP Demon Ranger.
Bring that into my demon folder.
And that's actually not going to be possible because in the demon folder, because I renamed BP Demon
Ranger, there's still a Redirector left behind.
I can right click on the demon folder and select fix up Redirectors.
And go back and see if I can get that demon ranger in there.
And it looks like we were able to that time now for the Demon Ranger.
We can go in and set all the properties.
We can go to the mesh, we can set that to Sky Demon.
We can even change the material to the dark material.
We can copy the capsule dimensions from the old one.
So take the capsule component, take its scale, copy it, and come back to this capsule component.
Take this capsule component.
Copy the capsule half height.
Come back to the demon ranger and paste that.
And do the same for radius.
And we can select the mesh and do the same thing for location.
Selecting the mesh paste, the location rotation is easy.
It's just going to be 90 degrees to the side.
We can take that mesh and set the animation blueprint to App Daemon.
We can search for combat selecting Demon Ranger and we can set some properties here like base walk speed,
maybe 175 for the demon Ranger.
We only care about the left hand socket name, and if I search for combat in the old one, we'll see
that that's left hand socket.
So I'll copy that.
Put that back here in our new one.
We need an attack montage, so we're going to add that.
And for the montage, we're going to use the throw animation.
Montage.
Montage tag will be attack one.
Socket tag will be combat socket tail impact sound we don't need because our projectile has the impact.
Sound blood effect is set to blood impact by default and we don't have a death sound yet, but we do
have the hit React montage that's going to be set to demon hit React.
All right.
So let's get this ranger out of there.
We'll delete it and bring in the new demon Ranger.
Looks like I brought in the deprecated version, so I'm going to delete that and come back here and
delete this one.
I'm going to force delete it and bring in the new demon Ranger.
And let's see if that fixed anything.
And it's working as expected.
So sometimes using duplicate in the content browser can cause problems.
So if you did everything exactly the same, yet it's not working.
That's something to be aware of and test out.
Okay.
Excellent.
So we now have a hit react.
We also want a death sound set.
We can make a death sound if we go to content assets.
Sounds enemies demon.
We have a death sound.
Now we created one for the ghoul.
I'd like to make one for the demon.
I'm going to duplicate it.
I know.
I just said duplicating can cause problems, but that's with blueprints.
With meta sounds, it's usually, okay, I'm going to call this SFX Demon Death and we're going to open
it and we're going to change this pitch.
We're going to go from 0 to 4, maybe a little higher.
Let's go from 3 to 6.
I like that.
We're going to use that for our death sound and we'll do that for both of these.
So I'm just going to right click on these guys here.
Edit Bpea Demon Warrior Search for Death and set the Death sound here to SFX Demon Death.
I'm going to browse to it, select it and hit that left arrow.
There it is.
I'm going to go ahead and right click on the Ranger edit that I'll just search for death.
Hit the left arrow and we have it there as well.
And we can press play.
And we can kill the demons.
Sounds great.
I'm going to set the number of players to one.
As it takes longer to load with two and things are looking great.
In the next video, we can take care of the dissolved materials for our demon.
Excellent job.
I'll see you soon.