Reverted step height.

Made double tap dodge toggleable (and its sensibility configurable).
Fixed some long standing bugs with dual enforcers.
This commit is contained in:
Marisa the Magician 2018-12-31 12:02:23 +01:00
commit 793fc320f4
5 changed files with 30 additions and 19 deletions

View file

@ -43,8 +43,6 @@ Class UTPlayer : DoomPlayer
Player.DamageScreenColor "FF 00 00";
Player.ViewHeight 46;
Player.GruntSpeed 20;
MaxDropoffHeight 18;
MaxStepHeight 18;
+NOMENU;
UTPlayer.DollType DOLL_Male;
}
@ -286,7 +284,7 @@ Class UTPlayer : DoomPlayer
if ( fm )
{
int clk = abs(gametic-last_fm_tap);
if ( (clk < 8) && (last_fm*fm == 0) && (last_tap_fm*fm>0) )
if ( (clk < flak_taptics) && (last_fm*fm == 0) && (last_tap_fm*fm>0) )
dodge += RotateVector((fm,0),angle).unit();
if ( !last_fm && (last_jump_held < gametic-1) )
{
@ -298,7 +296,7 @@ Class UTPlayer : DoomPlayer
if ( sm )
{
int clk = abs(gametic-last_sm_tap);
if ( (clk < 8) && (last_sm*sm == 0) && (last_tap_sm*sm>0) )
if ( (clk < flak_taptics) && (last_sm*sm == 0) && (last_tap_sm*sm>0) )
dodge += RotateVector((0,-sm),angle).unit();
if ( !last_sm && (last_jump_held < gametic-1) )
{
@ -309,7 +307,7 @@ Class UTPlayer : DoomPlayer
last_sm = sm;
if ( !bNoGravity && player.onground && (waterlevel < 2) )
{
if ( dodge.length() > 0 )
if ( flak_tapdodge && (dodge.length() > 0) )
{
if ( flak_doomspeed ) vel += dodge.unit()*(groundspeed_doomish*1.5)/TICRATE;
else vel += dodge.unit()*(groundspeed*1.5)/TICRATE;