Drawing Animation -1 reply

Please wait...

Wundai

The forums staffers think I'm Cool

50 XP

30th August 2006

0 Uploads

196 Posts

0 Threads

#1 9 years ago

Hey all, A question about the drawing animation (and I actually mean the animation from: 'empty hand' - to 'saber-in-hand' in Single Player) Now I know alot of the singleplayer stuff is still locked because we don't have a sourcecode, but not all. My question therefore is: the TIME it takes for the saber to magically appear in the righthand of the playermodel, can this time be changed? For example make the saber appear like 2 seconds earlier or later? Here's a little video I made explaining why: (don't know how to use the youtube tags, it doesn't seem to work?) YouTube - SamuraiDraw But in the video you can see the katana appearing just a bit too fast, so that it doesn't seem to be coming from the scabbard. This I would like to alter. Is it possible? Regards, Wundai




Inyri Forge VIP Member

[Insert User Title Here]

55 XP

15th March 2005

0 Uploads

25,940 Posts

0 Threads

#2 9 years ago

It should simply be a matter of changing the framespeed in the config file. Open up animation.cfg and play around with the speed until you get something you like.




Wundai

The forums staffers think I'm Cool

50 XP

30th August 2006

0 Uploads

196 Posts

0 Threads

#3 9 years ago

Well, trying your suggestion. I did fiddle a bit with the Stand1to2 Animation, which indeed worked in terms of the sword appearing at the right time, but that made the rest of the animation so fast, it looked like the guy was lightning fast in drawing his sword :) It may be stupid of me to come with this now, but I suddenly thought, what if I started the Stand1to2 Animation in Dragon with the pose of the samurai ALREADY in the position to draw his sword, instead of standing in a neutral pose where he would just stand with his arms beside him doing nothing, that way the 'appearing thing' could also be solved right? ;)




N-7

... and a nice big Cip-Quad

50 XP

20th September 2007

0 Uploads

579 Posts

0 Threads

#4 9 years ago

Why not make two animations? One to get into position to draw (hand onto the katana), and the second being the actual draw animation like you said. You would have to assign the first animation to some sequence that can be triggered at will (like the leaning/dodging animations). Then you'd have to trigger it just before issuing "weapon 1". I hope I'm making any sense at all.

BTW: Nice map and samurai model(?)/skin there in the vid. On a side note, I'd recommend using "cg_draw2d 0" to disable the lightsaber symbol.




Wundai

The forums staffers think I'm Cool

50 XP

30th August 2006

0 Uploads

196 Posts

0 Threads

#5 9 years ago

Map: Dojo_Takeda Model: Jimesu(The Samurai God) Evil :) Yes you are making sense nizwiz, but with triggering I assume you mean starting to 'script'? Or did you mean binding two functions to one button? In the last case I could just alter a dodging animation to get the hand on the katana. And then bind for example: bind '1' dodge(not sure what its callsign is?); weapon 1?




N-7

... and a nice big Cip-Quad

50 XP

20th September 2007

0 Uploads

579 Posts

0 Threads

#6 9 years ago

No, I meant it like this: say you map the "readying" part of the animation (in lack of a better phrase) to BOTH_DODGE_HOLD_L; then in game, having no weapon in hand, press the keys bound to USE & LEFT, wait until the animation's finished and your hand is on the katana, then (while still holding USE & LEFT) press the key bound to "weapon 1" and shortly after that release the USE & LEFT keys. I know that's seems like quite a hassle, but I guess it'll work out nicely; and the readying part is optional anyway, so you can skip it if you're pressed to attack / defend, but whenever you're facing an opponent slowly (with taunts and all that), you have enough time to draw the saber in a cinematic fashion as described. Also, you can hold the katana w/o actually drawing it for as long as you want (by just holding USE + LEFT w/o issuing "weapon 1") - I think Japanese swordsmen tend to do this, don't they?

EDIT: Note that your readying animation doesn't have to contain many frames. Actually it suffices to use just one frame (i.e. the first frame of your draw animation), but more frames will do as well. Depends on how detailed you want the readying part to be.




Wundai

The forums staffers think I'm Cool

50 XP

30th August 2006

0 Uploads

196 Posts

0 Threads

#7 9 years ago

Ah I'm getting it now :) Thanks I'll try that! And yes alot of Japanese swordsmen(mostly in movies though) only drawed their weapon at the last moment when there was no other choice :)




katanamaru

Fencer, Lifter, & Dancer

50 XP

3rd February 2006

0 Uploads

1,454 Posts

0 Threads

#8 9 years ago

One option for you would be to replace the unlit saber stance with the ready position you want. That way your samurai is always holding the sword ready for an iai draw. Then just make the saber ignition the new drawanimation and you're good to go.