Disabling roll and sprint [Solved]
Moderator: Moderators
-
JimmyAngler
- High General

- Posts: 837
- Joined: Mon Nov 04, 2013 10:37 am
- Projects :: Battlefront Halation
- xbox live or psn: none
- Location: Area 51
Disabling roll and sprint [Solved]
Is there a way to disable roll and sprint?
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Disabling roll and sprint
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
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.
- Anakin
- 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
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

- Posts: 837
- Joined: Mon Nov 04, 2013 10:37 am
- Projects :: Battlefront Halation
- xbox live or psn: none
- Location: Area 51
Re: Disabling roll and sprint
That's what I need, disable the whole stamina bar..
Edit: I'm gussing it is all in this line of code:
With this code he can sprint forever until he uses his one roll... Can I fix that?
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-
razac920
- 2nd Lieutenant

- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
Re: Disabling roll and sprint
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

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Disabling roll and sprint
maybe make energyrestore a negative value?
-
JimmyAngler
- High General

- Posts: 837
- Joined: Mon Nov 04, 2013 10:37 am
- Projects :: Battlefront Halation
- xbox live or psn: none
- Location: Area 51
Re: Disabling roll and sprint
Yep you got It man, I just came to post that.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
So, if you want to disable something, just remove the line you want.
