mirror of
https://github.com/ENSL/NS.git
synced 2024-11-25 14:01:03 +00:00
fix bullet spark effects happening far above some marine structures
This commit is contained in:
parent
fbab99da9e
commit
44f1f12a4f
1 changed files with 38 additions and 8 deletions
|
@ -1659,7 +1659,12 @@ bool AvHSHUGetSizeForTech(AvHMessageID inMessageID, Vector& outMinSize, Vector&
|
||||||
|
|
||||||
case BUILD_ARMSLAB:
|
case BUILD_ARMSLAB:
|
||||||
outMinSize = Vector(-16, -16, 0);
|
outMinSize = Vector(-16, -16, 0);
|
||||||
outMaxSize = Vector(16.0, 16.0, 72.0 /*66.9486*/);
|
outMaxSize = Vector(16.0, 16.0, 57.77 /*66.9486*/);
|
||||||
|
// 2024 - NS3.1 changed to this value to prevent building placed in vents from sinking. Just use this value only when placing to fix bullets sparking on it.
|
||||||
|
if (inGetSizeToPlace)
|
||||||
|
{
|
||||||
|
outMaxSize.z = 72.0;// 2024 - It was 72 instead of 73. Idk if it was a typo or what.
|
||||||
|
}
|
||||||
theSuccess = true;
|
theSuccess = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1680,26 +1685,46 @@ bool AvHSHUGetSizeForTech(AvHMessageID inMessageID, Vector& outMinSize, Vector&
|
||||||
|
|
||||||
case BUILD_COMMANDSTATION:
|
case BUILD_COMMANDSTATION:
|
||||||
outMinSize = Vector(-16, -16, 0);
|
outMinSize = Vector(-16, -16, 0);
|
||||||
outMaxSize = Vector(16.0, 16.0, 73.0 /*70.34*/);
|
outMaxSize = Vector(16.0, 16.0, 70.34);
|
||||||
|
// 2024 - NS3.1 changed to this value to prevent building placed in vents from sinking. Just use this value only when placing to fix bullets sparking on it.
|
||||||
|
if (inGetSizeToPlace)
|
||||||
|
{
|
||||||
|
outMaxSize.z = 73.0;
|
||||||
|
}
|
||||||
theSuccess = true;
|
theSuccess = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BUILD_TURRET_FACTORY:
|
case BUILD_TURRET_FACTORY:
|
||||||
outMinSize = Vector(-16, -16, 0);
|
outMinSize = Vector(-16, -16, 0);
|
||||||
//outMaxSize = Vector(16.0, 16.0, 55.68);
|
//outMaxSize = Vector(16.0, 16.0, 55.68);
|
||||||
outMaxSize = Vector(16.0, 16.0, 73.0 /*62.1931*/);
|
outMaxSize = Vector(16.0, 16.0, 55.68 /*62.1931*/);
|
||||||
|
// 2024 - NS3.1 changed to this value to prevent building placed in vents from sinking. Just use this value only when placing to fix bullets sparking on it.
|
||||||
|
if (inGetSizeToPlace)
|
||||||
|
{
|
||||||
|
outMaxSize.z = 73.0;
|
||||||
|
}
|
||||||
theSuccess = true;
|
theSuccess = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BUILD_ARMORY:
|
case BUILD_ARMORY:
|
||||||
outMinSize = Vector(-16, -16, 0);
|
outMinSize = Vector(-16, -16, 0);
|
||||||
outMaxSize = Vector(16.0, 16.0, 73.0 /*62.1931*/);
|
outMaxSize = Vector(16.0, 16.0, 62.1931);
|
||||||
|
// 2024 - NS3.1 changed to this value to prevent building placed in vents from sinking. Just use this value only when placing to fix bullets sparking on it.
|
||||||
|
if (inGetSizeToPlace)
|
||||||
|
{
|
||||||
|
outMaxSize.z = 73.0;
|
||||||
|
}
|
||||||
theSuccess = true;
|
theSuccess = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BUILD_PROTOTYPE_LAB:
|
case BUILD_PROTOTYPE_LAB:
|
||||||
outMinSize = Vector(-16, -16, 0);
|
outMinSize = Vector(-16, -16, 0);
|
||||||
outMaxSize = Vector(16.0, 16.0, 73.0 /*67.7443*/);
|
outMaxSize = Vector(16.0, 16.0, 67.7443);
|
||||||
|
// 2024 - NS3.1 changed to this value to prevent building placed in vents from sinking. Just use this value only when placing to fix bullets sparking on it.
|
||||||
|
if (inGetSizeToPlace)
|
||||||
|
{
|
||||||
|
outMaxSize.z = 73.0;
|
||||||
|
}
|
||||||
theSuccess = true;
|
theSuccess = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1711,7 +1736,12 @@ bool AvHSHUGetSizeForTech(AvHMessageID inMessageID, Vector& outMinSize, Vector&
|
||||||
|
|
||||||
case BUILD_SIEGE:
|
case BUILD_SIEGE:
|
||||||
outMinSize = Vector(-16, -16, 0);
|
outMinSize = Vector(-16, -16, 0);
|
||||||
outMaxSize = Vector(16.0, 16.0, 73.0 /*62.1931*/ /*50.6678*/);
|
outMaxSize = Vector(16.0, 16.0, 50.6678 /*62.1931*/);
|
||||||
|
// 2024 - NS3.1 changed to this value to prevent building placed in vents from sinking. Just use this value only when placing to fix bullets sparking on it.
|
||||||
|
if (inGetSizeToPlace)
|
||||||
|
{
|
||||||
|
outMaxSize.z = 73.0;
|
||||||
|
}
|
||||||
theSuccess = true;
|
theSuccess = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue