Lightsaber animation help?

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
CmdSmith
Recruit Womprat Killer
Posts: 14
Joined: Thu Jun 11, 2015 6:18 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Lightsaber animation help?

Post by CmdSmith »

My newest idea for a mod is to make the stock JED.lvl be more progressive and less static, so Im basing the 6 units off of the basic classes and the prestige classes from KOTORII. Essentially, I want it to have the Darth Maul animations for one, the obiwan animations for anouther, Aayla for yet anouther, and so on. Do I in the weapon ODF, do I change

Code: Select all

GeometryName        = "rep_weap_inf_lightsabre"
ComboAnimationBank  = "human_sabre melee rep_hero_ep3obiwan"
to

Code: Select all

GeometryName    = "cis_weap_inf_doublesabre"
ComboAnimationBank  = "human_doublesabre sabre cis_hero_darthmaul
That?

I did that, and it crashes my game when I play with it. Is there something in the Unit's ODF I need to change? I'm not sure what else to do..

I tried just changing around the lightsaber weapon names in the unit ODF, and that crashed too.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Lightsaber animation help?

Post by jedimoose32 »

The code change you posted here is correct as far as I can tell. Make sure you have the correct Animation property in the unit's .odf file as well (in this case, "maul"), and make sure the appropriate animation files (in your case maul.anims, maul.zaabin, and maul.zafbin) in the side's "munged" folder.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Lightsaber animation help?

Post by MileHighGuy »

change the line to

ComboAnimationBank = "human_sabre melee cis_hero_darthmaul"

make sure you have the combo file

cis_hero_darthmaul.combo

and the

maul

animation files (from the munged folder) both in your side

and the line

AnimationName = "maul"

in your units odf
Last edited by MileHighGuy on Fri Jun 12, 2015 12:53 pm, edited 1 time in total.
CmdSmith
Recruit Womprat Killer
Posts: 14
Joined: Thu Jun 11, 2015 6:18 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Lightsaber animation help?

Post by CmdSmith »

jedimoose32 wrote:The code change you posted here is correct as far as I can tell. Make sure you have the correct Animation property in the unit's .odf file as well (in this case, "maul"), and make sure the appropriate animation files (in your case maul.anims, maul.zaabin, and maul.zafbin) in the side's "munged" folder.
If I don't have the animation in the ODF, such as AnimationName = "maul" , will it still work?

Okay, I fixed my problem. The crash wasn't a result of the sabers, but a lack of " HealthType = "person" ." THanks for your help guys! But still, in order for the animations to work, does it need an " AnimationName = "whatever" " in the unit ODF?
hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Lightsaber animation help?

Post by hunpeter12 »

Yes.
Post Reply