PDA

View Full Version : Animation Help!



DaGhost
06-26-2002, 06:00 AM
Hello everyone,

I am trying tp figure out how Jedi Knight handles which Submode get's played and is there a way to modify that process?

I'd like to change around the death animation, so that when you are hit in the head with the lightsaber, the damage is greatly multiplied and returned, as well as a decapitation EXTERNEL animation will be played if "player" is dead...

I have most of this figured out, all that's left for me is the death animation. You understand that I don't want to replace any submode's in the ky.pup puppet file unless absoluty necessary!

Any help you can offer would be great!

------------------
"Hear that? That is the sound of a thousand terrible things comming this way." Obi-Wan Kenobi

-DaGhost

SaberMaster
06-26-2002, 09:33 AM
Some of the submode keys are played with PlayMode() and FireProjectile(), but most are handled by the exe.

To do what you want, you'd have to stop the death animation that the exe will play and then play your own. This would not look good in MP, but in SP it would work well enough.

This code will work:


Sleep(0.001);
for(i=0; i < 4; i=i+1) StopKey(player, i, 0);
animID=PlayKey(player, LoadKeyframe("yourKey.key"), 5, 0x14);


The sleep is to make JK come back to this message after it has played the death key from the .pup file. The for loop is to stop all the keys that are playing. And PlayKey() will play your death key.

Hope that helps. http://forums.massassi.net/html/wink.gif

BTW, that quote is from Qui-Gon, not Obi-Wan. http://forums.massassi.net/html/tongue.gif

------------------
Author of the JK DataMaster (http://www.geocities.com/sabersdomain/fileframe.html), Parsec (http://www.geocities.com/sabersdomain/fileframe.html), and the EditPlus Cog Files (http://www.geocities.com/sabersdomain/fileframe.html).
Visit Saber's Domain (http://www.geocities.com/sabersdomain).

[This message has been edited by SaberMaster (edited June 26, 2002).]

DaGhost
06-26-2002, 04:46 PM
Thanks SaberMaster,

I'm just starting out in Jk editing, so I appreciate your help alot! (I was thinking of what Obi-Wan say's to Jar Jar after Qui-Gon said that, so that's probably why I put Obi-Wan's name. http://forums.massassi.net/html/biggrin.gif)

Well, when I thought of ways to do this thing about the decapitation animation, I remembered SS3 Beta 9 by ShadowX, when you fall or get hit with an explosif projectile, you turn into a pile-o-Gibs... Was this just the result of removing the dead player model, and creating bouncing gibs and gore sprites?

Well enought of that... http://forums.massassi.net/html/biggrin.gif If anyone else know's a different way to do the above, please tell me! (Not that your's isn't good SaberMaster http://forums.massassi.net/html/biggrin.gif It Just does'nt work in MP, and that's really the point!! http://forums.massassi.net/html/wink.gif )


------------------
"Hear that? That is the sound of a thousand terrible things comming this way." Qui-Gon Ginn

-DaGhost

[This message has been edited by DaGhost (edited June 27, 2002).]

CaveDemon
06-27-2002, 12:18 PM
<font face="Verdana, Arial" size="2">Originally posted by DaGhost:
Thanks SaberMaster,

I'm just starting out in Jk editing, so I appreciate your help alot! (I was thinking of what Obi-Wan say's to Jar Jar after Qui-Gon said that, so that's probably why I put Obi-Wan's name. http://forums.massassi.net/html/biggrin.gif)

Well, when I thought of ways to do this thing about the decapitation animation, I remembered SS3 Beta 9 by ShadowX, when you fall or get hit with an explosif projectile, you turn into a pile-o-Gibs... Was this just the result of removing the dead player model, and creating bouncing gibs and gore sprites?

Well enought of that... http://forums.massassi.net/html/biggrin.gif If anyone else know's a different way to do the above, please tell me! (Not that your's isn't good SaberMaster http://forums.massassi.net/html/biggrin.gif It Just does'nt work in MP, and that's really the point!! http://forums.massassi.net/html/wink.gif )

</font>

1: SavageX

2: It actually makes the player model invisible and then creates those nasty thingies and makes them fly around, then when player respawns it makes player model visible again

3: I like cheese.

------------------
Uh-uh. I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kind of lost track myself. But being this is a .44 Magnum, the most powerful handgun in the world, and would blow your head clean off, you've got to ask yourself one question: Do I feel lucky? Well do ya, punk?

gbk
06-27-2002, 01:26 PM
I like cheese too.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources (http://www.tbns.net/GBK/ol/index.htm).

Descent_pilot
06-27-2002, 04:33 PM
So do I. What's your favorate? Mine's swiss cheese. http://forums.massassi.net/html/biggrin.gif

------------------
The Sniper Missions. Current project, The Sniper Missions

gbk
06-27-2002, 04:35 PM
Swiss, problably, or Cheddar . . . I really like Cheddar....

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources (http://www.tbns.net/GBK/ol/index.htm).

Descent_pilot
06-27-2002, 05:41 PM
Like fondue?

------------------
The Sniper Missions. Current project, The Sniper Missions

gbk
06-27-2002, 05:45 PM
Nah, not really...

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources (http://www.tbns.net/GBK/ol/index.htm).

Descent_pilot
06-27-2002, 07:05 PM
Could you rename this topic 'Animation Help and Cheese talk' ?

------------------
The Sniper Missions. Current project, The Sniper Missions

gbk
06-27-2002, 07:43 PM
Im just a mod, I cant rename topics. http://forums.massassi.net/html/frown.gif

I could close it, or delete it, or change everybodys posts, but no renaming. http://forums.massassi.net/html/frown.gif

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources (http://www.tbns.net/GBK/ol/index.htm).

Descent_pilot
06-27-2002, 07:48 PM
I'm going to go start a cheese topic in the General Forums, pay a visit sometime. http://forums.massassi.net/html/wink.gif

------------------
The Sniper Missions. Current project, The Sniper Missions