Wire client VTOL/arc HUD & inputs and add Cut 3a tests
This commit is contained in:
parent
95bbca6499
commit
eb579a6ede
10 changed files with 552 additions and 86 deletions
|
|
@ -540,22 +540,36 @@ public partial class ArenaRenderer : Node3D
|
|||
switch (chassisId)
|
||||
{
|
||||
case "buggy":
|
||||
case "jackal":
|
||||
BuildBuggyParts(root, aimPivot, bodyMat, accentMat, darkMat, heatMat);
|
||||
break;
|
||||
case "technical":
|
||||
case "mule":
|
||||
BuildTechnicalParts(root, aimPivot, bodyMat, accentMat, darkMat, heatMat);
|
||||
break;
|
||||
case "tank":
|
||||
case "anvil":
|
||||
case "ironclad":
|
||||
case "ferret":
|
||||
case "mammoth":
|
||||
BuildTankParts(root, aimPivot, bodyMat, accentMat, darkMat, heatMat);
|
||||
break;
|
||||
case "hornet":
|
||||
case "condor":
|
||||
BuildVtolParts(root, aimPivot, bodyMat, accentMat, darkMat, heatMat, isHeavy: chassisId == "condor");
|
||||
break;
|
||||
case "manticore":
|
||||
case "bastion":
|
||||
BuildManticoreParts(root, aimPivot, bodyMat, accentMat, darkMat, heatMat);
|
||||
break;
|
||||
case "raptor":
|
||||
case "spectre":
|
||||
case "kestrel":
|
||||
case "exemplar_frame":
|
||||
BuildRaptorParts(root, aimPivot, bodyMat, accentMat, darkMat, heatMat, isExemplar: chassisId == "exemplar_frame");
|
||||
break;
|
||||
case "paladin":
|
||||
case "breaker":
|
||||
BuildPaladinParts(root, aimPivot, bodyMat, accentMat, darkMat, heatMat, isTourist: isSpectator && tier == SpectatorTier.Tourist);
|
||||
break;
|
||||
default:
|
||||
|
|
@ -728,6 +742,18 @@ public partial class ArenaRenderer : Node3D
|
|||
AddBox(aimPivot, new Vector3(0.45f, 0.48f, 2.0f), new Vector3( 1.45f, 0f, 0.65f), accentMat);
|
||||
}
|
||||
|
||||
private static void BuildVtolParts(Node3D root, Node3D aimPivot, Material bodyMat, Material accentMat, Material darkMat, Material heatMat, bool isHeavy)
|
||||
{
|
||||
float s = isHeavy ? 1.3f : 1.0f;
|
||||
AddBox(root, new Vector3(1.1f * s, 0.7f * s, 3.4f * s), Vector3.Zero, bodyMat);
|
||||
AddBox(root, new Vector3(3.1f * s, 0.16f * s, 0.9f * s), new Vector3(0f, 0.15f * s, -0.2f * s), accentMat);
|
||||
AddBox(root, new Vector3(0.65f * s, 0.35f * s, 0.9f * s), new Vector3(-1.35f * s, 0.25f * s, -0.15f * s), darkMat);
|
||||
AddBox(root, new Vector3(0.65f * s, 0.35f * s, 0.9f * s), new Vector3( 1.35f * s, 0.25f * s, -0.15f * s), darkMat);
|
||||
AddBox(root, new Vector3(0.6f * s, 0.32f * s, 0.6f * s), new Vector3(0f, 0.25f * s, -1.4f * s), heatMat);
|
||||
aimPivot.Position = new Vector3(0f, -0.25f * s, 1.3f * s);
|
||||
AddBox(aimPivot, new Vector3(0.32f * s, 0.24f * s, 0.9f * s), new Vector3(0f, 0f, 0.35f * s), accentMat);
|
||||
}
|
||||
|
||||
private static void AddBox(Node3D parent, Vector3 size, Vector3 pos, Material mat)
|
||||
{
|
||||
parent.AddChild(new MeshInstance3D
|
||||
|
|
|
|||
Loading…
Reference in a new issue