Skip to content

Commit

Permalink
v0.5.4.1 + regenerated waypoints in vanilla subs & FishAnim tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalis committed Dec 4, 2016
1 parent 8cd04af commit d95acec
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Subsurface/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.5.4.0")]
[assembly: AssemblyFileVersion("0.5.4.0")]
[assembly: AssemblyVersion("0.5.4.1")]
[assembly: AssemblyFileVersion("0.5.4.1")]
6 changes: 3 additions & 3 deletions Subsurface/Source/Characters/Animation/FishAnimController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,15 @@ void UpdateSineAnim(float deltaTime)
if (Limbs[i].SteerForce <= 0.0f) continue;

Vector2 pullPos = Limbs[i].pullJoint == null ? Limbs[i].SimPosition : Limbs[i].pullJoint.WorldAnchorA;
Limbs[i].body.ApplyForce(movement * Limbs[i].SteerForce * Limbs[i].Mass, pullPos);
Limbs[i].body.ApplyForce(movement * Limbs[i].SteerForce * Limbs[i].Mass, pullPos);

if (Limbs[i] == MainLimb) continue;
/*if (Limbs[i] == MainLimb) continue;
float dist = (MainLimb.SimPosition - Limbs[i].SimPosition).Length();
Vector2 limbPos = MainLimb.SimPosition - Vector2.Normalize(movement) * dist;
Limbs[i].body.ApplyForce(((limbPos - Limbs[i].SimPosition) * 3.0f - Limbs[i].LinearVelocity * 3.0f) * Limbs[i].Mass);
Limbs[i].body.ApplyForce(((limbPos - Limbs[i].SimPosition) * 3.0f - Limbs[i].LinearVelocity * 3.0f) * Limbs[i].Mass);*/
}

Collider.LinearVelocity = Vector2.Lerp(Collider.LinearVelocity, movement, 0.5f);
Expand Down
Binary file modified Subsurface/Submarines/Aegir Mark III.sub
Binary file not shown.
Binary file modified Subsurface/Submarines/Nehalennia.sub
Binary file not shown.
Binary file modified Subsurface/Submarines/Vellamo.sub
Binary file not shown.
25 changes: 25 additions & 0 deletions Subsurface/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
---------------------------------------------------------------------------------------------------------
v0.5.4.1
---------------------------------------------------------------------------------------------------------

Bugfixes:
- copypasted items are now correctly aligned to the "grid"
- cabinets can be copypasted from a sub to another without the items inside disappearing
- placing explosives inside an item and that item inside another item doesn't prevent explosions
- fixed a bug that occasionally caused crashing when the game happens to generate a very small level

Sub editor:
- structures/items that are behind something else can be selected using a listbox that appears
when hovering the cursor over them
- wires have to be selected by clicking before any of the points can be moved (makes it possible
to move the correct wire even if it's overlapping with other wires)
- the selected wire is renderer over all structures
- points can be added to wires by clicking while holding ctrl
- disabled music

Misc:
- some rendering optimization
- pathfinding and waypoint generation improvements
- made mantises more aggressive
- water flows more slowly through partially damaged walls

---------------------------------------------------------------------------------------------------------
v0.5.4.0
---------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit d95acec

Please sign in to comment.