Skip to content

Commit

Permalink
AugSpeed allow boosting to level 5 with Synth Heart
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Jul 19, 2024
1 parent cea7b90 commit e102cbe
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions DXRBalance/DeusEx/Classes/BalanceAugSpeed.uc
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,47 @@ Begin:
Player.Energy = 0;
Deactivate();
} else {
Player.GroundSpeed *= LevelValues[CurrentLevel];
Player.JumpZ *= LevelValues[CurrentLevel];
Player.GroundSpeed *= GetAugLevelValue();
Player.JumpZ *= GetAugLevelValue();
if ( Level.NetMode != NM_Standalone )
{
if ( Human(Player) != None )
Human(Player).UpdateAnimRate( LevelValues[CurrentLevel] );
Human(Player).UpdateAnimRate( GetAugLevelValue() );
}
}
}

simulated function float GetAugLevelValue()
{
if (bHasIt && bIsActive) {
TickUse();
if(CurrentLevel >= 4) return 1.8;// Level 5 is the same as vanilla level 4
return LevelValues[CurrentLevel];
}
else
return -1.0;
}

function BoostAug(bool bBoostEnabled)
{
// DXRando: don't boost free augs because (0 * synth_heart_strength) == 0
if (bBoostEnabled && energyRate > 0)
{
if (bIsActive && !bBoosted && CurrentLevel < MaxLevel+1)// we allow boosting speed to level 5
{
CurrentLevel++;
bBoosted = True;
Reset();
}
}
else if (bBoosted)
{
CurrentLevel--;
bBoosted = False;
Reset();
}
}

//original went from 1.2 up to 1.8, I've thought about nerfing the max speed so you can't just run past all enemies, but I think that would require an unreasonably large nerf
//original EnergyRate is 40, might nerf it if people use it too much?
defaultproperties
Expand Down

1 comment on commit e102cbe

@Die4Ever
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.