Sorry to disappoint, but I hope someone other than me finds it useful as single player thingy.
I needed this anyway, because I have been wanting exploding head animations since before headshots were a feature of the engine.
Now I need to finish this by incorporating it into a Enemy AI script and a destroy that calls the custom animation.
If I can get 1 working then I hope to do three, so I can do a random thingy to mix it up.
You know, one where it explodes then they fall to knees and flop foward.
Then one were they body limp falls to one side, and another where it does a spiral on the way down.
The exploding head is the tricky part and will be included in all three falls of course since they are all headshot falls.
So, I'm off to animate..L8rs
C
NJURED
Edit
Wow, I never had any luck adding bones the the stock animations before, because it always messed them up.
However, I finally figured out a work around, so I have added bones to the boneset without ruing them, whic means custom animations on the way.
Until then, I wanted to give you guys an example of what I was talking about before when I said you could goto another state.
So, I whipped up another script that I canibalized my dieharder.fpi to create.
This is a replacement destroy script for the one above, and instead of a sound it does something else.
This script destroys the officer if no headhot killed him, so then he respawns and you try again.
However, if you do get a headshot, then he goes down (custom animation from stock frames) and he stays down and does not respawn.
Here is the
;Artificial Intelligence Script by Conjured Entertainment
;Blow Head Apart On Headshot WIP
desc = blow head apart on headshot
;Triggers
:state=0:state=1
:state=1:globalvar=79
:state=1,varequal=0:state=3
:state=1,varequal=9:state=2
:state=2:globalvar=79
:state=2:setvar=0,destroy
:state=3:localvar=1,setframe=16,state=4
:state=4:incframe=16,incvar=1
:state=4,vargreater=9:state=5
:state=5:decframe=16,decvar=1
:state=5,varless=1:state=6
:state=6:suspend,coloff,state=7
;End of Script
for headshotsplatter.fpi
Yes, it is a Work In Progress for the final script as you can tell from the name.
I have added a picture of what I have so far...
The idea is to do a really simple animation addition first just to see if this is going to work as planned.
I don't want to get elaborate on the head explosion if the animations aren't going to work right. (delays or glitches)
So, I have decided to just blow the top of his head off, which will be pretty simple to animate.
What I have done so far if duplicate the head, and added the bones I will need for the other effects.
I also had to duplicate the top of the head (the piece that blows off) and moved the other vetices down to make the hole.
I've also added vertices and faces the the top part so it will show brains and stuff underneath.
Once I get the animations done then I might fool around with the brain textures.
Til next time, CE
PS
I'm not trying to hijack your thread AG.
I will make a new thread for my WIP once I get the animation working in game.