Page 1 of 1

How do I change a weapon fire animation to a custom one?

Posted: Sat Sep 18, 2010 11:11 am
by skelltor
Ok so i want to change the fire animation for jangos jetpack rockets to the land heavy one. How do i edit his jetpack rockets odf? I thought about changing shoot_seconday_2 or whatever its called but i dont want to change all of his secondary weapon animations to that. Would it work to make a shoot_seconday_3 and change the rockets odf to FireAnim = "3"?

Re: how do i cange a weapons fire anim to a new animation i

Posted: Sat Sep 18, 2010 11:53 am
by DarthD.U.C.K.
im not shure whether you can have seperate offhand anims, but i would try to give the rocket a new animationbank and munge a new animset with that bank, however i dont know if animationbanks work for secondary weapons because no shipped offhandweapon has one referenced.

Re: how do i cange a weapons fire anim to a new animation i

Posted: Sat Sep 18, 2010 12:04 pm
by skelltor
Ok so make a new anim bank ie: jetrocket than in the weapon odf change animbank to jetrocket and copy over pistols animbank and rename all the pistol starts to jetrocket and rename land heavy to pistol secondary_2 or whatever its called?

edit i was looking around and i saw a vidieo that kintosimpetus made that had what i want happen but i don't know if he had any grenades or stuff.

edit2 another animation question how do i get underhand grenade animations in the odfs i looked at the bfx grenade odfs but did not notice any animation lines changed.

Re: how do i change a weapon fire anim to a new animation i

Posted: Sat Sep 18, 2010 12:15 pm
by DarthD.U.C.K.
1. yeah, but you also should rename a copy of the landhard to stand_shoot in case the animbankline makes the secondaryweapon use the anim for the primary one.

3. what are underhand grenades? do you mean the ability to "charge" the throw?

Re: how do i change a weapon fire anim to a new animation i

Posted: Sat Sep 18, 2010 3:22 pm
by skelltor
Ok and by underhand grenades i mean the throw animation bfx uses the mine place/recon droid throw animation the stock grenades use the overhand throw i want to know how do i change it from one to another.

edit i get a CTD when i fire his jet missile with this error in my log
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\Weapon.cpp(2113)
Weapon "imp_weap_inf_Jet_Rocket" uses undefined weapon animbank "jet"

Re: how do i change a weapon fire anim to a new animation i

Posted: Sat Sep 18, 2010 3:44 pm
by DarthD.U.C.K.
did you make a new animset with "jet" instead of "pistol" or "rifle" in the animnames ?

Re: how do i change a weapon fire anim to a new animation i

Posted: Sat Sep 18, 2010 4:14 pm
by skelltor
Yes

Re: how do i change a weapon fire anim to a new animation i

Posted: Sat Sep 18, 2010 7:56 pm
by AQT
I'm pretty sure the rifle, pistol, bazooka, and tool animation banks are hard coded. It's kind of like how you can't add in a new animation state, for example prone, and expect it to work.

Re: how do i change a weapon fire anim to a new animation i

Posted: Sat Sep 18, 2010 9:51 pm
by kinetosimpetus
Yeah, the way I did it replaces the grenade anim. Look at a grenade odf versus a mine odf, there's some difference that determines whether is uses shoot_secondary or shoot_secondary2 anims. I don't remember the lines of code off the top of my head.

Re: how do i change a weapon fire anim to a new animation i

Posted: Sun Sep 19, 2010 5:31 am
by DarthD.U.C.K.
AQT wrote:I'm pretty sure the rifle, pistol, bazooka, and tool animation banks are hard coded. It's kind of like how you can't add in a new animation state, for example prone, and expect it to work.
i posted that suggestion because i was shure there was a thread discussing it long time ago, i think maderek made it (could have been a halucination though). anyway, ive checked psch0fred's animationsystem.txt and it says you can have custom animationbanks and you load them using the "CustomAnimationBank =" line

Re: How do I change a weapon fire animation to a custom one?

Posted: Sun Sep 19, 2010 2:44 pm
by skelltor
So instead of this AnimationBank = "jet" have this in my odf CustomAnimationBank ="jet"?

Re: How do I change a weapon fire animation to a custom one?

Posted: Sun Sep 19, 2010 3:07 pm
by DarthD.U.C.K.
yeah, in your weapons odf

Re: How do I change a weapon fire animation to a custom one?

Posted: Sun Sep 19, 2010 3:48 pm
by skelltor
ok its munging now.