This is not a big thing, but it opens up new swordfighting tactics and townareas that were so far inaccessible. It is only a variation of Nathan Kell's Sidestep mod. First increase the lenght of the sidestep, so that it becomes a leap, in bildsettings.h:
#define SIDESTEP_DIST 1.0
Then go to Nathan's "bool Sidestep" function in characterscharacters.c . By outcommenting this line
jump ay += PI/2; // rotate angle to perpendicular
you can turn the movement by 90 degrees so that it teleports you forward/back instead of sideways. And to make the teleport appear more like a charactermovement you can add sound and animation:
LAi_tmpl_ani_PlayAnimation(pchar, "afraid", 0.2)
PlaySound("peoplejump.wav");
Here the whole changed function (changes in <b>bold</b>):
// NK sidestep `04-09`-17 -->
bool Sidestep(ref pchar, float mag)
{
if(FindLoadedLocation() == -1) return false; //if not in loc mode, return
float x,y,z, ay;
GetCharacterPos(pchar, &x, &y, &z); // get pos
GetCharacterAy(pchar, &ay); // get angle
//Logit("Pos Before: (" + x + ", " + y + ", " + z + "), " + ay);
<b>// ccc jump </b>ay += PI/2; // rotate angle to perpendicular
<b>LAi_tmpl_ani_PlayAnimation(pchar, "jump", 0.2) // ccc jump
PlaySound("peoplejump.wav"); // ccc jump</b>
/*while(ay > PIm2) ay -= PIm2;
.....
.....
As i said, it works a bit crude. What works fine is that you can now jump down from stairs, balconies, porches etc. to escape pursuing enemies. You can also jump "over" those fences and hedges that seal of parts of the towns. But once you have jumped outside of the normal area of movement (defined by the model's "patch") you can move only by jumping, not by normal walking (Nathaniel the rabbit in the governor's garden <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/william.gif" style="vertical-align:middle" emoid=":will" border="0" alt="william.gif" /> )
And the oddest thing is that you can jump through walls so that you may find yourself at the backside of the models. Though that opens up quite interesting views as well <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid="
" border="0" alt="icon_mrgreen1.gif" />
EDIT: changed animation name to "jump"
#define SIDESTEP_DIST 1.0
Then go to Nathan's "bool Sidestep" function in characterscharacters.c . By outcommenting this line
jump ay += PI/2; // rotate angle to perpendicular
you can turn the movement by 90 degrees so that it teleports you forward/back instead of sideways. And to make the teleport appear more like a charactermovement you can add sound and animation:
LAi_tmpl_ani_PlayAnimation(pchar, "afraid", 0.2)
PlaySound("peoplejump.wav");
Here the whole changed function (changes in <b>bold</b>):
// NK sidestep `04-09`-17 -->
bool Sidestep(ref pchar, float mag)
{
if(FindLoadedLocation() == -1) return false; //if not in loc mode, return
float x,y,z, ay;
GetCharacterPos(pchar, &x, &y, &z); // get pos
GetCharacterAy(pchar, &ay); // get angle
//Logit("Pos Before: (" + x + ", " + y + ", " + z + "), " + ay);
<b>// ccc jump </b>ay += PI/2; // rotate angle to perpendicular
<b>LAi_tmpl_ani_PlayAnimation(pchar, "jump", 0.2) // ccc jump
PlaySound("peoplejump.wav"); // ccc jump</b>
/*while(ay > PIm2) ay -= PIm2;
.....
.....
As i said, it works a bit crude. What works fine is that you can now jump down from stairs, balconies, porches etc. to escape pursuing enemies. You can also jump "over" those fences and hedges that seal of parts of the towns. But once you have jumped outside of the normal area of movement (defined by the model's "patch") you can move only by jumping, not by normal walking (Nathaniel the rabbit in the governor's garden <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/william.gif" style="vertical-align:middle" emoid=":will" border="0" alt="william.gif" /> )
And the oddest thing is that you can jump through walls so that you may find yourself at the backside of the models. Though that opens up quite interesting views as well <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/icon_mrgreen1.gif" style="vertical-align:middle" emoid="

EDIT: changed animation name to "jump"