News:

SMFNew Installed

+-+-

User+-

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

Site Stats+-

Members
Total Members: 728
Latest: Cho
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 10932
Total Topics: 795
Most Online Today: 103
Most Online Ever: 854
(September 18, 2024, 07:49:37 am)
Users Online
Members: 0
Guests: 143
Total: 143

Author Topic: Need help with unittype and child  (Read 1881 times)

0 Members and 24 Guests are viewing this topic.

Need help with unittype and child
« on: »
Hey everyone!

I'm curious to know: I have a weapon that I want to be wielded like a Pistol but have Sword attack animations. I've tried to manipulate a custom unittype with different child settings trying to get this to work. Has anyone attempted this and been successful? On the same exact note, I need this done with a seperate weapon type that is wielded like a wand but has sword MAINHAND animations, but maintaining wand offhand animations.

If anyone wants to pipe in and let me know if this is even possible [And possible to only assign this to weapons so that it doesn't change anything but their own unittypes] and possibly how I could get this done if it is possible.

Share on Bluesky Share on Facebook


Re: Need help with unittype and child
« Reply #1 on: »
Hey Haxley,

I've tried making new weapon types with new animations to no avail.  The associated animation links seem to be hardcoded or I simply haven't found the correct files to modify.

With a hex editor it might be possible to assign unique animation sets to new unit types.  Chthon would be a good person to ask about the viability of doing this.

Re: Need help with unittype and child
« Reply #2 on: »
Hiyya Haxley. Gyt's right, the association between a weapon of a certain unittype and the animation it will use is hardcoded in the game engine.

Having said that, you CAN clone a sword animation and rename it internally  so that the game sees it as a pistol animation (or vice versa depending on what you need). You might need to finetune the muzzleflash .layout to cover any timing differences between a regular pistol animation and your cloned animation.

I see your question about a sword mainhand animation AND wand offhand animation as more challenging, but I need to think about that a little more (im in the middle of something for my day job :P )


 

Recent Topics+-