How do I give rebel soldiers lightsabers?

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
naruto2693
Recruit Womprat Killer
Posts: 11
Joined: Fri Nov 20, 2009 5:57 pm

How do I give rebel soldiers lightsabers?

Post by naruto2693 »

I tried to give my rebel soldiers lightsabers by typing in
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "all_inf_default"


[Properties]
UnitType = "Trooper"

WEAPONSECTION = 1
WeaponName = "all_weap_inf_rifle"
WeaponAmmo = 6

WEAPONSECTION = 2
WeaponName = "all_weap_lightsaber_blue"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "all_weap_inf_thermaldetonator"
WeaponAmmo = 4
WeaponChannel = 1

WEAPONSECTION = 4
WeaponName = "all_weap_award_pistol"
WeaponAmmo = 6

WEAPONSECTION = 5
WeaponName = "all_weap_award_rifle"
WeaponAmmo = 6

VOUnitType = 1

I munged it and tried to use it in game but it keeps crashing :runaway: :oops:

I have all the assets needed for the alliance side too
User avatar
Culvar
1st Lieutenant
1st Lieutenant
Posts: 429
Joined: Thu Jul 10, 2008 10:36 am

Re: How do I give rebel soldiers lightsabers?

Post by Culvar »

I think it needs an Animation bank that has lightsaber anims.
naruto2693
Recruit Womprat Killer
Posts: 11
Joined: Fri Nov 20, 2009 5:57 pm

Re: How do I give rebel soldiers lightsabers?

Post by naruto2693 »

Culvar wrote:I think it needs an Animation bank that has lightsaber anims.
Oops, I guess I forgot to add that lol, I'm such a n00b

EDIT
It still crashes, I'm gonna read the documentation

Double posting is against the RULES, please EDIT your post instead -Staff
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia!!!

Re: How do I give rebel soldiers lightsabers?

Post by SW_elite »

Get rid of the award pistol line out of your odf. Then make sure you change your Award Rifle line (WEAPONSECTION = 5) to 4.

If that doesn't work, try a manual clean and re-munge.

EDIT: And you do need the animations, just thought i'd point that out.
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: How do I give rebel soldiers lightsabers?

Post by RogueKnight »

naruto2693 wrote: It still crashes, I'm gonna read the documentation
Always do this first, the docs are the best place to have most of your questions answered.
User avatar
SAMofBIA
Major General
Major General
Posts: 649
Joined: Tue Jun 15, 2010 3:38 pm
Projects :: Nothing....nothing at all.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: MIA and not stopping in often anymore.

Re: How do I give rebel soldiers lightsabers?

Post by SAMofBIA »

i thought you had to run off of jedi_inf_default not all_inf_default for it to work!
Post Reply