Disabling roll and sprint [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
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Disabling roll and sprint [Solved]

Post by JimmyAngler »

Is there a way to disable roll and sprint?
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Disabling roll and sprint

Post by MileHighGuy »

there should be some clues in the acklay odf for starters. also try giving them 0 stanima.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Disabling roll and sprint

Post by THEWULFMAN »

I think the way I always did it was make the roll/sprint/jump requirements higher than there was stamina to use. But that was years ago, I can't remember if it works fine or not.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Disabling roll and sprint

Post by Anakin »

That works. I made it for my sbd. But the dirst time he can roll anyway. Also you can disable the whole energy if you don't need it
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Disabling roll and sprint

Post by JimmyAngler »

That's what I need, disable the whole stamina bar..

Edit: I'm gussing it is all in this line of code:

Code: Select all

// Energy bar defaults
EnergyBar               = 0.0     // Max energy
EnergyRestore           = 0.0      // energy regained per second if moving
EnergyRestoreIdle       = 0.0      // energy regained per second if not
EnergyDrainSprint       = 0.0      // energy spent per second of sprinting
EnergyMinSprint         = 0.0      // min energy to start sprinting
EnergyCostJump          = 0.0      // energy cost to jump
EnergyCostRoll          = 100.0      // energy cost to roll
With this code he can sprint forever until he uses his one roll... Can I fix that?
razac920
2nd Lieutenant
2nd Lieutenant
Posts: 365
Joined: Sun Jan 16, 2011 12:42 am

Re: Disabling roll and sprint

Post by razac920 »

I found that extra lines can screw up disabling the energy bar. Just use this:

Code: Select all

EnergyBar               = 0.0     // Max energy
EnergyRestore           = 0.0      // energy regained per second if moving
EnergyRestoreIdle       = 0.0      // energy regained per second if not
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

Re: Disabling roll and sprint

Post by MileHighGuy »

maybe make energyrestore a negative value?
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Disabling roll and sprint

Post by JimmyAngler »

razac920 wrote:I found that extra lines can screw up disabling the energy bar. Just use this:

Code: Select all

 Select allEnergyBar               = 0.0     // Max energy
EnergyRestore           = 0.0      // energy regained per second if moving
EnergyRestoreIdle       = 0.0      // energy regained per second if not
Yep you got It man, I just came to post that. :P

So, if you want to disable something, just remove the line you want.
Post Reply