Small Lightsaber Question

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
Alpha-17
Master Sergeant
Master Sergeant
Posts: 165
Joined: Mon Jan 22, 2007 2:26 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Small Lightsaber Question

Post by Alpha-17 »

Does anybody know how to make a lightsaber turn on/off like Dart Sidious' lightsaber ? I didn't find it in the .odf's

THX for help, Alpha-17
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Post by EGG_GUTS »

Here's a link to the same topic, the answer should be in there somewhere.

http://www.gametoast.com/index.php?name ... ic&t=10519
Alpha-17
Master Sergeant
Master Sergeant
Posts: 165
Joined: Mon Jan 22, 2007 2:26 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Alpha-17 »

Yeah nice topic ...
But there is no answer.
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Post by EGG_GUTS »

Well maybe you should ask maveritchell, he got it working.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

That's controlled in the .combo file. If I remember right there's a verb something like TurnOffLightsaber.... something like that.
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Post by Caleb1117 »

Yes, but it has problems with saber throw, atleast thats what Maveritchell said.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Post by Maveritchell »

If you put the command "TurnOffLightsaber()" into the "IDLE" state in a combo, you can get the lightsaber turned off like Palpy's. Presumably you could stick it in any other state and get it to do the same, although it would be silly.

My problem was that the secondary attacks aren't "states," they're just lines in the .combo file. You can't get the lightsaber to just be off during a secondary attack. Also, if your saber is off most of the time (like Palpy's), then if you have the lightsaber throw attack, when you throw your saber you'll only throw the hilt. The problem is the same - you can't toggle TurnOffLightsaber() during a secondary attack.

If you're only looking to make a lightsaber like Palpatine's, though, all you need to do is find where it says this in the .combo file:
State("IDLE")
{
Duration(0.0); // infinite duration
EnergyRestoreRate(); // (0.0, "FromSoldier")
InputLock(0.15, "Sprint", "Jump", "Crouch");
And make it look like this:
State("IDLE")
{
Duration(0.0); // infinite duration
EnergyRestoreRate(); // (0.0, "FromSoldier")
InputLock(0.15, "Sprint", "Jump", "Crouch");
TurnOffLightsaber();
Alpha-17
Master Sergeant
Master Sergeant
Posts: 165
Joined: Mon Jan 22, 2007 2:26 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Alpha-17 »

Ok I tried it and it works ... Thanks to all !!! :D
Post Reply