I am doing some character modeling. I am trying to change the character hit animation for a custom character, Despite all attempts, It appears to just moveback a certain distance then return to idle animation. My question would be, is there an animation number associated with when a character is hit by a bullet or a melee strike? or does it just move backwards.
Thanks in advance.
EDIT: 10-27-2010
Added tutorial on info I found to accomplish this. See down load button.
script Code sample in this post.
Custom Hit and Death (WIP)
FPE character file
;header
desc = FatMosterchar (unarmed)
;ai
aiinit = appear1.fpi
aimain = people\FatMonsterDeath.fpi
aidestroy = destroy\FatMonsterfadecorpse.fpi
aishoot =
soundset = monster
;spawn
spawnmax = 0
spawndelay = 0
spawnqty = 0
;orientation
model = FatMonster.X
offx = 0
offy = 0
offz = 0
rotx = 0
roty = 0
rotz = 0
scale = 80
fixnewy = 180
;cone of sight
coneheight = 53
coneangle = 50
;visualinfo
textured = FatMonster_d2.dds
effect = effectbank\bumpbone\bumpbone.fx
castshadow = 0
;decals
decalmax = 2
decal0 = red
decal1 = blood
;identity details
strength = 100
ischaracter = 1
hasweapon =
isobjective = 0
cantakeweapon = 1
;bodypartslimbinfo (1=head/2=body/3+4=armslr/5+6=legslr)
limbmax = 0
;animationinfo - Standard FPSC
animmax = 100
;anim0 = 210,233
anim0 = 706,720
;anim1 = 160,189
anim1 = 961,985
anim2 = 235,259
anim3 = 260,279
anim4 = 280,299
anim5 = 300,318
anim6 = 319,355
anim7 = 160,189
anim8 = 330,355
;anim11 = 0,19 Death Anim
anim11 = 67,79
anim12 = 20,39
anim13 = 493,522
anim14 = 40,59
anim15 = 60,79
anim16 = 523,552
anim17 = 120,139
anim18 = 140,159
anim20 = 80,99
anim21 = 100,119
;anim24 = 258,263
anim24 = 2408,2437
anim25 = 67,79
anim26 = 2513,2542
anim31 = 356,380
anim32 = 381,405
anim33 = 381,405
anim34 = 381,405
anim35 = 381,405
anim36 = 406,442
anim40 = 443,462
anim41 = 463,492
;anim50 = 553,572
anim50 = 330,355
anim51 = 573,597
anim52 = 598,622
anim53 = 623,642
anim54 = 643,662
anim55 = 663,681
anim56 = 682,731
anim57 = 160,189
anim61 = 0,19
anim62 = 20,39
anim63 = 882,911
anim64 = 40,59
anim65 = 60,79
anim66 = 912,941
anim67 = 120,139
anim68 = 140,159
anim70 = 80,99
anim71 = 100,119
anim81 = 732,756
anim82 = 757,781
anim83 = 757,781
anim84 = 757,781
anim85 = 757,781
anim86 = 782,831
anim90 = 832,851
anim91 = 852,881
Main AI Script:
;Artificial Intelligence Script
;Header
desc = FatMonsterDeath
;Triggers
;From Melee10 script
;Idle
:state=0,plrdistwithin=500:state=1
;Keep enemy moving towards player Slow Walk
:state=1,plrdistfurther=90:rotatetoplr,movefore=2,animate=2
;If player moves away then Idle
:state=1,plrdistfurther=500:animate=1,state=0
;If Player within 90 attack player and react to hit from player
:state=1,plrdistwithin=90,rateoffire:rotatetoplr,setframe=8,state=2
;:state=1,shotdamage=10:setframe=26,state=4
:state=1,shotdamage=10:setframe=26,state=4,sound=audiobank\voices\monster\hurt2.wav
;Score damage to player
:state=2,framebeyond=8 60,plrdistwithin=100:plraddhealth=-10,state=3
;End Attack Back to check player distance from enemy
:state=2:incframe=8,rotatetoplr
:state=2,frameatend=8:state=1
;Back to check player distance from enemy after player hit damage
:state=3:incframe=8
:state=3,frameatend=8:state=1
;hit animation
;:state=4:setframe=26
:state=4:moveback=20,incframe=26
:state=4,frameatend=26:state=1
;End of Script
Custom Fadecorpse.fpi
;Artificial Intelligence Script
;Header
desc = Custom Fade Out Disappear
;Triggers
:state=0:state=1
;From Erart for enemy hit animation and death animation
;:state=0:decal=0,state=1,
;This might not need to be here, adjust states if not
:state=1:setframe=26,state=2
:state=2:incframe=26
:state=2,frameatend=26:state=4,setframe=25
;Last Animation call right before character takes death hit
;:state=3:setframe=25
:state=3:incframe=24
;:state=3,frameatend=24:state=4,setframe=25
:state=3,frameatend=24:state=5
;Death animation call
;:state=4:setframe=24
:state=4:incframe=25
:state=4,frameatend=25:state=5
;Fade out character and destroy entity completly
:state=5,alphafadeequal=100:decalphafade=0
:state=5,alphafadeequal=0:state=6,destroy
;End of Script
Nothing but coffee in my veins