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

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

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

Post 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"?
Last edited by skelltor on Sat Sep 18, 2010 12:08 pm, edited 1 time in total.
User avatar
DarthD.U.C.K.
Master of the Force
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

Post 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.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

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

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
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

Post 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?
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

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

Post 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"
User avatar
DarthD.U.C.K.
Master of the Force
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

Post by DarthD.U.C.K. »

did you make a new animset with "jet" instead of "pistol" or "rifle" in the animnames ?
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

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

Post by skelltor »

Yes
AQT
Gametoast Staff
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

Post 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.
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

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

Post 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.
User avatar
DarthD.U.C.K.
Master of the Force
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

Post 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
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

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

Post by skelltor »

So instead of this AnimationBank = "jet" have this in my odf CustomAnimationBank ="jet"?
User avatar
DarthD.U.C.K.
Master of the Force
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?

Post by DarthD.U.C.K. »

yeah, in your weapons odf
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

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

Post by skelltor »

ok its munging now.
Post Reply