Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Lantern Jaw

Alt Death Who What?

Recommended Posts

Hey,

I have made some frames for an imp death in which his head pops off and he keels over a bit like a marine death... yet I want the death occur randomly along with regular deaths. I would really appreciate any advice on the subject.

I have looked all over and I can't find any info out there.

I also wanted to add a touch of nashgore gibbage here is the code that failed, no errors, just no alt death (the frames in question are are VWXYZ):

actor NashGore_DoomImp : DoomImp replaces DoomImp
{ 
states
	{
	Death:
    TROO I 8
    TROO J 8 A_Scream
    TROO K 6
    TROO L 6 A_NoBlocking
    TROO M -1
    stop
	TROO V 0 A_SpawnDebris("NashGore_Gib9",0)
	TROO V 0 A_SpawnItem("NashGore_GibGenerator",0,0,0,0)
	TROO V 8
    TROO W 8 A_Scream
    TROO X 6
    TROO Y 6 A_NoBlocking
    TROO Z -1
	stop 

Share this post


Link to post

It's been a loooooong time since I've worked with DECORATE but I'm fairly certain A_Jump is what you're looking for here. Such as:

actor NashGore_DoomImp : DoomImp replaces DoomImp
{ 
states
	{
	Death:
    TROO A 0 A_Jump (128, 6) // 50% chance of jumping down 6 states to TROO V
    TROO I 8
    TROO J 8 A_Scream
    TROO K 6
    TROO L 6 A_NoBlocking
    TROO M -1
    stop
	TROO V 0 A_SpawnDebris("NashGore_Gib9",0)
	TROO V 0 A_SpawnItem("NashGore_GibGenerator",0,0,0,0)
	TROO V 8
    TROO W 8 A_Scream
    TROO X 6
    TROO Y 6 A_NoBlocking
    TROO Z -1
	stop 

Share this post


Link to post



Just to show you the grizzly death that I was talking about. ...my first attempt at doom or video game sprites of any kind.

Share this post


Link to post
Lantern Jaw said:

http://www.paulloudon.com/avatar/imp_death.jpg

Just to show you the grizzly death that I was talking about. ...my first attempt at doom or video game sprites of any kind.


That is pretty awesome, "Boom Headshot"... But not the same situation as other FPS'...

Share this post


Link to post
Lantern Jaw said:

Ahh, yesssss! thanks Newt.


No problem. And of course you can change the first parameter around to increase/decrease the chances, 50% just seemed like a nice round number at the time.

Cool death frames, by the way. :)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×