• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Always Run Mode

Capitan Blood

Landlubber
Ok! I have one question:
i create new button on Option Screen, This is flag button - Always Run and Walk, then select Always Run - bRunMode in option_screen.c - true, else - bRunMode false,
in character.c function void SetDefaultNormWalk(ref character) must use bRunMode - for walk or run....

how do this?

sorry for my BAD englesh..<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void SetDefaultNormWalk(ref character)
{
// boal -->
   if ( character.id == "Blaze" && bRunMode) // NK
   {
       character.actions.walk = "run";
      character.actions.backwalk = "back walk";
      character.actions.run = "walk";
      character.actions.backrun = "back run";
       character.actions.stsUp = "run stairs up";
       character.actions.stsUpRun = "stairs up";
       character.actions.stsDown = "run stairs down";
       character.actions.stsDownRun = "stairs down";
   }
   else
   {
// boal <--  
   character.actions.walk = "walk";
  character.actions.backwalk = "back walk";
  character.actions.run = "run";
  character.actions.backrun = "back run";
   character.actions.stsUp = "stairs up";
   character.actions.stsUpRun = "run stairs up";
   character.actions.stsDown = "stairs down";
   character.actions.stsDownRun = "run stairs down";
   } // boal
 
 
  character.actions.stsUpBack = "back stairs up";
  character.actions.stsDownBack = "back stairs down";
 
 
  character.actions.stsUpRunBack = "back run stairs up";
  character.actions.stsDownRunBack = "back run stairs down";
  character.actions.turnLeft = "turn left";
  character.actions.turnRight = "turn right";
  character.actions.swim = "swim";
}

void SetDefaultFight(ref character)
{
    //Äåéñòâèÿ â ðåæèìå áîÿ
// Viper Edit Begin
    if ( character.id == "Blaze" && bRunMode) // NK
    {
 character.actions.fightwalk = "fight run";
 character.actions.fightbackwalk = "fight back run";
 character.actions.fightrun = "fight Walk";
 character.actions.fightbackrun = "fight back walk";
    }
    else
    {
 character.actions.fightwalk = "fight walk";
 character.actions.fightbackwalk = "fight back walk";
 character.actions.fightrun = "fight run";
 character.actions.fightbackrun = "fight back run";
    } // Viper Edit End

    character.actions.attack.a1 = "attack_1";
    character.actions.attack.a2 = "attack_2";
    character.actions.attack.a3 = "attack_3";
    character.actions.attack.a4 = "attack_4";
    character.actions.attack.a5 = "attack_5";
    character.actions.attack.a6 = "attack_6";
    character.actions.attack.a7 = "attack_7";
    character.actions.attack.a8 = "attack_8";

    character.actions.attacktl.a1 = "attack_left_1";

    character.actions.attacktr.a1 = "attack_right_1";

    character.actions.hit.h1 = "hit_1";
    character.actions.hit.h2 = "hit_2";
    character.actions.hit.h3 = "hit_3";

    character.actions.block = "block";
    character.actions.blockhit = "block_hit";
    character.actions.recoil = "Recoil";
    character.actions.shot = "Shot";

    SetDefaultFightDead(character);

    //Idle àíèìàöèÿ â ðåæèìå áîÿ
    character.actions.fightidle.i1 = "fight stand_1";
    character.actions.fightidle.i2 = "fight stand_2";
    character.actions.fightidle.i3 = "fight stand_3";
    character.actions.fightidle.i4 = "fight stand_4";

}<!--c2--></div><!--ec2-->

Be sure you also do this whenever the button is activated:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->BeginChangeCharacterActions(GetMainCharacter()); // NK 04-09-17 have it change now.
     SetDefaultNormWalk(GetMainCharacter());
     SetDefaultFight(GetMainCharacter());
     EndChangeCharacterActions(GetMainCharacter()); // NK ditto<!--c2--></div><!--ec2-->
That will make sure the change is applied immediately, not on next location load.
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> Captain Blood, and welcome aboard! Have an ale! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/beer2.gif" style="vertical-align:middle" emoid=":beer" border="0" alt="beer2.gif" />

<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/w00t.gif" style="vertical-align:middle" emoid=":woot" border="0" alt="w00t.gif" /> Another modder in our midst? <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
What Cat said. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
Captain Blood: Happy to help, and you're well on your way into the insan--err, the sublime pleasures, of modding. <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Back
Top