can I make monsters knock back in ther pain

I'm just getting back to working on my zelda wad again but there's a problem
I'm stuck on making a monster get knocked back when hit

so is it possible to have monsters get knocked back while there pain is triggered

Share this post


Link to post
bignekidbat said:

I'm just getting back to working on my zelda wad again but there's a problem
I'm stuck on making a monster get knocked back when hit

so is it possible to have monsters get knocked back while there pain is triggered


All you need to do is set the mass to an appropriate amount. Whether you're using DECORATE or DeHackEd, mass determines how light or heavy an enemy is: an enemy with a low mass will get pushed back by projectiles, while an enemy with a high mass won't. Setting the mass to 1 is always fun. :P I don't think it's possible to have the monster recoil only when it's pain state is triggered, but you could probably get around that by having a high pain chance. Hopefully I've helped you out. :)

Share this post


Link to post

if using acs (zdoom doom in hexen) you can use:
http://zdoom.org/wiki/ThrustThing
You probably want to get the xy position of the player and the xy of the monster and thrust in that angle using cos and sin. You can probably put some sort of 'script execute' in the decorate pain state to trigger a script that does that.

But low mass is a lot simpler.

Share this post


Link to post

well lowering the mass worked just fine
now I can have enemies get pushed while bosses don't
thanks guys

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