mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added effect of acquisition range to wake units up
Note: alertness time constant suppressed
This commit is contained in:
6369
client/package-lock.json
generated
6369
client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1120,7 +1120,8 @@
|
||||
"cost": 15000000,
|
||||
"tags": "Radar, CA",
|
||||
"markerFile": "groundunit-aaa",
|
||||
"canAAA": true
|
||||
"canAAA": true,
|
||||
"shotsBaseScatter": null
|
||||
},
|
||||
"Grad-URAL": {
|
||||
"name": "Grad-URAL",
|
||||
@@ -2387,7 +2388,8 @@
|
||||
"shotsToFire": 100,
|
||||
"tags": "Russian type 1",
|
||||
"markerFile": "groundunit-infantry",
|
||||
"canAAA": true
|
||||
"canAAA": true,
|
||||
"aimMethodRange": 3600
|
||||
},
|
||||
"KAMAZ Truck": {
|
||||
"name": "KAMAZ Truck",
|
||||
@@ -7238,7 +7240,8 @@
|
||||
"shotsToFire": 100,
|
||||
"tags": "Insurgent",
|
||||
"markerFile": "groundunit-infantry",
|
||||
"canAAA": true
|
||||
"canAAA": true,
|
||||
"aimMethodRange": 3600
|
||||
},
|
||||
"MLRS FDDM": {
|
||||
"name": "MLRS FDDM",
|
||||
@@ -7283,7 +7286,8 @@
|
||||
"shotsToFire": 100,
|
||||
"tags": "Russian type 2",
|
||||
"markerFile": "groundunit-infantry",
|
||||
"canAAA": true
|
||||
"canAAA": true,
|
||||
"aimMethodRange": 3600
|
||||
},
|
||||
"Infantry AK ver3": {
|
||||
"name": "Infantry AK ver3",
|
||||
@@ -7306,7 +7310,8 @@
|
||||
"shotsToFire": 100,
|
||||
"tags": "Russian type 3",
|
||||
"markerFile": "groundunit-infantry",
|
||||
"canAAA": true
|
||||
"canAAA": true,
|
||||
"aimMethodRange": 3600
|
||||
},
|
||||
"Smerch_HE": {
|
||||
"name": "Smerch_HE",
|
||||
@@ -8039,7 +8044,7 @@
|
||||
"canRearm": false,
|
||||
"muzzleVelocity": 1200,
|
||||
"barrelHeight": 3,
|
||||
"aimTime": 11,
|
||||
"aimTime": 20,
|
||||
"shotsToFire": 100,
|
||||
"cost": 750000,
|
||||
"tags": "CA",
|
||||
|
||||
@@ -148,9 +148,14 @@ export class UnitControlPanel extends Panel {
|
||||
|
||||
/* This is for when a ctrl-click happens on the map for deselection and we need to remove the selected unit from the panel */
|
||||
document.addEventListener("unitsDeselection", (ev: CustomEventInit) => {
|
||||
this.show();
|
||||
this.addButtons();
|
||||
this.#updateRapidControls();
|
||||
if (ev.detail.length > 0) {
|
||||
this.show();
|
||||
this.addButtons();
|
||||
this.#updateRapidControls();
|
||||
} else {
|
||||
this.hide();
|
||||
this.#updateRapidControls();
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener("resize", (e: any) => this.#calculateMaxHeight());
|
||||
@@ -233,13 +238,13 @@ export class UnitControlPanel extends Panel {
|
||||
element.toggleAttribute("data-show-roe", !isTanker && !isAWACS);
|
||||
element.toggleAttribute("data-show-threat", (this.#selectedUnitsTypes.includes("Aircraft") || this.#selectedUnitsTypes.includes("Helicopter")) && !(this.#selectedUnitsTypes.includes("GroundUnit") || this.#selectedUnitsTypes.includes("NavyUnit")));
|
||||
element.toggleAttribute("data-show-emissions-countermeasures", (this.#selectedUnitsTypes.includes("Aircraft") || this.#selectedUnitsTypes.includes("Helicopter")) && !(this.#selectedUnitsTypes.includes("GroundUnit") || this.#selectedUnitsTypes.includes("NavyUnit")));
|
||||
element.toggleAttribute("data-show-shots-scatter", this.#selectedUnitsTypes.includes("GroundUnit")); //TODO: more refined
|
||||
element.toggleAttribute("data-show-shots-intensity", this.#selectedUnitsTypes.includes("GroundUnit")); //TODO: more refined
|
||||
element.toggleAttribute("data-show-shots-scatter", this.#selectedUnitsTypes.length == 1 && this.#selectedUnitsTypes.includes("GroundUnit")); //TODO: more refined
|
||||
element.toggleAttribute("data-show-shots-intensity", this.#selectedUnitsTypes.length == 1 && this.#selectedUnitsTypes.includes("GroundUnit")); //TODO: more refined
|
||||
element.toggleAttribute("data-show-tanker-button", getApp().getUnitsManager().getSelectedUnitsVariable((unit: Unit) => { return unit.isTanker(); }) === true);
|
||||
element.toggleAttribute("data-show-AWACS-button", getApp().getUnitsManager().getSelectedUnitsVariable((unit: Unit) => { return unit.isAWACS(); }) === true);
|
||||
element.toggleAttribute("data-show-on-off", (this.#selectedUnitsTypes.includes("GroundUnit") || this.#selectedUnitsTypes.includes("NavyUnit")) && !(this.#selectedUnitsTypes.includes("Aircraft") || this.#selectedUnitsTypes.includes("Helicopter")));
|
||||
element.toggleAttribute("data-show-follow-roads", (this.#selectedUnitsTypes.length == 1 && this.#selectedUnitsTypes.includes("GroundUnit")));
|
||||
element.toggleAttribute("data-show-operate-as", getApp().getUnitsManager().getSelectedUnitsVariable((unit: Unit) => { return unit.getCoalition() }) === "neutral");
|
||||
element.toggleAttribute("data-show-operate-as", this.#selectedUnitsTypes.length == 1 && this.#selectedUnitsTypes.includes("GroundUnit") && getApp().getUnitsManager().getSelectedUnitsVariable((unit: Unit) => { return unit.getCoalition() }) === "neutral");
|
||||
|
||||
if (this.#units.length == 1) {
|
||||
if (isAWACS)
|
||||
|
||||
Reference in New Issue
Block a user