How do I change a weapon fire animation to a custom one?
Moderator: Moderators
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
How do I change a weapon fire animation to a custom one?
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"?
Last edited by skelltor on Sat Sep 18, 2010 12:08 pm, edited 1 time in total.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: how do i cange a weapons fire anim to a new animation i
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.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: how do i cange a weapons fire anim to a new animation i
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.
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.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: how do i change a weapon fire anim to a new animation i
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?
3. what are underhand grenades? do you mean the ability to "charge" the throw?
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: how do i change a weapon fire anim to a new animation i
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"
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"
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: how do i change a weapon fire anim to a new animation i
did you make a new animset with "jet" instead of "pistol" or "rifle" in the animnames ?
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: how do i change a weapon fire anim to a new animation i
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.
-
kinetosimpetus
- Imperial Systems Expert

- Posts: 2381
- Joined: Wed Mar 25, 2009 4:15 pm
- Projects :: A secret project
Re: how do i change a weapon fire anim to a new animation i
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.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: how do i change a weapon fire anim to a new animation i
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 =" lineAQT 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.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: How do I change a weapon fire animation to a custom one?
So instead of this AnimationBank = "jet" have this in my odf CustomAnimationBank ="jet"?
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: How do I change a weapon fire animation to a custom one?
yeah, in your weapons odf
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: How do I change a weapon fire animation to a custom one?
ok its munging now.
