collapse

* Important


The forum and all threads have been locked, but are still available for browsing.  There is more information about this here.


The

Is still open for article contributions.

Author Topic: Request: Despair Emote Animation  (Read 2741 times)

Offline Red

  • Common
  • *
  • Posts: 16
    • View Profile
Request: Despair Emote Animation
« on: December 01, 2015, 09:44:33 pm »
I'm wondering if anyone here who specializes in animation might be willing to help me out.

I want to be able to use the emote animation "Despair" (where the character leans forward menacingly) for an AOE cooldown skill I'm working on called "Missile Salvo."

I've read that the emote animations do not have the key frames required to trigger events in the code, so they won't work with skills. I've also read that its possible to add the key frames, though that's something that's beyond me at this point.

So, if what I'm looking for is actually possible, and if anyone has the desire and expertise, I'd love to have your help with this. Thank you!

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2,751
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: Request: Despair Emote Animation
« Reply #1 on: December 02, 2015, 10:55:45 am »
Hi Red! I can't seem to find a "despair" emo-animation. Closest I saw with a menacing leaning forward was "EMO_Y-U-NO".

But in any case, giving an animation a "hit point" can be done by editing the animation's entry in the .ANIMATION file of the model.  Below is the entry for the EMO_Y-U-NO animation in the file HUM_M.ANIMATION.

Code: [Select]
[ANIMATION]
<STRING>FILE:emo_y-u-no.skeleton
<STRING>NAME:Emo_Y-U-No
<FLOAT>DURATION:2
[KEY]
<STRING>NAME:HIDEWEAPONS
<FLOAT>FRAME:5
[/KEY]
[KEY]
<STRING>NAME:SHOWWEAPONS
<FLOAT>FRAME:56
[/KEY]
[/ANIMATION]

You can see this entry has 2 KEYs, one to HIDEWEAPONS at frame 5 and one to SHOWWEAPONS at frame 6. Giving this animation a HIT point that can be used to fire off skills can be done by adding similar lines of code...

Code: [Select]
[KEY]
<STRING>NAME:HIT
<FLOAT>FRAME:"x"
[/KEY]

Where "x" is the frame in the animation where you want the HIT to occur.



Offline Red

  • Common
  • *
  • Posts: 16
    • View Profile
Re: Request: Despair Emote Animation
« Reply #2 on: December 02, 2015, 03:21:47 pm »
Thank you for explaining that - that makes much more sense to me now. And you are right - it was the Y-U-No animation I was talking about - been playing the animations today and realized my mistake.

Given this information, I probably will not need outside assistance afterall. (Sorry about that - I'm still very intimidated by anything dealing with animation.)

Question: Will changing the keys change it for all base character types?

Offline Wolven

  • Operator
  • Unique
  • *
  • Posts: 338
  • Country: no
    • status mod
    • View Profile
  • Mood: mood smiley
Re: Request: Despair Emote Animation
« Reply #3 on: December 02, 2015, 05:13:35 pm »
« Last Edit: December 02, 2015, 05:15:33 pm by Wolven »

Offline Red

  • Common
  • *
  • Posts: 16
    • View Profile
Re: Request: Despair Emote Animation
« Reply #4 on: December 02, 2015, 08:54:04 pm »
Thank you! I'll read up!

Offline Kva3imoda

  • Developer
  • Legendary
  • *
  • Posts: 1,079
  • Country: ru
    • status ready
    • View Profile
  • Mood: mood cool
Re: Request: Despair Emote Animation
« Reply #5 on: December 02, 2015, 09:53:26 pm »
Question: Will changing the keys change it for all base character types?
Yes.
If you want to use a standard human model(in the standard directory) for your class, you need to make a clone-animation.
http://torchmodders.com/forums/modding-questions/cloning-animations/msg2480/#msg2480
You can call it Special_Salvo.skeleton
I think it's the easiest way.

Offline Phanjam

  • Operator
  • Legendary
  • *
  • Posts: 2,751
  • Country: ph
    • status ready
    • View Profile
  • Mood: mood angel
Re: Request: Despair Emote Animation
« Reply #6 on: December 03, 2015, 01:13:50 am »
I'm still very intimidated by anything dealing with animation.
Even without getting into actual 3D modeling, there's some stuff you can do to get more animation varieties.

One of them is what we talked about earlier, inserting new KEYs. So you can take a non-skill/non-attack animation and give it HIT KEYs to use it in a skill.

You should probably clone that animation's .SKELETON file, rename it internally and use the renamed file for your purposes, so that the original animation's behavior is still available for its originally intended uses.

You can also try "chopping up" animations if you only want certain parts of them, by converting the .SKELETON to XML first and getting rid of the KEYFRAMES you don't want.  Or you can try changing the keyframe_times (also in .XML) so you can insert pauses, etc.

Just a warning, manual editing of these .XML files is VERY TEDIOUS, but it's doable ???
« Last Edit: December 03, 2015, 09:54:17 am by Phanjam »



Tags:
 

Our host and sponsor

* Quick Search


* Mod Boards Activity

* Popular Topics