Target Schematic & Various Improvements

Targeting an enemy now shows their schematic
Added Longinus Hull
Fixed projectile overpenetration
Fixed projectiles colliding with minimap icons
Added Schematic hit flashing
Thruster torque multiplier
Thruster torque threshold
This commit is contained in:
Reinier Vens 2021-01-11 02:56:37 +00:00
commit 20e9f89228
24 changed files with 5519 additions and 386 deletions

View file

@ -19,6 +19,7 @@ using int2 = Unity.Mathematics.int2;
public class InventoryPanel : MonoBehaviour
{
public bool Flip;
public GameSettings Settings;
public ActionGameManager GameManager;
public ContextMenu ContextMenu;
@ -335,7 +336,7 @@ public class InventoryPanel : MonoBehaviour
bool HardpointMatch(int2 offset)
{
var v2 = v + offset;
var v2 = v + offset * (Flip ? -1 : 1);
return !(
hullData.Shape[v2] &&
_displayedEntity.Hardpoints[v2.x, v2.y] == hardpoint &&
@ -345,7 +346,7 @@ public class InventoryPanel : MonoBehaviour
bool NoHardpointMatch(int2 offset)
{
var v2 = v + offset;
var v2 = v + offset * (Flip ? -1 : 1);
return !(
hullData.Shape[v2] && (
!interior && !hullData.InteriorCells[v2] && _displayedEntity.Hardpoints[v2.x, v2.y] == null ||