mirror of
https://github.com/spencershepard/RotorOps.git
synced 2025-11-10 15:45:30 +00:00
BHD2 and infantry update (#48)
* BHD2 and infantry update - default to easy comms - modify ctld for better infantry models - cleaner logging - warn user if no resources for fat cow FARPs - condition for fat cow added; not available if enemies too close * Update README.md
This commit is contained in:
@@ -593,6 +593,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
"blue_cap": self.scenario.getConfigValue("blue_cap", default=True),
|
||||
"rotorops_server": self.scenario.getConfigValue("rotorops_server", default=False),
|
||||
"perks": self.perks_checkBox.isChecked(),
|
||||
"easy_comms": self.scenario.getConfigValue("easy_comms", default=True)
|
||||
}
|
||||
|
||||
logger.info("Generating mission with options:")
|
||||
|
||||
@@ -401,6 +401,12 @@ class RotorOpsMission:
|
||||
self.m.random_daytime(options["time"].lower())
|
||||
print("Time set to " + options["time"])
|
||||
|
||||
# set the mission options
|
||||
if options["easy_comms"]:
|
||||
# to simplify rearm/refuel at FARPs
|
||||
self.m.options.difficulty.easyCommunication = True
|
||||
|
||||
|
||||
# Save the mission file
|
||||
window.statusBar().showMessage("Saving mission...", 10000)
|
||||
if window.user_output_dir:
|
||||
@@ -824,7 +830,7 @@ class RotorOpsMission:
|
||||
self.m.triggers.add_triggerzone(f_cap_spawn_point, 30000, hidden=True, name="BLUE_CAP_SPAWN")
|
||||
|
||||
# Fat Cow
|
||||
if True:
|
||||
if options["perks"]:
|
||||
helo_type = dcs.helicopters.CH_47D
|
||||
name = "FAT COW"
|
||||
|
||||
@@ -852,6 +858,24 @@ class RotorOpsMission:
|
||||
afg.set_skill(dcs.unit.Skill.Excellent)
|
||||
afg.late_activation = True
|
||||
|
||||
else:
|
||||
afg = self.m.flight_group_inflight(
|
||||
combinedJointTaskForcesBlue,
|
||||
name,
|
||||
helo_type,
|
||||
position=primary_f_airport.position,
|
||||
altitude=500,
|
||||
speed=50,
|
||||
group_size=1
|
||||
)
|
||||
|
||||
if afg:
|
||||
afg.set_skill(dcs.unit.Skill.Excellent)
|
||||
afg.late_activation = True
|
||||
|
||||
else:
|
||||
raise Exception("Unable to insert Fat Cow CH-47")
|
||||
|
||||
|
||||
if options["f_awacs"]:
|
||||
awacs_name = "AWACS"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# ROTOROPS VERSION
|
||||
maj_version = 1
|
||||
minor_version = 4
|
||||
patch_version = 3
|
||||
patch_version = 4
|
||||
|
||||
version_url = 'https://dcs-helicopters.com/app-updates/versioncheck.yaml'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user