testing onHit alias/cancel jump/crouch physics in editmode if both keys are pressed
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6553 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -402,12 +402,12 @@ void moveplayer(physent *pl, int moveres, bool local, int curtime)
|
||||
if(editfly) // just apply velocity
|
||||
{
|
||||
pl->o.add(d);
|
||||
if(pl->jumpnext)
|
||||
if(pl->jumpnext && !pl->trycrouch)
|
||||
{
|
||||
pl->jumpnext = true; // fly directly upwards while holding jump keybinds
|
||||
pl->vel.z = 0.5f;
|
||||
}
|
||||
else if (pl->trycrouch)
|
||||
else if (pl->trycrouch && !pl->jumpnext)
|
||||
{
|
||||
pl->vel.z = -0.5f; // fly directly down while holding crouch keybinds
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user