Enemies that can use grab, throw and use block.

kdo

Member
Hello everyone, I'm trying to make an enemy have the grab, throw and block abilities to use against the player, but even with the animations and some settings the enemy just attacks the player without using any of these abilities.

The enemy txt:

name hunter
type enemy
health 100
speed 8
nolife 1
nopain 0
nodrop 0
falldie 1
nodieblink 2
subject_to_hole 1
subject_to_wall 1
subject_to_screen
turndelay 0.05
projectilehit enemy
shadow 1
dust fall land1 land1
throwdamage 10

throw 2 2.6

candamage player ENEMY NPC

knockdowncount 5

nkife shot

hostile player

gfxshadow 0

blockpain 1
guardrate 2
guardpoints 60
guardcoast 60
thold 15

blockodds 100

nopassiveblock 1

bflash bflash

grabdistance 3
throwdamage 10

agression 300


And also he has the especific animations :

anim block anim blockpain anim guardbreak anim grab anim throw


I would appreciate it if anyone can help!!!!!
 
Enemies (and NPCs too) who are very aggressive are less likely to block.
Also grabbing and throwing requires attacker to get very close to opponent. If enemy is too busy attacking, they won't get close to grab nor throw.

Try reducing aggression to let enemy consider blocking. As for getting close, try giving aimove chase so the enemy will try to chase and get real close to player.
 
You could take a different approach by adding attack animations to make the enemy's behavior seem like it's randomly using blocking or grappling moves:
  1. Block for 1 second, then transition into an attack animation.
  2. Block for 0.5 seconds, then retreat for 0.5 seconds, followed by a heavy attack.
  3. Perform a 0.5-second/1-second walk forward:
    • If the enemy comes into contact with the player, transition to a grappling animation.
    • If no contact occurs, play an attack animation.
  4. Perform a 0.5-second/1-second running forward:
    • If the enemy comes into contact with the player, transition to a grappling animation.
    • If no contact occurs, play a heavy attack animation.
 
Back
Top Bottom