An enemy that can block everything

Mr.Q!

Well-known member
Any way to make an enemy to block everything? I've tried:

blockodds 1
thold 0

...And he still doesn't block some of my attacks.
I want him to block everything, unless i hit him during an specific section of one of his attack animations, and well, the next attacks that connect after that 1st attack should be able to hit him as well, in other words, that he cannot block if he is hit during his pain animation.
 
Hey Mr.Q!,

The engine AI is limited in blocking because it follows the same rules players do - it can't block if it's already doing anything else. For the AI, that can mean a lot of things, so there's no perfectly reliable way to do this with native blocking. You could give the animations a Counterrange with Follow set up to look like a block, but that would take forever.

This is where you look to the Doattack event. I explain how it works in this video. Modify the script example so instead of ALL attacks just passing through, you check for the animations you check for that situation you are talking about. If the entity is doing anything else, spawn a block flash and set a blocking animation.


HTH,
DC
 
Damon Caskey said:
Hey Mr.Q!,

The engine AI is limited in blocking because it follows the same rules players do - it can't block if it's already doing anything else. For the AI, that can mean a lot of things, so there's no perfectly reliable way to do this with native blocking. You could give the animations a Counterrange with Follow set up to look like a block, but that would take forever.

This is where you look to the Doattack event. I explain how it works in this video. Modify the script example so instead of ALL attacks just passing through, you check for the animations you check for that situation you are talking about. If the entity is doing anything else, spawn a block flash and set a blocking animation.


HTH,
DC

Is that example in the video available for download somewhere?
 
Mr Q, try adding this:

nopassiveblock 1

And set range in enemy's BLOCK animation to tell enemy how close player should be before enemy blocks.
However, as Damon posted above, if enemy attacks, he won't block. Therefore to let enemy block, you could give the enemy mid to long range attacks OR use scripted attack.
 
Back
Top Bottom