Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Mad Dal 85

Jumping or lunging enemies


I've noticed that in some mods and wads, some enemies (mainly the imp and pinky demon varieties) jump or lunge at the player when attacking. How is this possible?

Share this post

Link to post

1 answer to this question

Recommended Posts

  • 0

Considering how old this question is, you may have already figured something out. If you haven't, however, there are multiple ways to do this.

The one that I use the most is simply using a combination of A_FaceTarget and VelFromAngle, like so:

In this example, the first state tells the monster to stand in place and look at its target, and the second state tells it to lunge towards its target based on the distance to said target.

Like I said, there are other ways to do this, but this one is the simplest as far as I'm aware.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now