Skip to content

Commit d55e050

Browse files
author
Michal R
committed
Boost
1 parent 052a86d commit d55e050

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Game.API.Common/Models/Hook.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public static Hook Default
6161
BoomDrag = 0.92f,
6262
BoomLife = 500,
6363

64-
BoostThrust = 0.053f,
65-
BoostThrust2 = 0.038f,
64+
BoostThrust = 0.051f,
65+
BoostThrust2 = 0.034f,
6666

6767
BoostCooldownTimeM = 14.0f,
6868
BoostCooldownTimeB = 1080.0f,

Game.Engine/Core/Fleet.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public override void Think()
352352

353353
angleMovement = MathF.Atan2(shipTargetVector.Y, shipTargetVector.X);
354354
if (!float.IsNaN(angleMovement))
355-
ship.AngleMovement = angleMovement;
355+
ship.AngleMovement = angleMovement;
356356

357357
Flocking.Flock(ship);
358358

@@ -362,11 +362,11 @@ public override void Think()
362362
float boostf2 = (float)(BoostUntil2 - World.Time) / 1000;
363363

364364
ship.ThrustAmount = isBoosting
365-
? baseThrust + (BoostThrust - baseThrust) * (float)Math.Pow(boostf2, 0.5f) /*(1 - (float)Math.Pow(2 * boostf2 - 1f, 2f))*/ * (1 - Burden) * BoostM
365+
? baseThrust + (BoostThrust - baseThrust) * (float)Math.Pow(boostf2, 0.6f) /*(1 - (float)Math.Pow(2 * boostf2 - 1f, 2f))*/ * (1 - Burden) * BoostM
366366
: baseThrust * (1 - Burden);
367367

368368
ship.BoostThrustAmount = isBoosting2
369-
? (float)Math.Pow(boostf2, 2f) * World.Hook.BoostThrust2 * (1 - Burden) * BoostM
369+
? (float)Math.Pow(boostf2, 1.4f) * World.Hook.BoostThrust2 * (1 - Burden) * BoostM
370370
: 0f;
371371

372372
ship.Drag = isBoosting

0 commit comments

Comments
 (0)