Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 6/7/17 16:16

s10k
Member
From: Portugal
Registered: 14/1/07
Website

forcing fighting pose

Hey guys,

Do you have any idea how to force a character to play the fighting pose? I don't want to make it attack another character, I just want the fighting pose animation.

Offline

#2 6/7/17 19:14

Delano762
Member
From: Poland
Registered: 29/12/10
Website

Re: forcing fighting pose

There are console commands to play specified animations. (I think)

http://ssg.oni2.net/commands.htm#player

Try using chr_animate, and if that fails, maybe sc_bind_f2.


Circus Afro, Circus Afro, Polka Dot, Polka Dot!

Offline

#3 7/7/17 8:34

s10k
Member
From: Portugal
Registered: 14/1/07
Website

Re: forcing fighting pose

Hi Delano762 thanks for trying to help.

I've tried to find the animation name to make them posing but I couldn't. Ideally it would be a generic way to do it, so the fight pose would be the correct one for the type of character playing it.

sc_bind_f2 as I understand correctly is related with key bindings so it is not a option for me because I want the character to "animate itself" using scripting not with the help of key presses.

Offline

#4 8/7/17 5:06

paradox-01
Member
From: Germany
Registered: 14/1/07

Re: forcing fighting pose

Bite that sour apple. Clone the COMbat idle animations and rename them with any naming convention you like to ease scripting, e.g. ###arena_pose. And remove the combat mode condition (variant) in TRAM header.

Offline

#5 8/7/17 13:40

s10k
Member
From: Portugal
Registered: 14/1/07
Website

Re: forcing fighting pose

Actually Delano762 idea works pretty well.

You just need to specify the number of frames that you want the animation to play. Example:
"chr_animate 0 TANCOMidle1 5000"

the frames number is the key because if you do just "chr_animate 0 TANCOMidle1" the animation doesn't play at all.

However your idea paradox-01 gave me a great idea, I think I can create a custom TRAC where normal idle animations are replaced by the combat ones, that would be perfect for my case because I wouldn't need to call chr_animate each time. I'm gonna try that.

Offline

#6 8/7/17 16:35

paradox-01
Member
From: Germany
Registered: 14/1/07

Re: forcing fighting pose

Heh kundos in figuring out a forced way.

Offline

#7 9/7/17 6:24

s10k
Member
From: Portugal
Registered: 14/1/07
Website

Re: forcing fighting pose

Yeah worked like a charm. It was a bit of work putting all together since I needed to mess with ONCC, ONCV, ONLV, TRAC and TRAM files for some characters but final result is perfect, exactly what I wanted.

Thank you very much guys!

Offline

Board footer

Powered by FluxBB