Page 1 of 1

Disabling roll and sprint [Solved]

Posted: Fri May 30, 2014 9:48 pm
by JimmyAngler
Is there a way to disable roll and sprint?

Re: Disabling roll and sprint

Posted: Fri May 30, 2014 10:20 pm
by MileHighGuy
there should be some clues in the acklay odf for starters. also try giving them 0 stanima.

Re: Disabling roll and sprint

Posted: Sat May 31, 2014 3:09 am
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.

Re: Disabling roll and sprint

Posted: Sat May 31, 2014 4:05 am
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

Re: Disabling roll and sprint

Posted: Sat May 31, 2014 9:54 am
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?

Re: Disabling roll and sprint

Posted: Sat May 31, 2014 10:03 am
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

Re: Disabling roll and sprint

Posted: Sat May 31, 2014 10:04 am
by MileHighGuy
maybe make energyrestore a negative value?

Re: Disabling roll and sprint

Posted: Sat May 31, 2014 10:38 am
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.