Turning off your saber

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
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Turning off your saber

Post by Maveritchell »

How does one turn off the lightsaber (as in the crouch animation) for a specific attack? I know it can be done, because archer01 did it for his Force Mindtrick. Where might I even start? The .combo file? I certainly can't find any reference in the .odf to point me in the right direction.
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 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: happy fun island

RE: Turning off your saber

Post by Syth »

hmmm...

just looked at sidious's combo and found a line
TurnOffLightsaber();
But its for a combo, maybe try TurnOffLightsaber = 1, I dont know. If archer did it who knows... maybe its some scripting thing.
Master Fionwë
Rebel Colonel
Rebel Colonel
Posts: 598
Joined: Wed May 30, 2007 3:33 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: At RCTC
Contact:

RE: Turning off your saber

Post by Master Fionwë »

That is what keeps me from using the jedimindtrick, the lightsaber doesn't turn off, so the guy doesn't turn invisible.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: RE: Turning off your saber

Post by Maveritchell »

Syth wrote:hmmm...

just looked at sidious's combo and found a line...
Yeah, the problem is that the TurnOffLightsaber call goes into a "state" in the combo. None of the functions for the secondaries - it looks like - are states. That being said, I did try adding that line in the .odfs (which was a long shot, but just covering the bases), in the combo where it calls the secondary fire (not SecondaryFire, which is reload, but the part at the beginning talking about FIRE2 and CHARGE), and I also tried adding a new state for charging a force power, with the TurnOffLightsaber call included. Each one had no effect, but neither did the game crash. I'm stumped.
Post Reply