WEBVTT

00:06.810 --> 00:07.860
Welcome back.

00:07.860 --> 00:13.080
Now we have demons, but we still have a few things to take care of.

00:13.110 --> 00:20.400
For one, we need some sound notifies and we need our demons to react when getting hit.

00:20.820 --> 00:25.620
So first, let's go to our demons Walk animation.

00:25.620 --> 00:30.480
So we'll go to assets enemies, demon animations.

00:30.480 --> 00:33.240
And it's actually called Demon Red Run.

00:33.630 --> 00:36.870
So we'll just add a couple footsteps to this.

00:39.120 --> 00:42.120
Renaming the notify track to sounds.

00:42.540 --> 00:48.180
Right click on the Sounds track, add notify play sound.

00:48.180 --> 00:52.440
And we're just going to use the footsteps.

00:52.830 --> 00:53.940
Quiet.

00:55.530 --> 00:59.220
And we'll put some right there and right here.

01:02.040 --> 01:04.520
So now our demons have footsteps.

01:04.530 --> 01:06.480
Let's go ahead and make a hit.

01:06.480 --> 01:08.850
React for our demon as well.

01:08.880 --> 01:11.280
So we have a demon hit, React.

01:11.310 --> 01:12.930
Here's what it looks like.

01:14.420 --> 01:18.440
And we're going to go ahead and make a montage out of this.

01:19.870 --> 01:23.200
So right click, create and a montage.

01:23.230 --> 01:26.260
We'll call this a m underscore daemon.

01:26.470 --> 01:27.610
Hit React.

01:28.980 --> 01:34.170
And in our hit React animation, we need a hit react sound.

01:34.560 --> 01:37.650
So let's go to assets sounds.

01:38.770 --> 01:45.430
We'll go to enemies demon hurt and we have a nice demon hurt sound.

01:45.760 --> 01:54.130
So I'm going to go back to sounds and take my template multi drag it and copy it into Demon Hurt.

01:54.870 --> 01:55.920
Copy here.

01:56.370 --> 02:00.870
I'm going to rename this to SFX underscore Demon Hurt.

02:01.920 --> 02:10.530
We're going to open it, open the content drawer doc and layout and open that to enemies Demon hurt.

02:10.560 --> 02:14.940
Select the input array, get these three sounds onto it.

02:15.060 --> 02:16.320
Press play.

02:16.970 --> 02:19.640
And we'll lower the volume a bit.

02:19.640 --> 02:22.730
Let's make this 0.25.

02:23.630 --> 02:25.760
And I'd like to raise the pitch.

02:25.760 --> 02:30.470
We're going to go up to between 3 and 4 and we'll use this.

02:31.720 --> 02:35.890
As if demon hurt and our hit react montage.

02:36.790 --> 02:45.610
So we're going to go ahead and change the notify track to Sounds right, click add, notify play sound.

02:45.610 --> 02:47.050
And there's demon hurt.

02:48.260 --> 02:49.970
Okay, let's test out.

02:50.000 --> 02:51.020
Hit reacts.

02:51.050 --> 02:52.310
We'll save all.

02:57.380 --> 02:59.840
And we're not getting anything.

02:59.840 --> 03:06.050
And that would be because we didn't set it in our demon blueprint.

03:06.080 --> 03:11.720
So here in Demon Warrior, let's search for hit, React.

03:11.720 --> 03:13.640
And here's hit React montage.

03:13.970 --> 03:15.320
We're going to set that.

03:15.830 --> 03:18.470
So we have a demon hit React.

03:18.570 --> 03:23.150
We need to do that for the other demon, the demon ranger.

03:23.240 --> 03:25.160
I'm going to search for that here as well.

03:25.160 --> 03:26.600
We'll set that here.

03:28.550 --> 03:29.810
Demon hit React.

03:31.320 --> 03:33.150
Now we can play a test.

03:36.080 --> 03:37.790
And it looks like it's working.

03:40.930 --> 03:42.550
It's working for the Warriors.

03:42.550 --> 03:44.620
It's not working for the Ranger, is it?

03:44.620 --> 03:47.680
So let's see why now.

03:47.680 --> 03:52.270
Everything is the same except for the character class.

03:52.270 --> 03:58.270
But because it's a ranger, it doesn't mean it shouldn't have that gameplay effect for hit React.

03:58.270 --> 04:05.530
Sometimes we get an issue when duplicating blueprints as opposed to just creating a new one.

04:05.530 --> 04:15.550
So what I'm going to try is go to Blueprints character Demon and take this Ranger and add underscore

04:15.550 --> 04:16.870
deprecated.

04:17.830 --> 04:21.250
So I know that that's the old one and I'm going to make a new demon.

04:21.250 --> 04:28.900
I'm going to right click on my enemy base and make a child blueprint and call this one BP Demon Ranger.

04:30.430 --> 04:32.590
Bring that into my demon folder.

04:34.490 --> 04:42.950
And that's actually not going to be possible because in the demon folder, because I renamed BP Demon

04:42.950 --> 04:47.330
Ranger, there's still a Redirector left behind.

04:47.450 --> 04:52.250
I can right click on the demon folder and select fix up Redirectors.

04:54.320 --> 04:58.100
And go back and see if I can get that demon ranger in there.

04:59.410 --> 05:03.930
And it looks like we were able to that time now for the Demon Ranger.

05:03.940 --> 05:05.950
We can go in and set all the properties.

05:05.950 --> 05:10.270
We can go to the mesh, we can set that to Sky Demon.

05:10.540 --> 05:13.810
We can even change the material to the dark material.

05:14.050 --> 05:18.400
We can copy the capsule dimensions from the old one.

05:19.670 --> 05:25.970
So take the capsule component, take its scale, copy it, and come back to this capsule component.

05:26.180 --> 05:28.250
Take this capsule component.

05:28.280 --> 05:30.290
Copy the capsule half height.

05:30.320 --> 05:33.170
Come back to the demon ranger and paste that.

05:34.680 --> 05:36.540
And do the same for radius.

05:38.930 --> 05:43.610
And we can select the mesh and do the same thing for location.

05:45.650 --> 05:50.120
Selecting the mesh paste, the location rotation is easy.

05:50.120 --> 05:53.810
It's just going to be 90 degrees to the side.

05:56.690 --> 06:01.460
We can take that mesh and set the animation blueprint to App Daemon.

06:02.200 --> 06:11.260
We can search for combat selecting Demon Ranger and we can set some properties here like base walk speed,

06:11.260 --> 06:14.140
maybe 175 for the demon Ranger.

06:14.140 --> 06:21.250
We only care about the left hand socket name, and if I search for combat in the old one, we'll see

06:21.250 --> 06:22.900
that that's left hand socket.

06:24.220 --> 06:25.610
So I'll copy that.

06:25.630 --> 06:28.360
Put that back here in our new one.

06:28.540 --> 06:32.140
We need an attack montage, so we're going to add that.

06:33.420 --> 06:36.870
And for the montage, we're going to use the throw animation.

06:38.170 --> 06:39.040
Montage.

06:39.490 --> 06:42.010
Montage tag will be attack one.

06:42.790 --> 06:50.320
Socket tag will be combat socket tail impact sound we don't need because our projectile has the impact.

06:50.320 --> 06:58.330
Sound blood effect is set to blood impact by default and we don't have a death sound yet, but we do

06:58.330 --> 07:03.760
have the hit React montage that's going to be set to demon hit React.

07:07.560 --> 07:08.490
All right.

07:10.070 --> 07:12.740
So let's get this ranger out of there.

07:12.770 --> 07:15.920
We'll delete it and bring in the new demon Ranger.

07:17.430 --> 07:22.590
Looks like I brought in the deprecated version, so I'm going to delete that and come back here and

07:22.590 --> 07:23.970
delete this one.

07:24.960 --> 07:29.760
I'm going to force delete it and bring in the new demon Ranger.

07:30.720 --> 07:32.970
And let's see if that fixed anything.

07:34.900 --> 07:37.200
And it's working as expected.

07:37.210 --> 07:43.720
So sometimes using duplicate in the content browser can cause problems.

07:43.720 --> 07:48.810
So if you did everything exactly the same, yet it's not working.

07:48.820 --> 07:52.300
That's something to be aware of and test out.

07:53.330 --> 07:54.200
Okay.

07:54.350 --> 07:55.610
Excellent.

07:57.300 --> 07:59.370
So we now have a hit react.

07:59.400 --> 08:02.220
We also want a death sound set.

08:02.250 --> 08:06.180
We can make a death sound if we go to content assets.

08:06.210 --> 08:08.850
Sounds enemies demon.

08:08.970 --> 08:10.590
We have a death sound.

08:10.710 --> 08:13.260
Now we created one for the ghoul.

08:13.500 --> 08:15.490
I'd like to make one for the demon.

08:15.510 --> 08:17.040
I'm going to duplicate it.

08:18.730 --> 08:19.090
I know.

08:19.090 --> 08:22.600
I just said duplicating can cause problems, but that's with blueprints.

08:22.600 --> 08:29.650
With meta sounds, it's usually, okay, I'm going to call this SFX Demon Death and we're going to open

08:29.650 --> 08:32.080
it and we're going to change this pitch.

08:32.290 --> 08:38.650
We're going to go from 0 to 4, maybe a little higher.

08:38.650 --> 08:41.740
Let's go from 3 to 6.

08:42.730 --> 08:43.810
I like that.

08:43.840 --> 08:48.100
We're going to use that for our death sound and we'll do that for both of these.

08:48.100 --> 08:50.620
So I'm just going to right click on these guys here.

08:50.770 --> 08:58.180
Edit Bpea Demon Warrior Search for Death and set the Death sound here to SFX Demon Death.

08:58.180 --> 09:02.440
I'm going to browse to it, select it and hit that left arrow.

09:02.470 --> 09:03.610
There it is.

09:03.820 --> 09:09.580
I'm going to go ahead and right click on the Ranger edit that I'll just search for death.

09:10.180 --> 09:13.090
Hit the left arrow and we have it there as well.

09:13.090 --> 09:14.680
And we can press play.

09:16.530 --> 09:18.360
And we can kill the demons.

09:25.850 --> 09:27.150
Sounds great.

09:27.170 --> 09:29.450
I'm going to set the number of players to one.

09:31.270 --> 09:35.740
As it takes longer to load with two and things are looking great.

09:35.740 --> 09:40.660
In the next video, we can take care of the dissolved materials for our demon.

09:40.990 --> 09:41.890
Excellent job.

09:41.890 --> 09:42.970
I'll see you soon.
