Permalink
Browse files

Only swim in deep water

  • Loading branch information...
1 parent 30c1796 commit 1f87e55ec9277f370cd35a9242120d11713874d5 @hikari-no-yume committed May 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/gg2/Objects/InGameElements/Character.events/Begin Step.xml
@@ -81,7 +81,7 @@ if (burnDuration <= 0 || burnIntensity <= 0 || inwater)
afterburnSource = -1;
}
var jumpout;
-jumpout = (keyState & $80 and (!inwater and previnwater) and vspeed < 0);
+jumpout = (keyState & $80 and (!headunderwater and prevheadunderwater) and vspeed < 0);
// Handle input
if(!taunting and !omnomnomnom)
{
@@ -100,8 +100,8 @@ if(!taunting and !omnomnomnom)
}
image_speed=tauntspeed;
}
- // "swim" upwards if holding down
- if(keyState & $80 and inwater and vspeed > -jumpStrength*0.2) {
+ // "swim" upwards if holding down and submerged
+ if(keyState & $80 and headunderwater and vspeed > -jumpStrength*0.2) {
vspeed -= jumpStrength*0.2;
}
// (double)jump if pressed

0 comments on commit 1f87e55

Please sign in to comment.