Giving a unit a lightsaber [Solved]

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
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Giving a unit a lightsaber [Solved]

Post by ARCTroopaNate »

I tried to give my Imperial Riot Trooper Darth Maul's lightsaber and I put the lightsaber in my side folder, referenced it in my units odfs and put the combos in the munged folders. My game will fully load then crash in a second before you can select a team. I know this weapon is the reason why my game crashed because it was one of 2 changes I made and the other was tested and works. The weird thing is that I'm not getting in Severity 3 errors. I checked my entire error log and found none. I'm not sure what I'm missing because this is the first time I tried to give a unit a melee weapon. Any help would be greatly, greatly appreciated.

My units odf
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"

[Properties]
UnitType = "assault"

MaxHealth = 550.0

MaxSpeed = 6.0 // base forward speed
MaxStrafeSpeed = 4.5 // base right/left speed

WEAPONSECTION = 1
WeaponName = "cis_weap_doublesaber"
WeaponAmmo = 0

VOUnitType = 121
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Giving a unit a lightsaber

Post by CressAlbane »

Correct me if I'm wrong, but unless you've edited rep_inf_default, this trooper has no geometry! It'll need to use DarthMaul's animation set, as well. Look in Darth Maul's odf for the name of the animation.
EDIT:
combos in the munged folder
The combos go in the odf folder, but the animations (zaabin/zafbin) go in the munged folder.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Giving a unit a lightsaber

Post by ARCTroopaNate »

It Worked!!!!!!!!!! Thank you. :D
Post Reply