mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-12 20:26:10 +01:00
frontal and back depression
This commit is contained in:
1 parent
95318d0a99
commit
62da186a25
4 files changed
+53
-1
No files matched your search
@@ -523,6 +523,50 @@ export const characteristics = {
|
||||
},
|
||||
},
|
||||
|
||||
gun_frontal_depression: {
|
||||
type: CharacteristicType.Number,
|
||||
should_render({ state, turret, gun }) {
|
||||
return state.model.turrets[turret.id].guns[gun.id].pitch!.front !==
|
||||
undefined;
|
||||
},
|
||||
compute({ state, turret, gun }) {
|
||||
return state.model.turrets[turret.id].guns[gun.id].pitch!.front!.max;
|
||||
},
|
||||
},
|
||||
|
||||
gun_frontal_elevation: {
|
||||
type: CharacteristicType.Number,
|
||||
should_render({ state, turret, gun }) {
|
||||
return state.model.turrets[turret.id].guns[gun.id].pitch!.front !==
|
||||
undefined;
|
||||
},
|
||||
compute({ state, turret, gun }) {
|
||||
return -state.model.turrets[turret.id].guns[gun.id].pitch!.front!.min;
|
||||
},
|
||||
},
|
||||
|
||||
gun_rear_depression: {
|
||||
type: CharacteristicType.Number,
|
||||
should_render({ state, turret, gun }) {
|
||||
return state.model.turrets[turret.id].guns[gun.id].pitch!.back !==
|
||||
undefined;
|
||||
},
|
||||
compute({ state, turret, gun }) {
|
||||
return state.model.turrets[turret.id].guns[gun.id].pitch!.back!.max;
|
||||
},
|
||||
},
|
||||
|
||||
gun_rear_elevation: {
|
||||
type: CharacteristicType.Number,
|
||||
should_render({ state, turret, gun }) {
|
||||
return state.model.turrets[turret.id].guns[gun.id].pitch!.back !==
|
||||
undefined;
|
||||
},
|
||||
compute({ state, turret, gun }) {
|
||||
return -state.model.turrets[turret.id].guns[gun.id].pitch!.back!.min;
|
||||
},
|
||||
},
|
||||
|
||||
azimuth_left: {
|
||||
type: CharacteristicType.Number,
|
||||
should_render({ state, turret }) {
|
||||
|
||||
@@ -140,6 +140,10 @@ export const characteristicsGroups: CharacteristicsGroup[] = [
|
||||
order: [
|
||||
{ name: "gun_depression", decimals: 0, units: "deg" },
|
||||
{ name: "gun_elevation", decimals: 0, units: "deg" },
|
||||
{ name: "gun_frontal_depression", decimals: 1, units: "deg" },
|
||||
{ name: "gun_frontal_elevation", decimals: 1, units: "deg" },
|
||||
{ name: "gun_rear_depression", decimals: 1, units: "deg" },
|
||||
{ name: "gun_rear_elevation", decimals: 1, units: "deg" },
|
||||
{ name: "azimuth_left", decimals: 0, units: "deg" },
|
||||
{ name: "azimuth_right", decimals: 0, units: "deg" },
|
||||
|
||||
|
||||
Reference in new issue
Block a user