mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: japanese gun depression
This commit is contained in:
1 parent
ed4658adcc
commit
99cdf931a8
2 files changed
+6
-6
No files matched your search
@@ -19,8 +19,8 @@ export function applyPitchYawLimits(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const depressionBuff = verticalStabilizer ? degToRad(4) : 0;
|
const depressionBuff = verticalStabilizer ? degToRad(3) : 0;
|
||||||
const elevationBuff = verticalStabilizer ? degToRad(3) : 0;
|
const elevationBuff = verticalStabilizer ? degToRad(4) : 0;
|
||||||
let lowerPitch = -degToRad(pitchLimits.max) - depressionBuff;
|
let lowerPitch = -degToRad(pitchLimits.max) - depressionBuff;
|
||||||
let upperPitch = -degToRad(pitchLimits.min) + elevationBuff;
|
let upperPitch = -degToRad(pitchLimits.min) + elevationBuff;
|
||||||
const transition = degToRad(pitchLimits.transition ?? 10);
|
const transition = degToRad(pitchLimits.transition ?? 10);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { resolvePenetrationCoefficient } from '../blitz/resolvePenetrationCoeffi
|
|||||||
import { coefficient } from './coefficient';
|
import { coefficient } from './coefficient';
|
||||||
import { degressiveStat } from './degressiveStat';
|
import { degressiveStat } from './degressiveStat';
|
||||||
import { EquipmentDefinitions } from './equipmentDefinitions';
|
import { EquipmentDefinitions } from './equipmentDefinitions';
|
||||||
import { ModelDefinition, ModelDefinitions } from './modelDefinitions';
|
import { ModelDefinition } from './modelDefinitions';
|
||||||
import { normalizeBoundingBox } from './normalizeBoundingBox';
|
import { normalizeBoundingBox } from './normalizeBoundingBox';
|
||||||
import { progressiveStat } from './progressiveStat';
|
import { progressiveStat } from './progressiveStat';
|
||||||
import { ProvisionDefinitions } from './provisionDefinitions';
|
import { ProvisionDefinitions } from './provisionDefinitions';
|
||||||
@@ -75,7 +75,7 @@ export function tankCharacteristics(
|
|||||||
provisionDefinitions: ProvisionDefinitions;
|
provisionDefinitions: ProvisionDefinitions;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
const presetRows = equipmentDefinitions.presets[tank.equipment];
|
const presetRows = equipmentDefinitions.presets[tank.equipment];
|
||||||
const turretModelDefinition = tankModelDefinition.turrets[turret.id];
|
const turretModelDefinition = tankModelDefinition.turrets[turret.id];
|
||||||
const gunModelDefinition = turretModelDefinition.guns[gun.id];
|
const gunModelDefinition = turretModelDefinition.guns[gun.id];
|
||||||
|
|
||||||
@@ -387,11 +387,11 @@ export function tankCharacteristics(
|
|||||||
const gunDepression =
|
const gunDepression =
|
||||||
gunModelDefinition.pitch.max +
|
gunModelDefinition.pitch.max +
|
||||||
gunDefaultPitch +
|
gunDefaultPitch +
|
||||||
(hasImprovedVerticalStabilizer ? 4 : 0);
|
(hasImprovedVerticalStabilizer ? 3 : 0);
|
||||||
const gunElevation =
|
const gunElevation =
|
||||||
-gunModelDefinition.pitch.min -
|
-gunModelDefinition.pitch.min -
|
||||||
gunDefaultPitch +
|
gunDefaultPitch +
|
||||||
(hasImprovedVerticalStabilizer ? 3 : 0);
|
(hasImprovedVerticalStabilizer ? 4 : 0);
|
||||||
const gunFrontalDepression = gunModelDefinition.pitch.front?.max;
|
const gunFrontalDepression = gunModelDefinition.pitch.front?.max;
|
||||||
const gunFrontalElevation = gunModelDefinition.pitch.front
|
const gunFrontalElevation = gunModelDefinition.pitch.front
|
||||||
? -gunModelDefinition.pitch.front.min
|
? -gunModelDefinition.pitch.front.min
|
||||||
|
|||||||
Reference in new issue
Block a user