Fall{#} off by -4?

I just noticed that my anim fall# animations are off by -4. In other words attack.damage.type 11 triggers anim fall7 instead of anim fall11. I am not sure what is going on here.

I know by default fall anim are from 2-10. (although max attacks are increased to 200)

There is no 2, 7, 8, or 9 fall anim created in the mod I am altering. Since 4 are missing could this be the reason my fall are off by -4?
 
Did you type attacktypes in models.txt? There's a difference between maxattacks and maxattacktypes. maxattacks is used for ANIMATIONS while maxattacktypes is used for the types of attacks for hitting targets with specific attack type.

If you are receiving an error "Invalid animation name line xxx" , you need to rise the value of the max animations you use for each type. For example, if you have MAXFOLLOWS 4 and try to use FOLLOW10, you will receive that error and you need to change the MAXFOLLOWS to 10. No need to change the others if you aren't using more animations than the max value.

maxattacks {max}

  • Sets the maximum number of normal attacks animation i.e ATTACK1, ATTACK2 etc.
  • {max} is number of available animations.
  • Default is 4.

maxattacktypes {max}

  • Sets the maximum number of attack types.
  • PAIN,FALL, RISE, BLOCKPAIN and DEATH animations limit is also set together with this.
  • {max} is number of available types.
  • Default is 10 & maximum value is 99.

models.txt:
Code:
maxattacktypes 99

Pay attention to the red bold highlight here.

Example:
anim freespecial5 #H first hit
delay 9
offset 140 188
bbox 124 91 49 99
cancel 3 4 1 a2 freespecial9 #H H
cancel 3 4 1 a freespecial14 #H L
sound data/sounds/punch2.wav
frame data/chars/heroes/Terry/130_1.png
attack2 152 100 47 37 9 0 0 0 0 0
frame data/chars/heroes/Terry/130_2.png
frame data/chars/heroes/Terry/130_3.png
bbox 134 99 46 90
attack2 0
frame data/chars/heroes/Terry/131_5.png
bbox 124 90 46 98
frame data/chars/heroes/Terry/131_6.png

anim pain2

offset 69 122
delay 13
bbox 53 27 35 91
frame data/chars/enemies/garcia/pain100.png
frame data/chars/enemies/garcia/grabbed.png
frame data/chars/enemies/garcia/pain100.png
 
maxattacks and maxattacktypes are set at 200 in models.txt freespecials at 200 as well.

for me to use fall9. I have to use attack13. I know the mod have 11 different weapons types which means 11 entities for a single player character. Maybe it is too much?

Maybe there is a rogue script I am not aware of

I could try to use fall2 (unused) and see if attack2 triggers the correct fall.
 
Back
Top Bottom