Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

feat(gameengine): turkiye promotion tree built on radar guidance

Olcay Seygancdc2e8df6554
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e1060d078..6a3df8ebe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -371,7 +371,10 @@ found and fixed, EA's own, not port damage.**
- The engineers dig in at the front. The Siper is a bunker for five infantry, 500, that goes up wherever an engineer stands: the army moves up, digs a Siper, spots and shells. Mehmetcik inside it hold off infantry and Sungur gunners hold off tanks. It takes the place of the air defense site, a Chinese gattling cannon that fired at everything. The Patriot battery is now called Hisar and is the base's one fixed air defense.
- The Korkut is air defense and nothing else. Its cannons reach 350 into the air and no longer fire at the ground, where they used to outrange the Altay; three Korkut that cut down eight Rangers without a scratch now lose to them, and still shoot down three Comanches untouched. The Kizilelma's missiles hit the ground as well as the air, and it costs 1800 instead of 2200. It carried 380 health on a Raptor's frame and shot a Raptor down in 29 seconds while the Raptor needed 86 for it; at the Raptor's 160 the duel is even and the dearer jet loses on price. The Akinci drops its own bomb, one a sortie; it had been dropping the Aurora's. Fuel Cells and Fuel Resupply used to hang two and then four of them under it, enough for one jet to level a base, and now it carries one whatever you buy. With 420 health no ground air defense paid for itself against it. At 200 a Gattling Tank or a Missile Defender beats it for the money and a Quad Cannon breaks even.
- Every Turkish unit has its own command bar with only buttons that work: no drone buttons on the Altay and the Cobra, no TOW on the Cobra, no rocket pods on the Bayraktar, no flash-bang switch on the Mehmetcik. The Barracks sells Capture Building, so the Mehmetcik's capture button works.
-- Turkiye's first rank buys its own power, a Minefield a cargo plane sows wherever you point, beside the Spy Drone and Fuel Resupply, which keeps the drones over the target longer. Rank 3 offers a loitering munition that dives on whatever it is pointed at, Electronic Blinding, which shuts every enemy radar in the area off for 30 seconds, and Rapid Deployment, six Mehmetcik and two Sungur gunners by parachute. The top rank buys the Swarm Strike: ten munitions over a wide circle, each on a different target and the most expensive first, so a column of tanks loses its tanks and the riflemen walking beside them are left standing. Beside it sit the Fire Mission, 36 heavy shells from off the map, and the Commando Raid, a Maroon Beret and two spotter teams dropped behind the enemy's lines. The American Paradrop, Leaflet Drop, Spectre gunship and CIA intelligence are gone from the Headquarters and the power bar.
+- Turkiye's general buys sight before firepower. At the first rank, Laser Designation lets a spotter team or a Bayraktar put whatever it is shooting at under radar cover wherever that target stands, so every guided rocket fired at it keeps its lock. Early Warning pushes every Turkish radar a quarter further out. UAV Recon sends a drone to circle a spot for 30 seconds, and every enemy unit under it shows on the map with what kind it is, standing or moving, while the fog stays where it was.
+- Rank 3 is where the tree splits. Mobile Radar lets the Factory build a radar truck that covers 900 while it stands and nothing while it drives, and Akinci AESA takes the Akinci's radar from 750 to 1000. The UAV Swarm sends loitering munitions where you point, each diving on the dearest target it finds: one at the first level, three at the second, five at the third. Gokbey Landing parachutes Mehmetcik and Sungur gunners in, six of them, then ten, then fourteen with a Kirpi beside them. Electronic Warfare blinds the radar of every enemy with a building in the circle for 30 seconds and jams the circle for as long, so drones and spotters inside it see nothing and a guided missile that crosses it loses its lock.
+- The top rank holds the big guns. Satellite Guidance makes the whole map count as Turkish radar for 45 seconds, and every guided shot in that window hits where it was aimed. The Tayfun is a ballistic missile, 600 at the point and 200 out to 90: inside radar cover it always lands on target, outside it hits one time in five and the rest come down 100 to 200 away. The Commando Raid stays, a Maroon Beret and two spotter teams dropped behind the enemy's lines. The Minefield, the Spy Drone, Fuel Resupply and the Fire Mission are gone, and the Swarm Strike lives on as the third level of the UAV Swarm. The Turkish computer takes one of two roads, the swarm with Satellite Guidance or the landing with the Commando Raid, and the Tayfun at the end of both. The American Paradrop, Leaflet Drop, Spectre gunship and CIA intelligence are gone from the Headquarters and the power bar.
+- Four Turkish buildings sell a new upgrade each. Target Classification at the Radar Tower, 1500, puts a mark in every radar ring that says whether it is infantry, a vehicle, air defense, artillery, an aircraft or a defense. AKKOR at the Factory, 1500, arms every Altay with a hard-kill charge that bursts one incoming missile or rocket in the air every three seconds, with the same flash the Paladin's point defense makes. Gokdogan missiles at the Airfield, 1500, give the Kizilelma 360 range instead of 280 and 130 damage instead of 100. Reinforced Siper at the Barracks, 800, adds 750 health to every Siper, half as much again.
- Turkiye has a superweapon: the Kargu Drone Base. It costs 5000, draws 10 power, opens once you have an Operations Center, counts against the lobby's superweapon limit like the Particle Cannon, the nuke and the Scud Storm, and every player watches its five-minute countdown. The base is an airfield with two runways and four hangars, and you tell it from Turkiye's own airfield at a glance because it wears China's. Fire it and the hangar doors roll up, and a second later sixteen kamikaze drones roll out of the three doored hangars that face the runways, never out of the open side shed, one down each runway in turn every quarter of a second, and lift off and climb; all sixteen are in the air seven seconds after you fire. Then they climb to 300, as high as the camera goes, and fly straight across the map where everyone sees them coming. Each goes for one of the sixteen most expensive things inside the target circle and comes down on it from 250 short the way a Scud Storm missile does, curving over into a steep dive, and steers onto it all the way down so a tank driving away still takes the hit, and hits for 700, 11,200 for the whole swarm. Every target in the circle gets one drone before any gets a second, and the spares go round again dearest first. A drone whose target died on the way takes the dearest enemy in the circle that no other drone is already after, and doubles up only when every one has a drone coming. Nothing can shoot them down, as nothing can shoot a Scud Storm's missiles; anti-air used to pick them off on the way in. Fired across Twilight Flame into an American base with three Patriot batteries and four Avengers, all sixteen reached their dive, and the swarm killed all four Avengers, four of eight Crusaders and three of six Humvees and took 69% off the Patriots, 43% off the two power plants, 33% off the War Factory and 21% off the Command Center. The Avengers' point defense lasers used to shoot a diving drone out of the air; they no longer see it. The Turkish computer builds and fires it on every difficulty: Hard as soon as it can pay once its Operations Center stands, Medium after seventeen minutes and Easy after thirty, the same clock America's plans keep for their Particle Cannon. China's airfield and the Hellfire drone are on loan, and the announcer calls it a Scud Storm until Turkiye has art and voices of its own.
- Turkiye has a technology building, the Operations Center (Harekat Merkezi in Turkish). The engineers put it up once a Factory or an Airfield stands, for 2500. It is the Strategy Center with its gun and its three battle plans, Bombardment, Search and Destroy and Hold the Line, and it researches Advanced Training and Chemical Suits, which the Turkish units take as the American ones do. The Kargu Drone Base needs it, the way the Particle Cannon needs the Strategy Center, where it used to open with a Factory and a Radar Tower. The Turkish computer builds it where America's plans put their Strategy Center.
- The Operations Center opens Turkiye's late army the way the Strategy Center opens America's: the Sakarya, the Koral, the Akinci and the Maroon Beret wait for it.
diff --git a/GeneralsMD/Code/BuildFingerprint.manifest b/GeneralsMD/Code/BuildFingerprint.manifest
index 8a704994f..74bae188c 100644
--- a/GeneralsMD/Code/BuildFingerprint.manifest
+++ b/GeneralsMD/Code/BuildFingerprint.manifest
@@ -9,6 +9,7 @@ Data/Art/Textures/ReforgedBarChinaRight.tga
Data/Art/Textures/ReforgedBarGLACenter.tga
Data/Art/Textures/ReforgedBarGLALeft.tga
Data/Art/Textures/ReforgedBarGLARight.tga
+Data/Art/Textures/ReforgedFactionEmblems.dds
Data/Art/Textures/ReforgedFactionTurkiye.tga
Data/Art/Textures/ReforgedForceAttack.tga
Data/Art/Textures/ReforgedGuardCentre.tga
@@ -41,6 +42,8 @@ Data/Art/Textures/ReforgedMineLedBlue.tga
Data/Art/Textures/ReforgedMineLedRed.tga
Data/Art/Textures/ReforgedRadarContact.tga
Data/Art/Textures/ReforgedRadarRing.tga
+Data/Art/Textures/ReforgedReconArea.tga
+Data/Art/Textures/ReforgedReconHud.tga
Data/Art/Textures/ReforgedSignalAttack.tga
Data/Art/Textures/ReforgedSignalDefend.tga
Data/Art/Textures/ReforgedSignalLook.tga
@@ -286,6 +289,7 @@ Data/INI/ControlBarSchemeReforged.ini
Data/INI/FXListReforged.ini
Data/INI/FixesReforged.ini
Data/INI/MappedImages/HandCreated/ReforgedBarChinaBeacon.ini
+Data/INI/MappedImages/HandCreated/ReforgedFactionEmblems.ini
Data/INI/MappedImages/HandCreated/ReforgedFactionPicker.ini
Data/INI/MappedImages/HandCreated/ReforgedForceAttack.ini
Data/INI/MappedImages/HandCreated/ReforgedHudAmericaCommandBar.ini
@@ -305,6 +309,7 @@ Data/INI/MappedImages/HandCreated/ReforgedHudObsSpec.ini
Data/INI/MappedImages/HandCreated/ReforgedHudTurkiyeCommandBar.ini
Data/INI/MappedImages/HandCreated/ReforgedHudTurkiyePowers.ini
Data/INI/MappedImages/HandCreated/ReforgedLobbySpot.ini
+Data/INI/MappedImages/HandCreated/ReforgedReconHud.ini
Data/INI/ModernWater.ini
Data/INI/MultiplayerReforged.ini
Data/INI/ObjectCreationListReforged.ini
@@ -4328,6 +4333,7 @@ Tools/packaging-resolution-check.sh
Tools/peacetime_layout.py
Tools/pink_laser.py
Tools/radar_marks.py
+Tools/recon_marks.py
Tools/record-dx11-shaders.ps1
Tools/replay-check.sh
Tools/root-readonly-check.sh
diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedReconArea.tga b/GeneralsMD/Code/Data/Art/Textures/ReforgedReconArea.tga
new file mode 100644
index 000000000..ece7ad4d4
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/Textures/ReforgedReconArea.tga differ
diff --git a/GeneralsMD/Code/Data/Art/Textures/ReforgedReconHud.tga b/GeneralsMD/Code/Data/Art/Textures/ReforgedReconHud.tga
new file mode 100644
index 000000000..ce67b1324
Binary files /dev/null and b/GeneralsMD/Code/Data/Art/Textures/ReforgedReconHud.tga differ
diff --git a/GeneralsMD/Code/Data/French/Generals.str b/GeneralsMD/Code/Data/French/Generals.str
index 5f68ccc06..25b022967 100644
--- a/GeneralsMD/Code/Data/French/Generals.str
+++ b/GeneralsMD/Code/Data/French/Generals.str
@@ -18213,76 +18213,200 @@ CONTROLBAR:ConstructTurkiyePatriotBattery
"Batterie H&isar"
END
-SCIENCE:TurkiyeMinefield
-"Champ de mines"
+SCIENCE:TurkiyeLaserDesignation
+"Désignation laser"
END
-CONTROLBAR:ToolTipTurkiyeScienceMinefield
-"Un avion cargo sème un champ de mines à l'endroit désigné. \n \n Déployé depuis : Quartier général"
+CONTROLBAR:ToolTipTurkiyeScienceLaserDesignation
+"Les équipes d'observation et les Bayraktar marquent ce qu'ils attaquent. Une cible marquée compte comme couverte par le radar où qu'elle soit, et chaque roquette guidée par radar garde son verrouillage sur elle."
END
-CONTROLBAR:TurkiyeMinefield
-"Champ de &mines"
+UPGRADE:TurkiyeLaserDesignation
+"Désignation laser"
+END
+
+SCIENCE:TurkiyeEarlyWarning
+"Alerte avancée"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceEarlyWarning
+"Chaque radar turc porte un quart plus loin : Quartier général, tour radar, Koral, Akinci et radar mobile."
+END
+
+UPGRADE:TurkiyeEarlyWarning
+"Alerte avancée"
+END
+
+SCIENCE:TurkiyeUavRecon
+"Reconnaissance par drone"
END
-CONTROLBAR:TooltipTurkiyeMinefield
-"Champ de mines \n Recharge : 4:00"
+CONTROLBAR:ToolTipTurkiyeScienceUavRecon
+"Un drone tourne 30 secondes au-dessus de la zone ciblée et signale chaque unité ennemie qui s'y trouve, à l'arrêt ou en mouvement, avec sa nature. Le brouillard reste, mais la zone compte comme couverte par le radar. \n \n Déployé depuis : Quartier général"
END
-SCIENCE:TurkiyeFuelResupply
-"Ravitaillement en carburant"
+CONTROLBAR:TurkiyeUavRecon
+"&Reconnaissance par drone"
END
-CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
-"Les drones Bayraktar emportent une munition de plus à chaque sortie."
+CONTROLBAR:TooltipTurkiyeUavRecon
+"Reconnaissance par drone \n Recharge : 2:00"
+END
+
+GUI:HudReconSiha
+"RECON DRONE"
+END
+
+SCIENCE:TurkiyeMobileRadar
+"Radar mobile"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceMobileRadar
+"L'usine produit le radar mobile, un camion radar qui couvre 900 autour de lui tant qu'il est à l'arrêt."
+END
+
+OBJECT:TurkiyeVehicleMobileRadar
+"Radar mobile"
+END
+
+CONTROLBAR:ConstructTurkiyeVehicleMobileRadar
+"Radar &mobile"
+END
+
+CONTROLBAR:ToolTipTurkiyeVehicleMobileRadar
+"Un radar sur roues : à l'arrêt, il couvre 900 autour de lui ; en route, rien. Sans arme. \n \n Requiert : Radar mobile (rang 3)"
+END
+
+SCIENCE:TurkiyeAkinciAesa
+"AESA de l'Akinci"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceAkinciAesa
+"Le radar de l'Akinci porte à 1000 au lieu de 750."
+END
+
+UPGRADE:TurkiyeAkinciAesa
+"AESA de l'Akinci"
END
SCIENCE:TurkiyeSwarmMunition
-"Munition rôdeuse"
+"Essaim de drones 1"
+END
+
+SCIENCE:TurkiyeSwarmMunition2
+"Essaim de drones 2"
+END
+
+SCIENCE:TurkiyeSwarmMunition3
+"Essaim de drones 3"
END
CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
-"Une munition rôdeuse tourne au-dessus de l'endroit désigné et plonge sur la cible la plus chère qu'elle trouve. \n \n Déployé depuis : Quartier général"
+"Des munitions rôdeuses tournent au-dessus de l'endroit désigné, et chacune plonge sur la cible la plus chère qu'elle trouve : une au niveau 1, trois au niveau 2, cinq au niveau 3. \n \n Déployé depuis : Quartier général"
END
CONTROLBAR:TurkiyeSwarmMunition
-"&Munition rôdeuse"
+"&Essaim de drones"
END
CONTROLBAR:TooltipTurkiyeSwarmMunition
-"Munition rôdeuse \n Recharge : 3:00"
+"Essaim de drones \n Recharge : 3:00"
END
SCIENCE:TurkiyeElectronicBlinding
-"Aveuglement électronique"
+"Guerre électronique"
END
CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
-"Chaque ennemi ayant un bâtiment dans la zone ciblée perd son radar pendant 30 secondes. \n \n Déployé depuis : Quartier général"
+"Chaque ennemi ayant un bâtiment dans la zone ciblée perd son radar pendant 30 secondes, et la zone reste brouillée aussi longtemps : les drones et observateurs ennemis qui s'y trouvent ne voient plus rien, et les missiles guidés qui la traversent perdent leur verrouillage. \n \n Déployé depuis : Quartier général"
END
CONTROLBAR:TurkiyeElectronicBlinding
-"&Aveuglement électronique"
+"&Guerre électronique"
END
CONTROLBAR:TooltipTurkiyeElectronicBlinding
-"Aveuglement électronique \n Recharge : 4:00"
+"Guerre électronique \n Recharge : 4:00"
+END
+
+SCIENCE:TurkiyeSatelliteGuidance
+"Guidage satellite"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceSatelliteGuidance
+"Pendant 45 secondes, toute la carte compte comme couverte par le radar turc : chaque roquette guidée par radar garde son verrouillage, et les ennemis en mouvement apparaissent sous le brouillard. \n \n Déployé depuis : Quartier général"
+END
+
+CONTROLBAR:TurkiyeSatelliteGuidance
+"Guidage &satellite"
+END
+
+CONTROLBAR:TooltipTurkiyeSatelliteGuidance
+"Guidage satellite \n Recharge : 5:00"
+END
+
+SCIENCE:TurkiyeTayfun
+"Missile Tayfun"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceTayfun
+"Un missile balistique Tayfun s'abat sur la cible. Sous couverture radar, il touche toujours ; hors couverture, il tombe sur le point une fois sur cinq et manque largement le reste du temps. \n \n Déployé depuis : Quartier général"
+END
+
+CONTROLBAR:TurkiyeTayfun
+"Missile &Tayfun"
+END
+
+CONTROLBAR:TooltipTurkiyeTayfun
+"Missile Tayfun \n Recharge : 4:00"
+END
+
+UPGRADE:TurkiyeTargetClassification
+"Classification des cibles"
+END
+
+CONTROLBAR:UpgradeTurkiyeTargetClassification
+"&Classification des cibles"
END
-SCIENCE:TurkiyeSwarmStrike
-"Frappe en essaim"
+CONTROLBAR:ToolTipUpgradeTurkiyeTargetClassification
+"Les contacts radar montrent ce qu'ils sont : infanterie, véhicule, défense antiaérienne, artillerie, aéronef ou défense."
END
-CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
-"Un essaim de munitions traque les dix cibles les plus précieuses d'une large zone, une munition chacune. Une base serrée l'encaisse sans peine ; une armée dispersée, non. \n \n Déployé depuis : Quartier général"
+UPGRADE:TurkiyeAkkor
+"Protection active AKKOR"
END
-CONTROLBAR:TurkiyeSwarmStrike
-"Frappe en &essaim"
+CONTROLBAR:UpgradeTurkiyeAkkor
+"&Protection active AKKOR"
END
-CONTROLBAR:TooltipTurkiyeSwarmStrike
-"Frappe en essaim \n Recharge : 6:00"
+CONTROLBAR:ToolTipUpgradeTurkiyeAkkor
+"Chaque Altay porte une charge de destruction qui fait exploser un missile ou une roquette en approche toutes les trois secondes."
+END
+
+UPGRADE:TurkiyeGokdogan
+"Missiles Gokdogan"
+END
+
+CONTROLBAR:UpgradeTurkiyeGokdogan
+"&Missiles Gokdogan"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeGokdogan
+"Les Kizilelma tirent le Gokdogan : portée 360 au lieu de 280, 130 dégâts au lieu de 100."
+END
+
+UPGRADE:TurkiyeSiperReinforced
+"Siper renforcé"
+END
+
+CONTROLBAR:UpgradeTurkiyeSiperReinforced
+"Siper ren&forcé"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeSiperReinforced
+"Béton et couverture : chaque Siper encaisse moitié plus avant de tomber."
END
UPGRADE:TurkiyeThermal
@@ -18321,40 +18445,28 @@ CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
"Les munitions du Bayraktar choisissent elles-mêmes leur cible : l'ennemi le plus cher à portée."
END
-UPGRADE:TurkiyeFuelResupply
-"Ravitaillement en carburant"
-END
-
SCIENCE:TurkiyeRapidDeployment
-"Déploiement rapide"
+"Débarquement Gokbey 1"
END
-CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
-"Un avion cargo largue six Mehmetcik et deux tireurs Sungur à l'endroit désigné. \n \n Déployé depuis : Quartier général"
+SCIENCE:TurkiyeRapidDeployment2
+"Débarquement Gokbey 2"
END
-CONTROLBAR:TurkiyeRapidDeployment
-"Déploiement &rapide"
+SCIENCE:TurkiyeRapidDeployment3
+"Débarquement Gokbey 3"
END
-CONTROLBAR:TooltipTurkiyeRapidDeployment
-"Déploiement rapide \n Recharge : 3:00"
-END
-
-SCIENCE:TurkiyeFireMission
-"Mission de tir"
-END
-
-CONTROLBAR:ToolTipTurkiyeScienceFireMission
-"Trente-six obus lourds tombent sur la cible depuis l'extérieur de la carte. \n \n Déployé depuis : Quartier général"
+CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
+"Des Mehmetcik et des tireurs Sungur sont parachutés à l'endroit désigné : six au niveau 1, dix au niveau 2, quatorze et un Kirpi au niveau 3. \n \n Déployé depuis : Quartier général"
END
-CONTROLBAR:TurkiyeFireMission
-"M&ission de tir"
+CONTROLBAR:TurkiyeRapidDeployment
+"Débarquement &Gokbey"
END
-CONTROLBAR:TooltipTurkiyeFireMission
-"Mission de tir \n Recharge : 4:00"
+CONTROLBAR:TooltipTurkiyeRapidDeployment
+"Débarquement Gokbey \n Recharge : 3:00"
END
SCIENCE:TurkiyeCommandoRaid
diff --git a/GeneralsMD/Code/Data/INI/AIDataReforged.ini b/GeneralsMD/Code/Data/INI/AIDataReforged.ini
index 43ad03d04..b17323e2d 100644
--- a/GeneralsMD/Code/Data/INI/AIDataReforged.ini
+++ b/GeneralsMD/Code/Data/INI/AIDataReforged.ini
@@ -30,24 +30,29 @@ AIData
Artillery = TurkiyeVehicleFirtina TurkiyeVehicleSakarya
Spotter = TurkiyeInfantrySpotter
+ ; Two seven-point paths through the rank tree, bought in list order, each tier after the one
+ ; before it. The first is the radar and missile general: wider radars, the recon flight, the UAV
+ ; swarm to five munitions, then Tayfun and the map-wide guidance that lets it hit anywhere. The
+ ; second fights on the ground: painted targets, the recon flight, Gokbey Landing to its Kirpi,
+ ; the commando raid and Tayfun.
SkillSet1
- Science = SCIENCE_TurkiyeMinefield
- Science = SCIENCE_TurkiyeFuelResupply
+ Science = SCIENCE_TurkiyeEarlyWarning
+ Science = SCIENCE_TurkiyeUavRecon
Science = SCIENCE_TurkiyeSwarmMunition
- Science = SCIENCE_TurkiyeElectronicBlinding
- Science = SCIENCE_TurkiyeRapidDeployment
- Science = SCIENCE_TurkiyeSwarmStrike
- Science = SCIENCE_TurkiyeFireMission
+ Science = SCIENCE_TurkiyeSwarmMunition2
+ Science = SCIENCE_TurkiyeSwarmMunition3
+ Science = SCIENCE_TurkiyeTayfun
+ Science = SCIENCE_TurkiyeSatelliteGuidance
End
SkillSet2
- Science = SCIENCE_TurkiyeMinefield
- Science = SCIENCE_SpyDrone
- Science = SCIENCE_TurkiyeElectronicBlinding
+ Science = SCIENCE_TurkiyeLaserDesignation
+ Science = SCIENCE_TurkiyeUavRecon
Science = SCIENCE_TurkiyeRapidDeployment
- Science = SCIENCE_TurkiyeSwarmMunition
- Science = SCIENCE_TurkiyeFireMission
+ Science = SCIENCE_TurkiyeRapidDeployment2
+ Science = SCIENCE_TurkiyeRapidDeployment3
Science = SCIENCE_TurkiyeCommandoRaid
+ Science = SCIENCE_TurkiyeTayfun
End
End
diff --git a/GeneralsMD/Code/Data/INI/CommandSetReforged.ini b/GeneralsMD/Code/Data/INI/CommandSetReforged.ini
index e2948d9ae..a81066540 100644
--- a/GeneralsMD/Code/Data/INI/CommandSetReforged.ini
+++ b/GeneralsMD/Code/Data/INI/CommandSetReforged.ini
@@ -419,7 +419,7 @@ End
; unit its object is a reskin of and has its own label and tooltip in Patch.str. A building keeps
; the American tooltip. Every Turkiye unit has a set of its own holding only buttons that work for
; it: the American sets offered drones, TOW missiles, rocket pods and flash-bangs Turkiye cannot
-; buy. The powers are Turkiye's own except the Spy Drone; what they drop (planes, paratroopers) is
+; buy. The powers are Turkiye's own; what they drop (planes, paratroopers) is
; American data that ThingFactory::newObject turns into the Turkiye reskin for a Turkiye player.
CommandButton Command_ConstructTurkiyeCommandCenter
@@ -701,36 +701,200 @@ CommandButton Command_UpgradeTurkiyeMineKit
DescriptLabel = CONTROLBAR:ToolTipUpgradeTurkiyeMineKit
End
-CommandButton Command_PurchaseScienceTurkiyeMinefield
+; ---- the rank tree (ScienceReforged.ini): the purchase buttons, one per science, tier images where
+; EA has them
+
+CommandButton Command_PurchaseScienceTurkiyeLaserDesignation
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeLaserDesignation
+ ButtonImage = SAPathfinder1
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeEarlyWarning
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeEarlyWarning
+ ButtonImage = SARadarUpgrade
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeUavRecon
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeUavRecon
+ ButtonImage = SAScout
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeMobileRadar
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeMobileRadar
+ ButtonImage = SURadarVan
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeAkinciAesa
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeAkinciAesa
+ ButtonImage = SAHypAurora
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeSwarmMunition2
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeSwarmMunition2
+ ButtonImage = SSA10Attack2
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeSwarmMunition3
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeSwarmMunition3
+ ButtonImage = SAWarthog
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeRapidDeployment2
Command = PURCHASE_SCIENCE
- Science = SCIENCE_TurkiyeMinefield
- ButtonImage = SSClusterMines
+ Science = SCIENCE_TurkiyeRapidDeployment2
+ ButtonImage = SNParadrop
ButtonBorderType = UPGRADE
End
-CommandButton Command_TurkiyeMinefield
+CommandButton Command_PurchaseScienceTurkiyeRapidDeployment3
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeRapidDeployment3
+ ButtonImage = SNParadrop
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeSatelliteGuidance
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeSatelliteGuidance
+ ButtonImage = SSSpySat
+ ButtonBorderType = UPGRADE
+End
+
+CommandButton Command_PurchaseScienceTurkiyeTayfun
+ Command = PURCHASE_SCIENCE
+ Science = SCIENCE_TurkiyeTayfun
+ ButtonImage = SNNukeLaunch
+ ButtonBorderType = UPGRADE
+End
+
+; ---- the new powers' buttons (SpecialPowerReforged.ini)
+
+CommandButton Command_TurkiyeUavRecon
Command = SPECIAL_POWER
- SpecialPower = SuperweaponTurkiyeMinefield
+ SpecialPower = SuperweaponTurkiyeUavRecon
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
- TextLabel = CONTROLBAR:TurkiyeMinefield
- ButtonImage = SSClusterMines
+ TextLabel = CONTROLBAR:TurkiyeUavRecon
+ ButtonImage = SAScout
ButtonBorderType = ACTION
- DescriptLabel = CONTROLBAR:TooltipTurkiyeMinefield
- RadiusCursorType = CLUSTERMINES
+ DescriptLabel = CONTROLBAR:TooltipTurkiyeUavRecon
+ RadiusCursorType = SPYSATELLITE
InvalidCursorName = GenericInvalid
End
-CommandButton Command_TurkiyeMinefieldFromShortcut
+CommandButton Command_TurkiyeUavReconFromShortcut
Command = SPECIAL_POWER_FROM_SHORTCUT
- SpecialPower = SuperweaponTurkiyeMinefield
+ SpecialPower = SuperweaponTurkiyeUavRecon
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
- TextLabel = CONTROLBAR:TurkiyeMinefield
- ButtonImage = SSClusterMines
- DescriptLabel = CONTROLBAR:TooltipTurkiyeMinefield
- RadiusCursorType = CLUSTERMINES
+ TextLabel = CONTROLBAR:TurkiyeUavRecon
+ ButtonImage = SAScout
+ DescriptLabel = CONTROLBAR:TooltipTurkiyeUavRecon
+ RadiusCursorType = SPYSATELLITE
InvalidCursorName = GenericInvalid
End
+CommandButton Command_TurkiyeSatelliteGuidance
+ Command = SPECIAL_POWER
+ SpecialPower = SuperweaponTurkiyeSatelliteGuidance
+ Options = NEED_SPECIAL_POWER_SCIENCE
+ TextLabel = CONTROLBAR:TurkiyeSatelliteGuidance
+ ButtonImage = SSSpySat
+ ButtonBorderType = ACTION
+ DescriptLabel = CONTROLBAR:TooltipTurkiyeSatelliteGuidance
+End
+
+CommandButton Command_TurkiyeSatelliteGuidanceFromShortcut
+ Command = SPECIAL_POWER_FROM_SHORTCUT
+ SpecialPower = SuperweaponTurkiyeSatelliteGuidance
+ Options = NEED_SPECIAL_POWER_SCIENCE
+ TextLabel = CONTROLBAR:TurkiyeSatelliteGuidance
+ ButtonImage = SSSpySat
+ DescriptLabel = CONTROLBAR:TooltipTurkiyeSatelliteGuidance
+End
+
+CommandButton Command_TurkiyeTayfun
+ Command = SPECIAL_POWER
+ SpecialPower = SuperweaponTurkiyeTayfun
+ Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
+ TextLabel = CONTROLBAR:TurkiyeTayfun
+ ButtonImage = SNNukeLaunch
+ ButtonBorderType = ACTION
+ DescriptLabel = CONTROLBAR:TooltipTurkiyeTayfun
+ RadiusCursorType = NUCLEARMISSILE
+ InvalidCursorName = GenericInvalid
+End
+
+CommandButton Command_TurkiyeTayfunFromShortcut
+ Command = SPECIAL_POWER_FROM_SHORTCUT
+ SpecialPower = SuperweaponTurkiyeTayfun
+ Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
+ TextLabel = CONTROLBAR:TurkiyeTayfun
+ ButtonImage = SNNukeLaunch
+ DescriptLabel = CONTROLBAR:TooltipTurkiyeTayfun
+ RadiusCursorType = NUCLEARMISSILE
+ InvalidCursorName = GenericInvalid
+End
+
+; ---- the upgrades and the unit the tree adds
+
+CommandButton Command_UpgradeTurkiyeTargetClassification
+ Command = PLAYER_UPGRADE
+ Upgrade = Upgrade_TurkiyeTargetClassification
+ TextLabel = CONTROLBAR:UpgradeTurkiyeTargetClassification
+ ButtonImage = SSCIA
+ ButtonBorderType = UPGRADE
+ DescriptLabel = CONTROLBAR:ToolTipUpgradeTurkiyeTargetClassification
+End
+
+CommandButton Command_UpgradeTurkiyeAkkor
+ Command = PLAYER_UPGRADE
+ Upgrade = Upgrade_TurkiyeAkkor
+ TextLabel = CONTROLBAR:UpgradeTurkiyeAkkor
+ ButtonImage = SAFlares
+ ButtonBorderType = UPGRADE
+ DescriptLabel = CONTROLBAR:ToolTipUpgradeTurkiyeAkkor
+End
+
+CommandButton Command_UpgradeTurkiyeGokdogan
+ Command = PLAYER_UPGRADE
+ Upgrade = Upgrade_TurkiyeGokdogan
+ TextLabel = CONTROLBAR:UpgradeTurkiyeGokdogan
+ ButtonImage = SSPlaneLaserMissiles
+ ButtonBorderType = UPGRADE
+ DescriptLabel = CONTROLBAR:ToolTipUpgradeTurkiyeGokdogan
+End
+
+CommandButton Command_UpgradeTurkiyeSiperReinforced
+ Command = PLAYER_UPGRADE
+ Upgrade = Upgrade_TurkiyeSiperReinforced
+ TextLabel = CONTROLBAR:UpgradeTurkiyeSiperReinforced
+ ButtonImage = SUEliteGrd
+ ButtonBorderType = UPGRADE
+ DescriptLabel = CONTROLBAR:ToolTipUpgradeTurkiyeSiperReinforced
+End
+
+CommandButton Command_ConstructTurkiyeVehicleMobileRadar
+ Command = UNIT_BUILD
+ Object = TurkiyeVehicleMobileRadar
+ TextLabel = CONTROLBAR:ConstructTurkiyeVehicleMobileRadar
+ ButtonImage = SURadarVan
+ ButtonBorderType = BUILD
+ DescriptLabel = CONTROLBAR:ToolTipTurkiyeVehicleMobileRadar
+End
+
CommandButton Command_UpgradeTurkiyeThermal
Command = PLAYER_UPGRADE
Upgrade = Upgrade_TurkiyeThermal
@@ -758,13 +922,6 @@ CommandButton Command_UpgradeTurkiyeSwarmSoftware
DescriptLabel = CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
End
-CommandButton Command_PurchaseScienceTurkiyeFuelResupply
- Command = PURCHASE_SCIENCE
- Science = SCIENCE_TurkiyeFuelResupply
- ButtonImage = SAsupplyline
- ButtonBorderType = UPGRADE
-End
-
CommandButton Command_PurchaseScienceTurkiyeSwarmMunition
Command = PURCHASE_SCIENCE
Science = SCIENCE_TurkiyeSwarmMunition
@@ -779,17 +936,11 @@ CommandButton Command_PurchaseScienceTurkiyeElectronicBlinding
ButtonBorderType = UPGRADE
End
-CommandButton Command_PurchaseScienceTurkiyeSwarmStrike
- Command = PURCHASE_SCIENCE
- Science = SCIENCE_TurkiyeSwarmStrike
- ButtonImage = SACDaisyCutter
- ButtonBorderType = UPGRADE
-End
-
CommandButton Command_TurkiyeSwarmMunition
Command = SPECIAL_POWER
SpecialPower = SuperweaponTurkiyeSwarmMunition
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
+ Science = SCIENCE_TurkiyeSwarmMunition SCIENCE_TurkiyeSwarmMunition2 SCIENCE_TurkiyeSwarmMunition3
TextLabel = CONTROLBAR:TurkiyeSwarmMunition
ButtonImage = SSA10Attack
ButtonBorderType = ACTION
@@ -832,43 +983,13 @@ CommandButton Command_TurkiyeElectronicBlindingFromShortcut
InvalidCursorName = GenericInvalid
End
-CommandButton Command_TurkiyeSwarmStrike
- Command = SPECIAL_POWER
- SpecialPower = SuperweaponTurkiyeSwarmStrike
- Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
- TextLabel = CONTROLBAR:TurkiyeSwarmStrike
- ButtonImage = SACDaisyCutter
- ButtonBorderType = ACTION
- DescriptLabel = CONTROLBAR:TooltipTurkiyeSwarmStrike
- RadiusCursorType = DAISYCUTTER
- InvalidCursorName = GenericInvalid
-End
-
-CommandButton Command_TurkiyeSwarmStrikeFromShortcut
- Command = SPECIAL_POWER_FROM_SHORTCUT
- SpecialPower = SuperweaponTurkiyeSwarmStrike
- Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
- TextLabel = CONTROLBAR:TurkiyeSwarmStrike
- ButtonImage = SACDaisyCutter
- DescriptLabel = CONTROLBAR:TooltipTurkiyeSwarmStrike
- RadiusCursorType = DAISYCUTTER
- InvalidCursorName = GenericInvalid
-End
-
-; Rank 3's rapid deployment and Rank 5's fire mission and commando raid, in place of the American
-; Paradrop, Leaflet Drop and Spectre gunship (SpecialPowerReforged.ini, TurkiyeReforged.ini).
+; Rank 3's Gokbey Indirmesi and Rank 5's commando raid, in place of the American Paradrop and
+; Spectre gunship (SpecialPowerReforged.ini, TurkiyeReforged.ini).
CommandButton Command_PurchaseScienceTurkiyeRapidDeployment
Command = PURCHASE_SCIENCE
Science = SCIENCE_TurkiyeRapidDeployment
- ButtonImage = SACParatroopers
- ButtonBorderType = UPGRADE
-End
-
-CommandButton Command_PurchaseScienceTurkiyeFireMission
- Command = PURCHASE_SCIENCE
- Science = SCIENCE_TurkiyeFireMission
- ButtonImage = SSBarrage
+ ButtonImage = SNParadrop
ButtonBorderType = UPGRADE
End
@@ -883,8 +1004,9 @@ CommandButton Command_TurkiyeRapidDeployment
Command = SPECIAL_POWER
SpecialPower = SuperweaponTurkiyeRapidDeployment
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
+ Science = SCIENCE_TurkiyeRapidDeployment SCIENCE_TurkiyeRapidDeployment2 SCIENCE_TurkiyeRapidDeployment3
TextLabel = CONTROLBAR:TurkiyeRapidDeployment
- ButtonImage = SACParatroopers
+ ButtonImage = SNParadrop
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipTurkiyeRapidDeployment
RadiusCursorType = PARADROP
@@ -896,35 +1018,12 @@ CommandButton Command_TurkiyeRapidDeploymentFromShortcut
SpecialPower = SuperweaponTurkiyeRapidDeployment
Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:TurkiyeRapidDeployment
- ButtonImage = SACParatroopers
+ ButtonImage = SNParadrop
DescriptLabel = CONTROLBAR:TooltipTurkiyeRapidDeployment
RadiusCursorType = PARADROP
InvalidCursorName = GenericInvalid
End
-CommandButton Command_TurkiyeFireMission
- Command = SPECIAL_POWER
- SpecialPower = SuperweaponTurkiyeFireMission
- Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
- TextLabel = CONTROLBAR:TurkiyeFireMission
- ButtonImage = SSBarrage
- ButtonBorderType = ACTION
- DescriptLabel = CONTROLBAR:TooltipTurkiyeFireMission
- RadiusCursorType = ARTILLERYBARRAGE
- InvalidCursorName = GenericInvalid
-End
-
-CommandButton Command_TurkiyeFireMissionFromShortcut
- Command = SPECIAL_POWER_FROM_SHORTCUT
- SpecialPower = SuperweaponTurkiyeFireMission
- Options = NEED_SPECIAL_POWER_SCIENCE NEED_TARGET_POS CONTEXTMODE_COMMAND
- TextLabel = CONTROLBAR:TurkiyeFireMission
- ButtonImage = SSBarrage
- DescriptLabel = CONTROLBAR:TooltipTurkiyeFireMission
- RadiusCursorType = ARTILLERYBARRAGE
- InvalidCursorName = GenericInvalid
-End
-
CommandButton Command_TurkiyeCommandoRaid
Command = SPECIAL_POWER
SpecialPower = SuperweaponTurkiyeCommandoRaid
@@ -1136,14 +1235,13 @@ End
CommandSet TurkiyeCommandCenterCommandSet
1 = Command_ConstructTurkiyeInfantryEngineer
- 2 = Command_TurkiyeMinefield
- 3 = Command_SpyDrone
- 4 = Command_TurkiyeSwarmMunition
+ 2 = Command_TurkiyeUavRecon
+ 3 = Command_TurkiyeSwarmMunition
+ 4 = Command_TurkiyeRapidDeployment
5 = Command_TurkiyeElectronicBlinding
- 6 = Command_TurkiyeRapidDeployment
- 7 = Command_TurkiyeSwarmStrike
- 8 = Command_TurkiyeFireMission
- 9 = Command_TurkiyeCommandoRaid
+ 6 = Command_TurkiyeSatelliteGuidance
+ 7 = Command_TurkiyeTayfun
+ 8 = Command_TurkiyeCommandoRaid
13 = Command_SetRallyPoint
14 = Command_Sell
End
@@ -1163,10 +1261,12 @@ CommandSet TurkiyeBarracksCommandSet
7 = Command_UpgradeTurkiyeMineKit
8 = Command_UpgradeTurkiyeThermal
9 = Command_UpgradeAmericaRangerCaptureBuilding
+ 10 = Command_UpgradeTurkiyeSiperReinforced
13 = Command_SetRallyPoint
14 = Command_Sell
End
+; The supply truck is the Supply Center's alone now; its slot here went to the Mobile Radar.
CommandSet TurkiyeWarFactoryCommandSet
1 = Command_ConstructTurkiyeVehicleCobra
2 = Command_ConstructTurkiyeVehicleKirpi
@@ -1175,10 +1275,11 @@ CommandSet TurkiyeWarFactoryCommandSet
5 = Command_ConstructTurkiyeVehicleFirtina
6 = Command_ConstructTurkiyeVehicleSakarya
7 = Command_ConstructTurkiyeTankKoral
- 8 = Command_ConstructTurkiyeVehicleSupplyTruck
+ 8 = Command_ConstructTurkiyeVehicleMobileRadar
9 = Command_UpgradeTurkiyeExtendedRange
10 = Command_UpgradeTurkiyePrecisionGuidance
11 = Command_UpgradeTurkiyeArmorPack
+ 12 = Command_UpgradeTurkiyeAkkor
13 = Command_SetRallyPoint
14 = Command_Sell
End
@@ -1190,42 +1291,53 @@ CommandSet TurkiyeAirfieldCommandSet
4 = Command_ConstructTurkiyeJetKizilelma
7 = Command_UpgradeTurkiyeFuelCell
8 = Command_UpgradeTurkiyeSwarmSoftware
+ 9 = Command_UpgradeTurkiyeGokdogan
13 = Command_SetRallyPoint
14 = Command_Sell
End
-; The rank tree is the plan's section 7. Rank 1: the minefield, the UAV fuel resupply and the Spy
-; Drone as the recon flight. Rank 3: the swarm munition, the electronic blinding and the rapid
-; deployment. The third column (Rank 8 in EA's naming) holds the swarm strike where America has
-; the Daisy Cutter, the fire mission and the commando raid.
+CommandSet TurkiyeRadarTowerCommandSet
+ 1 = Command_UpgradeTurkiyeTargetClassification
+ 14 = Command_Sell
+End
+
+; The rank tree (ScienceReforged.ini). Rank 1: Laser Designation, Early Warning and UAV Recon.
+; Rank 3 lays out in five columns of three (1 4 7 10 13 across the top), a column one tier chain:
+; the Mobile Radar, Akinci AESA, the UAV Swarm's three, Gokbey Landing's three and Electronic
+; Warfare. Rank 5 (EA's Rank 8 window): Satellite Guidance, Tayfun and the commando raid.
CommandSet SCIENCE_Turkiye_CommandSetRank1
- 1 = Command_PurchaseScienceTurkiyeMinefield
- 2 = Command_PurchaseScienceTurkiyeFuelResupply
- 3 = Command_PurchaseScienceSpyDrone
+ 1 = Command_PurchaseScienceTurkiyeLaserDesignation
+ 2 = Command_PurchaseScienceTurkiyeEarlyWarning
+ 3 = Command_PurchaseScienceTurkiyeUavRecon
End
CommandSet SCIENCE_Turkiye_CommandSetRank3
- 1 = Command_PurchaseScienceTurkiyeSwarmMunition
- 2 = Command_PurchaseScienceTurkiyeElectronicBlinding
- 3 = Command_PurchaseScienceTurkiyeRapidDeployment
+ 1 = Command_PurchaseScienceTurkiyeMobileRadar
+ 4 = Command_PurchaseScienceTurkiyeAkinciAesa
+ 7 = Command_PurchaseScienceTurkiyeSwarmMunition
+ 8 = Command_PurchaseScienceTurkiyeSwarmMunition2
+ 9 = Command_PurchaseScienceTurkiyeSwarmMunition3
+ 10 = Command_PurchaseScienceTurkiyeRapidDeployment
+ 11 = Command_PurchaseScienceTurkiyeRapidDeployment2
+ 12 = Command_PurchaseScienceTurkiyeRapidDeployment3
+ 13 = Command_PurchaseScienceTurkiyeElectronicBlinding
End
CommandSet SCIENCE_Turkiye_CommandSetRank8
- 1 = Command_PurchaseScienceTurkiyeSwarmStrike
- 2 = Command_PurchaseScienceTurkiyeFireMission
+ 1 = Command_PurchaseScienceTurkiyeSatelliteGuidance
+ 2 = Command_PurchaseScienceTurkiyeTayfun
3 = Command_PurchaseScienceTurkiyeCommandoRaid
4 = Command_FAKECOMMAND_PurchaseScienceMOAB ; the slot has to exist; the button is SCRIPT_ONLY and hidden
End
CommandSet SpecialPowerShortcutTurkiye
- 1 = Command_SpyDroneFromShortcut
- 2 = Command_TurkiyeMinefieldFromShortcut
- 3 = Command_TurkiyeSwarmMunitionFromShortcut
+ 1 = Command_TurkiyeUavReconFromShortcut
+ 2 = Command_TurkiyeSwarmMunitionFromShortcut
+ 3 = Command_TurkiyeRapidDeploymentFromShortcut
4 = Command_TurkiyeElectronicBlindingFromShortcut
- 5 = Command_TurkiyeRapidDeploymentFromShortcut
- 6 = Command_TurkiyeSwarmStrikeFromShortcut
- 7 = Command_TurkiyeFireMissionFromShortcut
- 8 = Command_TurkiyeCommandoRaidFromShortcut
- 9 = Command_TurkiyeKarguSwarmFromShortcut
+ 5 = Command_TurkiyeSatelliteGuidanceFromShortcut
+ 6 = Command_TurkiyeTayfunFromShortcut
+ 7 = Command_TurkiyeCommandoRaidFromShortcut
+ 8 = Command_TurkiyeKarguSwarmFromShortcut
End
diff --git a/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedReconHud.ini b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedReconHud.ini
new file mode 100644
index 000000000..fdb931494
--- /dev/null
+++ b/GeneralsMD/Code/Data/INI/MappedImages/HandCreated/ReforgedReconHud.ini
@@ -0,0 +1,75 @@
+; The SIHA recon marks' 2D pieces (GameClient/RadarContactMarks.cpp). Written by
+; Tools/recon_marks.py with Art/Textures/ReforgedReconHud.tga; do not edit by hand. Mapped
+; images are not in the multiplayer INI checksum.
+
+MappedImage ReforgedReconGlyphInfantry
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:0 Top:0 Right:32 Bottom:32
+ Status = NONE
+End
+
+MappedImage ReforgedReconGlyphVehicle
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:32 Top:0 Right:64 Bottom:32
+ Status = NONE
+End
+
+MappedImage ReforgedReconGlyphAntiAir
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:64 Top:0 Right:96 Bottom:32
+ Status = NONE
+End
+
+MappedImage ReforgedReconGlyphArtillery
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:96 Top:0 Right:128 Bottom:32
+ Status = NONE
+End
+
+MappedImage ReforgedReconGlyphAircraft
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:128 Top:0 Right:160 Bottom:32
+ Status = NONE
+End
+
+MappedImage ReforgedReconGlyphDefence
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:160 Top:0 Right:192 Bottom:32
+ Status = NONE
+End
+
+MappedImage ReforgedReconChip
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:320 Top:0 Right:384 Bottom:48
+ Status = NONE
+End
+
+MappedImage ReforgedReconTray
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:0 Top:48 Right:264 Bottom:112
+ Status = NONE
+End
+
+MappedImage ReforgedReconBar
+ Texture = ReforgedReconHud.tga
+ TextureWidth = 512
+ TextureHeight = 128
+ Coords = Left:280 Top:52 Right:296 Bottom:60
+ Status = NONE
+End
diff --git a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini
index ba0d6d8ed..50f6c4cf0 100644
--- a/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ObjectCreationListReforged.ini
@@ -2,38 +2,126 @@
; ObjectCreationList.ini with INI_LOAD_OVERWRITE, so a list named here is cleared and replaced
; whole and a new name is added. It lands in the multiplayer INI CRC.
-; ==== Turkiye minefield ============================================================================
+; ==== Turkiye radar powers =========================================================================
-; China's Cluster Mines drop from the American cargo plane. ThingFactory::newObject turns the plane,
-; the bomb and the mines it sows into Turkiye's copies (TurkiyeReforged.ini).
+; The markers the radar powers leave where they are aimed (TurkiyeReforged.ini): an object owned by
+; the firing player that carries a RadarCoverageBehavior and nothing that sees, so the fog stays.
+; SIHA Kesfi's at the point, Uydu Gudum's wherever the button puts it (its radius covers any map).
-ObjectCreationList SUPERWEAPON_TurkiyeMinefield
+ObjectCreationList SUPERWEAPON_TurkiyeUavRecon
+ CreateObject
+ ObjectNames = TurkiyeUavReconMarker
+ Count = 1
+ End
+End
+
+ObjectCreationList SUPERWEAPON_TurkiyeSatelliteGuidance
+ CreateObject
+ ObjectNames = TurkiyeSatelliteGuidanceMarker
+ Count = 1
+ End
+End
+
+; Elektronik Harp's jamming field, Koral's JammerUpdate over the target area for 30 seconds, put down
+; at the target point by the Command Center's RadarJamSpecialPower (TurkiyeReforged.ini).
+ObjectCreationList SUPERWEAPON_TurkiyeElectronicWarfare
+ CreateObject
+ ObjectNames = TurkiyeElectronicWarfareMarker
+ Count = 1
+ End
+End
+
+; Tayfun: the Superweapon General's cruise missile path (SUPERWEAPON_CruiseMissile), fired from the
+; Command Center. TurkiyeTayfunLaunch is radar-guided (TurkiyeWeaponReforged.ini).
+ObjectCreationList SUPERWEAPON_TurkiyeTayfun
+ FireWeapon
+ Weapon = TurkiyeTayfunLaunch
+ End
+End
+
+; ==== Turkiye rapid deployment and commando raid ==================================================
+
+; The American paradrop's plane and chutes, which newObject turns into Turkiye's, with Turkiye's
+; own men aboard. Gokbey Indirmesi's three tiers are six, ten and fourteen men, rifles and anti-tank
+; gunners near two to one, and the third tier's second plane brings a Kirpi under a large chute.
+; The commando raid is a Maroon Beret with two spotter teams.
+
+ObjectCreationList SUPERWEAPON_TurkiyeRapidDeployment3
DeliverPayload
- Transport = AmericaJetCargoPlane
- StartAtPreferredHeight = Yes
- StartAtMaxSpeed = Yes
- MaxAttempts = 4
- DropOffset = X:0 Y:0 Z:-2
- DropVariance = X:20 Y:20 Z:0
- Payload = ClusterMinesBomb 1
- DeliveryDistance = 140
- DeliveryDecalRadius = 100
+ Transport = AmericaJetCargoPlane
+ StartAtPreferredHeight = Yes
+ StartAtMaxSpeed = Yes
+ MaxAttempts = 4
+ DropOffset = X:0 Y:0 Z:-10
+ DropDelay = 100
+ ParachuteDirectly = Yes
+ PutInContainer = AmericaParachute
+ Payload = TurkiyeInfantryMehmetcik 10
+ Payload = TurkiyeInfantrySungur 4
+ DeliveryDistance = 0
+ PreOpenDistance = 300
+ DeliveryDecalRadius = 50
DeliveryDecal
- Texture = SCCClusterMines_China
+ Texture = SCCParadrop_USA
Style = SHADOW_ALPHA_DECAL
OpacityMin = 25%
OpacityMax = 50%
OpacityThrobTime = 500
- Color = R:255 G:156 B:0 A:255
+ Color = R:227 G:229 B:22 A:255
+ OnlyVisibleToOwningPlayer = Yes
+ End
+ End
+ DeliverPayload
+ Transport = AmericaJetCargoPlane
+ StartAtPreferredHeight = Yes
+ StartAtMaxSpeed = No
+ MaxAttempts = 4
+ DropOffset = X:0 Y:0 Z:-10
+ DropDelay = 150
+ ParachuteDirectly = No
+ PutInContainer = LargeParachute
+ Payload = TurkiyeVehicleKirpi 1
+ DeliveryDistance = 0
+ PreOpenDistance = 300
+ DeliveryDecalRadius = 50
+ DeliveryDecal
+ Texture = SCCParadrop_USA
+ Style = SHADOW_ALPHA_DECAL
+ OpacityMin = 25%
+ OpacityMax = 50%
+ OpacityThrobTime = 500
+ Color = R:227 G:229 B:22 A:255
OnlyVisibleToOwningPlayer = Yes
End
End
End
-; ==== Turkiye rapid deployment and commando raid ==================================================
-
-; The American paradrop's plane and chutes, which newObject turns into Turkiye's, with Turkiye's
-; own men aboard: a rifle and anti-tank squad, and a Maroon Beret with two spotter teams.
+ObjectCreationList SUPERWEAPON_TurkiyeRapidDeployment2
+ DeliverPayload
+ Transport = AmericaJetCargoPlane
+ StartAtPreferredHeight = Yes
+ StartAtMaxSpeed = Yes
+ MaxAttempts = 4
+ DropOffset = X:0 Y:0 Z:-10
+ DropDelay = 100
+ ParachuteDirectly = Yes
+ PutInContainer = AmericaParachute
+ Payload = TurkiyeInfantryMehmetcik 7
+ Payload = TurkiyeInfantrySungur 3
+ DeliveryDistance = 0
+ PreOpenDistance = 300
+ DeliveryDecalRadius = 50
+ DeliveryDecal
+ Texture = SCCParadrop_USA
+ Style = SHADOW_ALPHA_DECAL
+ OpacityMin = 25%
+ OpacityMax = 50%
+ OpacityThrobTime = 500
+ Color = R:227 G:229 B:22 A:255
+ OnlyVisibleToOwningPlayer = Yes
+ End
+ End
+End
ObjectCreationList SUPERWEAPON_TurkiyeRapidDeployment
DeliverPayload
@@ -45,7 +133,7 @@ ObjectCreationList SUPERWEAPON_TurkiyeRapidDeployment
DropDelay = 100
ParachuteDirectly = Yes
PutInContainer = AmericaParachute
- Payload = TurkiyeInfantryMehmetcik 6
+ Payload = TurkiyeInfantryMehmetcik 4
Payload = TurkiyeInfantrySungur 2
DeliveryDistance = 0
PreOpenDistance = 300
diff --git a/GeneralsMD/Code/Data/INI/ScienceReforged.ini b/GeneralsMD/Code/Data/INI/ScienceReforged.ini
index b234edd20..4a3136655 100644
--- a/GeneralsMD/Code/Data/INI/ScienceReforged.ini
+++ b/GeneralsMD/Code/Data/INI/ScienceReforged.ini
@@ -42,29 +42,64 @@ Science SCIENCE_Turkiye
IsGrantable = No
End
-; Turkiye's first rank power of its own: a cargo plane sows a minefield (the plan's Rank 1 mayin
-; tarlasi). China's Cluster Mines asks for SCIENCE_CHINA, so Turkiye gets its own science for it.
+; Turkiye's rank tree is a radar army's: every tier 1 is one point, and a column of three is EA's
+; chained tier pattern (each tier asks for the one before it). Passives are sciences that grant a
+; free player upgrade at purchase (GrantsUpgrade); the radar modules in TurkiyeReforged.ini key on
+; those upgrades.
-Science SCIENCE_TurkiyeMinefield
+; ---- Rank 1 ----
+
+; Spotter Teams and Bayraktars paint their target, which then counts as radar coverage
+Science SCIENCE_TurkiyeLaserDesignation
PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank1
SciencePurchasePointCost = 1
IsGrantable = Yes
- DisplayName = SCIENCE:TurkiyeMinefield
- Description = CONTROLBAR:ToolTipTurkiyeScienceMinefield
+ DisplayName = SCIENCE:TurkiyeLaserDesignation
+ Description = CONTROLBAR:ToolTipTurkiyeScienceLaserDesignation
+ GrantsUpgrade = Upgrade_TurkiyeLaserDesignation
End
-; Rank 1's fuel resupply is an upgrade, not a power: GrantsUpgrade completes the player upgrade the
-; moment the science is bought, and the drones' weapon set upgrades take it from there.
+; every Turkiye radar reaches a quarter further
+Science SCIENCE_TurkiyeEarlyWarning
+ PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank1
+ SciencePurchasePointCost = 1
+ IsGrantable = Yes
+ DisplayName = SCIENCE:TurkiyeEarlyWarning
+ Description = CONTROLBAR:ToolTipTurkiyeScienceEarlyWarning
+ GrantsUpgrade = Upgrade_TurkiyeEarlyWarning
+End
-Science SCIENCE_TurkiyeFuelResupply
+; SIHA Kesfi: 30 seconds of a recon area that reports parked enemies too
+Science SCIENCE_TurkiyeUavRecon
PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank1
SciencePurchasePointCost = 1
IsGrantable = Yes
- DisplayName = SCIENCE:TurkiyeFuelResupply
- Description = CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
- GrantsUpgrade = Upgrade_TurkiyeFuelResupply
+ DisplayName = SCIENCE:TurkiyeUavRecon
+ Description = CONTROLBAR:ToolTipTurkiyeScienceUavRecon
+End
+
+; ---- Rank 3 ----
+
+; opens the Mobile Radar at the Factory
+Science SCIENCE_TurkiyeMobileRadar
+ PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank3
+ SciencePurchasePointCost = 1
+ IsGrantable = Yes
+ DisplayName = SCIENCE:TurkiyeMobileRadar
+ Description = CONTROLBAR:ToolTipTurkiyeScienceMobileRadar
+End
+
+; the Akinci's radar from 750 to 1000
+Science SCIENCE_TurkiyeAkinciAesa
+ PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank3
+ SciencePurchasePointCost = 1
+ IsGrantable = Yes
+ DisplayName = SCIENCE:TurkiyeAkinciAesa
+ Description = CONTROLBAR:ToolTipTurkiyeScienceAkinciAesa
+ GrantsUpgrade = Upgrade_TurkiyeAkinciAesa
End
+; SIHA Surusu: one, three and five loitering munitions (SwarmStrikeSpecialPower UpgradeTargetCount)
Science SCIENCE_TurkiyeSwarmMunition
PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank3
SciencePurchasePointCost = 1
@@ -73,24 +108,23 @@ Science SCIENCE_TurkiyeSwarmMunition
Description = CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
End
-Science SCIENCE_TurkiyeElectronicBlinding
- PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank3
+Science SCIENCE_TurkiyeSwarmMunition2
+ PrerequisiteSciences = SCIENCE_TurkiyeSwarmMunition SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
- DisplayName = SCIENCE:TurkiyeElectronicBlinding
- Description = CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
+ DisplayName = SCIENCE:TurkiyeSwarmMunition2
+ Description = CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
End
-Science SCIENCE_TurkiyeSwarmStrike
- PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank5
+Science SCIENCE_TurkiyeSwarmMunition3
+ PrerequisiteSciences = SCIENCE_TurkiyeSwarmMunition2 SCIENCE_Rank3
SciencePurchasePointCost = 1
IsGrantable = Yes
- DisplayName = SCIENCE:TurkiyeSwarmStrike
- Description = CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
+ DisplayName = SCIENCE:TurkiyeSwarmMunition3
+ Description = CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
End
-; Turkiye's own in place of the American Paradrop, Leaflet Drop and Spectre gunship it used to buy.
-
+; Gokbey Indirmesi: six, ten and fourteen troops, the third with a Kirpi (OCLSpecialPower UpgradeOCL)
Science SCIENCE_TurkiyeRapidDeployment
PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank3
SciencePurchasePointCost = 1
@@ -99,14 +133,52 @@ Science SCIENCE_TurkiyeRapidDeployment
Description = CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
End
-Science SCIENCE_TurkiyeFireMission
+Science SCIENCE_TurkiyeRapidDeployment2
+ PrerequisiteSciences = SCIENCE_TurkiyeRapidDeployment SCIENCE_Rank3
+ SciencePurchasePointCost = 1
+ IsGrantable = Yes
+ DisplayName = SCIENCE:TurkiyeRapidDeployment2
+ Description = CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
+End
+
+Science SCIENCE_TurkiyeRapidDeployment3
+ PrerequisiteSciences = SCIENCE_TurkiyeRapidDeployment2 SCIENCE_Rank3
+ SciencePurchasePointCost = 1
+ IsGrantable = Yes
+ DisplayName = SCIENCE:TurkiyeRapidDeployment3
+ Description = CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
+End
+
+; Elektronik Harp
+Science SCIENCE_TurkiyeElectronicBlinding
+ PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank3
+ SciencePurchasePointCost = 1
+ IsGrantable = Yes
+ DisplayName = SCIENCE:TurkiyeElectronicBlinding
+ Description = CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
+End
+
+; ---- Rank 5 (EA's Rank 8 window) ----
+
+; Uydu Gudum: 45 seconds of the whole map as radar coverage
+Science SCIENCE_TurkiyeSatelliteGuidance
+ PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank5
+ SciencePurchasePointCost = 1
+ IsGrantable = Yes
+ DisplayName = SCIENCE:TurkiyeSatelliteGuidance
+ Description = CONTROLBAR:ToolTipTurkiyeScienceSatelliteGuidance
+End
+
+; a radar-guided ballistic missile at a point
+Science SCIENCE_TurkiyeTayfun
PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank5
SciencePurchasePointCost = 1
IsGrantable = Yes
- DisplayName = SCIENCE:TurkiyeFireMission
- Description = CONTROLBAR:ToolTipTurkiyeScienceFireMission
+ DisplayName = SCIENCE:TurkiyeTayfun
+ Description = CONTROLBAR:ToolTipTurkiyeScienceTayfun
End
+; Bordo Bere Baskini
Science SCIENCE_TurkiyeCommandoRaid
PrerequisiteSciences = SCIENCE_Turkiye SCIENCE_Rank5
SciencePurchasePointCost = 1
diff --git a/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini b/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini
index 233f94201..aca4e96eb 100644
--- a/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini
+++ b/GeneralsMD/Code/Data/INI/SpecialPowerReforged.ini
@@ -32,26 +32,28 @@ SpecialPower Demo_SuperweaponRebelAmbush
AcademyClassify = ACT_SUPERPOWER
End
-; Turkiye's minefield: China's Cluster Mines behind Turkiye's own science (ScienceReforged.ini).
-
-SpecialPower SuperweaponTurkiyeMinefield
- Enum = SPECIAL_CLUSTER_MINES
- ReloadTime = 240000
- RequiredScience = SCIENCE_TurkiyeMinefield
- PublicTimer = No
- SharedSyncedTimer = Yes
- ViewObjectDuration = 30000
- ViewObjectRange = 250
- RadiusCursorRadius = 100
- ShortcutPower = Yes
- AcademyClassify = ACT_SUPERPOWER
- AIFiresWhenReady = Yes
-End
-
; Turkiye's own rank powers. The Enum only has to be one no other power on the Turkiye Command
-; Center uses; what the power does is its module (TurkiyeReforged.ini). AIFiresWhenReady lets the
-; skirmish AI, which runs America's scripts, fire them (AIPlayer::doReadySpecialPowers).
+; Center uses (and no other Turkiye object, since the shortcut bar finds a power's source by its
+; enum); what the power does is its module (TurkiyeReforged.ini). AIFiresWhenReady lets the
+; skirmish AI, which runs America's scripts, fire them (AIPlayer::doReadySpecialPowers) at the
+; dearest enemy spot. The radar powers leave the fog as it is.
+
+; SIHA Kesfi: a recon area, 300 across, for 30 seconds. The spy satellite's enum, which can be aimed
+; anywhere on the map, shroud or not; the Turkiye Command Center no longer carries the scan.
+SpecialPower SuperweaponTurkiyeUavRecon
+ Enum = SPECIAL_SPY_SATELLITE
+ ReloadTime = 120000
+ RequiredScience = SCIENCE_TurkiyeUavRecon
+ InitiateAtLocationSound = SpySatellite
+ PublicTimer = No
+ SharedSyncedTimer = Yes
+ RadiusCursorRadius = 300
+ ShortcutPower = Yes
+ AcademyClassify = ACT_SUPERPOWER
+ AIFiresWhenReady = Yes
+End
+; SIHA Surusu, one to five loitering munitions on the dearest targets in the circle
SpecialPower SuperweaponTurkiyeSwarmMunition
Enum = SPECIAL_ARTILLERY_BARRAGE
ReloadTime = 180000
@@ -60,39 +62,57 @@ SpecialPower SuperweaponTurkiyeSwarmMunition
SharedSyncedTimer = Yes
ViewObjectDuration = 10000
ViewObjectRange = 200
- RadiusCursorRadius = 150
+ RadiusCursorRadius = 200
ShortcutPower = Yes
AcademyClassify = ACT_SUPERPOWER
AIFiresWhenReady = Yes
End
-SpecialPower SuperweaponTurkiyeElectronicBlinding
- Enum = SPECIAL_EMP_PULSE
- ReloadTime = 240000
- RequiredScience = SCIENCE_TurkiyeElectronicBlinding
+; Uydu Gudum: no target, the whole map is radar coverage for 45 seconds. CIA Intelligence's enum,
+; the one no-target power the click path knows (ActionManager::canDoSpecialPower); the Harekat
+; Merkezi drops the CIA module it inherits from the Strategy Center so the shortcut finds this one.
+SpecialPower SuperweaponTurkiyeSatelliteGuidance
+ Enum = SPECIAL_CIA_INTELLIGENCE
+ ReloadTime = 300000
+ RequiredScience = SCIENCE_TurkiyeSatelliteGuidance
+ InitiateSound = CIAIntelligenceActivate
PublicTimer = No
SharedSyncedTimer = Yes
- RadiusCursorRadius = 300
ShortcutPower = Yes
AcademyClassify = ACT_SUPERPOWER
AIFiresWhenReady = Yes
End
-SpecialPower SuperweaponTurkiyeSwarmStrike
- Enum = SPECIAL_ANTHRAX_BOMB
- ReloadTime = 360000
- RequiredScience = SCIENCE_TurkiyeSwarmStrike
+; Tayfun: the Superweapon General's cruise missile path with its own missile and warhead. The napalm
+; strike's enum: aimed at a location, refused in the shroud, carried by nothing Turkish.
+SpecialPower SuperweaponTurkiyeTayfun
+ Enum = SPECIAL_NAPALM_STRIKE
+ ReloadTime = 240000
+ RequiredScience = SCIENCE_TurkiyeTayfun
+ InitiateSound = AirRaidSiren
+ InitiateAtLocationSound = AirRaidSiren
+ PublicTimer = No
+ SharedSyncedTimer = Yes
+ RadiusCursorRadius = 100
+ ShortcutPower = Yes
+ AcademyClassify = ACT_SUPERPOWER
+ AIFiresWhenReady = Yes
+End
+
+SpecialPower SuperweaponTurkiyeElectronicBlinding
+ Enum = SPECIAL_EMP_PULSE
+ ReloadTime = 240000
+ RequiredScience = SCIENCE_TurkiyeElectronicBlinding
PublicTimer = No
SharedSyncedTimer = Yes
- ViewObjectDuration = 15000
- ViewObjectRange = 400
- RadiusCursorRadius = 400
+ RadiusCursorRadius = 300
ShortcutPower = Yes
AcademyClassify = ACT_SUPERPOWER
AIFiresWhenReady = Yes
End
-; Rapid deployment: six Mehmetcik and two Sungur by parachute (ObjectCreationListReforged.ini).
+; Gokbey Indirmesi: six, ten or fourteen troops by parachute, the third tier with a Kirpi
+; (ObjectCreationListReforged.ini).
; The enum is the Infantry General's paradrop, which nothing of Turkiye's uses, so the drop gets the
; paradrop's no-water check.
@@ -108,25 +128,7 @@ SpecialPower SuperweaponTurkiyeRapidDeployment
AIFiresWhenReady = Yes
End
-; The fire mission: China's 36-shell artillery barrage. The battleship enum is used by nothing a
-; Turkiye Command Center carries and is one the shroud check treats as a damaging power.
-
-SpecialPower SuperweaponTurkiyeFireMission
- Enum = SPECIAL_BATTLESHIP_BOMBARDMENT
- ReloadTime = 240000
- RequiredScience = SCIENCE_TurkiyeFireMission
- InitiateSound = FireArtilleryCannonSound
- PublicTimer = No
- SharedSyncedTimer = Yes
- ViewObjectDuration = 20000
- ViewObjectRange = 250
- RadiusCursorRadius = 125
- ShortcutPower = Yes
- AcademyClassify = ACT_SUPERPOWER
- AIFiresWhenReady = Yes
-End
-
-; The commando raid: a Maroon Beret and two spotter teams by parachute.
+; Bordo Bere Baskini: a Maroon Beret and two spotter teams by parachute.
SpecialPower SuperweaponTurkiyeCommandoRaid
Enum = SPECIAL_TANK_PARADROP
diff --git a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
index ae636c7c4..687b3180f 100644
--- a/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
+++ b/GeneralsMD/Code/Data/INI/TurkiyeReforged.ini
@@ -31,57 +31,88 @@ Object TurkiyeCommandCenter
Side = Turkiye
DisplayName = OBJECT:TurkiyeCommandCenter
CommandSet = TurkiyeCommandCenterCommandSet
- ; the radar circle the faction's rockets keep their lock in (TurkiyeWeaponReforged.ini)
+ ; the radar circle the faction's rockets keep their lock in (TurkiyeWeaponReforged.ini). Every
+ ; Turkiye radar takes Erken Ihbar's quarter and the Radar Tower's Hedef Siniflandirma.
AddModule
Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
- Radius = 600
+ Radius = 600
+ RadiusUpgrade = Upgrade_TurkiyeEarlyWarning 1.25
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
End
End
- ; the Rank 1 minefield (ScienceReforged.ini, SpecialPowerReforged.ini)
+ ; The rank powers (ScienceReforged.ini, SpecialPowerReforged.ini). A power's enum is one per
+ ; object, so the American powers whose enums these take go: the Daisy Cutter (20), the Spy Drone
+ ; (21), the spy satellite scan (24), the crate drop (25), the A-10 (26), Emergency Repair (27), the
+ ; Spectre (32, 33) and the leaflet drop (34). None had a Turkiye button.
+ RemoveModule ModuleTag_20
+ RemoveModule ModuleTag_21
+ RemoveModule ModuleTag_24
+ RemoveModule ModuleTag_25
+ RemoveModule ModuleTag_26
+ RemoveModule ModuleTag_27
+ RemoveModule ModuleTag_32
+ RemoveModule ModuleTag_33
+ RemoveModule ModuleTag_34
+ ; Rank 1, SIHA Kesfi: a recon marker at the point
AddModule
- Behavior = OCLSpecialPower ModuleTag_TurkiyeMinefield
- SpecialPowerTemplate = SuperweaponTurkiyeMinefield
- OCL = SUPERWEAPON_TurkiyeMinefield
- CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
+ Behavior = OCLSpecialPower ModuleTag_TurkiyeUavRecon
+ SpecialPowerTemplate = SuperweaponTurkiyeUavRecon
+ OCL = SUPERWEAPON_TurkiyeUavRecon
+ CreateLocation = CREATE_AT_LOCATION
End
End
- ; Rank 3: one loitering munition on the dearest target in a small circle, and the radar blackout
+ ; Rank 3, SIHA Surusu: one, three or five loitering munitions on the dearest targets in the circle
AddModule
Behavior = SwarmStrikeSpecialPower ModuleTag_TurkiyeSwarmMunition
SpecialPowerTemplate = SuperweaponTurkiyeSwarmMunition
- Radius = 150
+ Radius = 200
TargetCount = 1
+ UpgradeTargetCount = SCIENCE_TurkiyeSwarmMunition3 5
+ UpgradeTargetCount = SCIENCE_TurkiyeSwarmMunition2 3
Weapon = TurkiyeSwarmMunitionWeapon
TargetFX = WeaponFX_ComancheAntiTankMissileDetonation
End
End
+ ; Rank 3, Elektronik Harp: every enemy with a building in the circle loses its radar for 30 s, and
+ ; the circle is jammed as long: enemy drones and spotters in it go blind and guided missiles lose
+ ; their lock (TurkiyeElectronicWarfareMarker, below)
AddModule
Behavior = RadarJamSpecialPower ModuleTag_TurkiyeElectronicBlinding
SpecialPowerTemplate = SuperweaponTurkiyeElectronicBlinding
Radius = 300
Duration = 30000
FX = WeaponFX_EMPPulseImpact
+ OCL = SUPERWEAPON_TurkiyeElectronicWarfare
End
End
- ; Rank 5: the swarm, one munition on each of the ten dearest targets in a wide circle
+ ; Rank 3, Gokbey Indirmesi, in the American paradrop's place
+ ReplaceModule ModuleTag_22
+ Behavior = OCLSpecialPower ModuleTag_22_Turkiye
+ SpecialPowerTemplate = SuperweaponTurkiyeRapidDeployment
+ UpgradeOCL = SCIENCE_TurkiyeRapidDeployment3 SUPERWEAPON_TurkiyeRapidDeployment3
+ UpgradeOCL = SCIENCE_TurkiyeRapidDeployment2 SUPERWEAPON_TurkiyeRapidDeployment2
+ OCL = SUPERWEAPON_TurkiyeRapidDeployment
+ CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
+ OCLAdjustPositionToPassable = Yes
+ End
+ End
+ ; Rank 5, Uydu Gudum: no target; its marker covers the whole map
AddModule
- Behavior = SwarmStrikeSpecialPower ModuleTag_TurkiyeSwarmStrike
- SpecialPowerTemplate = SuperweaponTurkiyeSwarmStrike
- Radius = 400
- TargetCount = 10
- Weapon = TurkiyeSwarmStrikeWeapon
- TargetFX = WeaponFX_ComancheAntiTankMissileDetonation
+ Behavior = OCLSpecialPower ModuleTag_TurkiyeSatelliteGuidance
+ SpecialPowerTemplate = SuperweaponTurkiyeSatelliteGuidance
+ OCL = SUPERWEAPON_TurkiyeSatelliteGuidance
+ CreateLocation = CREATE_AT_LOCATION
End
End
- ; Rank 5's fire mission, China's heaviest artillery barrage fired from off the map
+ ; Rank 5, Tayfun: a ballistic missile out of the Command Center
AddModule
- Behavior = OCLSpecialPower ModuleTag_TurkiyeFireMission
- SpecialPowerTemplate = SuperweaponTurkiyeFireMission
- OCL = SUPERWEAPON_ArtilleryBarrage3
- CreateLocation = CREATE_AT_EDGE_FARTHEST_FROM_TARGET
+ Behavior = OCLSpecialPower ModuleTag_TurkiyeTayfun
+ SpecialPowerTemplate = SuperweaponTurkiyeTayfun
+ OCL = SUPERWEAPON_TurkiyeTayfun
+ CreateLocation = CREATE_AT_LOCATION
End
End
- ; Rank 5's commando raid: a Maroon Beret and two spotter teams by parachute, an eye behind the lines
+ ; Rank 5, Bordo Bere Baskini: a Maroon Beret and two spotter teams by parachute, an eye behind the lines
AddModule
Behavior = OCLSpecialPower ModuleTag_TurkiyeCommandoRaid
SpecialPowerTemplate = SuperweaponTurkiyeCommandoRaid
@@ -90,20 +121,6 @@ Object TurkiyeCommandCenter
OCLAdjustPositionToPassable = Yes
End
End
- ; Rank 3's rapid deployment takes the American paradrop's place; the free spy satellite scan, the
- ; Spectre gunship and the leaflet drop go, so Turkiye's sight is bought and its powers are its own
- ReplaceModule ModuleTag_22
- Behavior = OCLSpecialPower ModuleTag_22_Turkiye
- SpecialPowerTemplate = SuperweaponTurkiyeRapidDeployment
- OCL = SUPERWEAPON_TurkiyeRapidDeployment
- CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE
- OCLAdjustPositionToPassable = Yes
- End
- End
- RemoveModule ModuleTag_24
- RemoveModule ModuleTag_32
- RemoveModule ModuleTag_33
- RemoveModule ModuleTag_34
; Its own model: a whitewashed command palace in the First National style, symmetric along its long
; front: two lead-capped corner towers, two pavilions (the vehicle gate and its garage in one, a
; matching shut gate in the other) and the portal tower in the middle carrying the drone
@@ -731,6 +748,14 @@ Object TurkiyeSiper
Prerequisites
Object = TurkiyeBarracks
End
+ ; the Barracks' Reinforced Siper: half as much again, 1500 to 2250
+ AddModule
+ Behavior = MaxHealthUpgrade ModuleTag_TurkiyeSiperReinforced
+ TriggeredBy = Upgrade_TurkiyeSiperReinforced
+ AddMaxHealth = 750.0
+ ChangeType = ADD_CURRENT_HEALTH_TOO
+ End
+ End
End
; The Radar Kulesi is the fixed eye the artillery fires through: 500 vision, no weapon, no
@@ -748,7 +773,8 @@ Object TurkiyeRadarTower
EnergyProduction = -3
VisionRange = 500
ShroudClearingRange = 500
- CommandSet = TurkiyeStructureCommandSet
+ ; it researches Hedef Siniflandirma with the Speaker Tower's ProductionUpdate (ModuleTag_10)
+ CommandSet = TurkiyeRadarTowerCommandSet
KindOf = -FS_BASE_DEFENSE
RemoveModule ModuleTag_06
RemoveModule ModuleTag_11
@@ -760,7 +786,9 @@ Object TurkiyeRadarTower
; the widest radar circle, while it has power
AddModule
Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
- Radius = 1000
+ Radius = 1000
+ RadiusUpgrade = Upgrade_TurkiyeEarlyWarning 1.25
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
End
End
ReplaceModule ModuleTag_05
@@ -793,6 +821,10 @@ Object TurkiyeHarekatMerkezi
Prerequisites
Object = TurkiyeWarFactory TurkiyeAirfield
End
+ ; CIA Intelligence, which no Turkiye button fires: its enum is Uydu Gudum's now, and the shortcut
+ ; bar finds a power's source by enum
+ RemoveModule SpyTag_1
+ RemoveModule SpyTag_2
End
; The Kapalicarsi, Turkiye's black market: GLA's under a Turkish name, 2500, paying 20 every 2
@@ -1401,6 +1433,15 @@ Object TurkiyeInfantrySpotter
EnablesStealthDetector = Yes
End
End
+ ; Lazer Isaretleme: what the team attacks, out to its thermal sight, counts as radar coverage
+ AddModule
+ Behavior = RadarCoverageBehavior ModuleTag_TurkiyeLaserDesignation
+ Radius = 650
+ PaintsTargetOnly = Yes
+ RequiredUpgrade = Upgrade_TurkiyeLaserDesignation
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
+ End
+ End
End
ObjectReskin TurkiyeInfantryMaroonBeret AmericaInfantryColonelBurton
@@ -1599,6 +1640,19 @@ Object TurkiyeTankAltay
ChangeType = ADD_CURRENT_HEALTH_TOO
End
End
+ ; AKKOR, the War Factory's active protection: once the player has it, every Altay bursts one
+ ; incoming missile or rocket every three seconds with TurkiyeAkkorCharge (TurkiyeWeaponReforged.ini).
+ ; The Paladin's point defense, scanning out to 120 and firing inside 65, idle until the upgrade.
+ AddModule
+ Behavior = PointDefenseLaserUpdate ModuleTag_TurkiyeAkkor
+ WeaponTemplate = TurkiyeAkkorCharge
+ PrimaryTargetTypes = BALLISTIC_MISSILE SMALL_MISSILE
+ ScanRate = 500
+ ScanRange = 120.0
+ PredictTargetVelocityFactor = 3.0
+ RequiredUpgrade = Upgrade_TurkiyeAkkor
+ End
+ End
; Its own model: a long low hull on seven road wheels under full side skirts, a low welded turret
; with flat add-on blocks on its front and cheeks and armour panels on its sides, a long bustle with
; a stowage basket, the 120 mm gun with its thermal sleeve and fume extractor, a remote weapon
@@ -1959,7 +2013,44 @@ Object TurkiyeTankKoral
; and a radar that drives with the army
AddModule
Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
- Radius = 650
+ Radius = 650
+ RadiusUpgrade = Upgrade_TurkiyeEarlyWarning 1.25
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
+ End
+ End
+End
+
+; The Mobil Radar, Rank 3's unlock: a radar of 900 that covers only while it stands still. GLA's
+; Radar Van lends the truck and its dish until the modeler's own model comes; nothing else of
+; Turkiye's is a Radar Van reskin. It goes without the van's minimap radar (03, 05), its scan power
+; and the scan's upgrade (06, 07) and GLA's Junk Repair (08); it keeps the van's stealth detector.
+
+ObjectReskin TurkiyeVehicleMobileRadar GLAVehicleRadarVan
+End
+
+Object TurkiyeVehicleMobileRadar
+ Side = Turkiye
+ DisplayName = OBJECT:TurkiyeVehicleMobileRadar
+ BuildCost = 800
+ BuildTime = 12.0
+ VisionRange = 150
+ ShroudClearingRange = 150
+ CommandSet = TurkiyeVehicleCommandSet
+ Prerequisites
+ Object = TurkiyeWarFactory
+ Science = SCIENCE_TurkiyeMobileRadar
+ End
+ RemoveModule ModuleTag_03
+ RemoveModule ModuleTag_05
+ RemoveModule ModuleTag_06
+ RemoveModule ModuleTag_07
+ RemoveModule ModuleTag_08
+ AddModule
+ Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
+ Radius = 900
+ OnlyWhenStationary = Yes
+ RadiusUpgrade = Upgrade_TurkiyeEarlyWarning 1.25
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
End
End
End
@@ -1984,9 +2075,9 @@ Object TurkiyeVehicleBayraktar
Prerequisites
Object = TurkiyeAirfield
End
- ; Fuel Cell raises CRATEUPGRADE_ONE and Rank 1's Fuel Resupply CRATEUPGRADE_TWO, which both mean
- ; more munitions per sortie; Swarm Software raises PLAYER_UPGRADE, munitions that pick the
- ; dearest target in reach. A helicopter has no fuel, so its time over the target is its rack.
+ ; Fuel Cell raises CRATEUPGRADE_ONE, more munitions per sortie; Swarm Software raises
+ ; PLAYER_UPGRADE, munitions that pick the dearest target in reach. A helicopter has no fuel, so its
+ ; time over the target is its rack.
WeaponSet
Conditions = None
Weapon = PRIMARY TurkiyeBayraktarGun
@@ -2001,20 +2092,6 @@ Object TurkiyeVehicleBayraktar
Weapon = SECONDARY TurkiyeBayraktarMunitionFuel
PreferredAgainst = SECONDARY VEHICLE STRUCTURE
End
- WeaponSet
- Conditions = CRATEUPGRADE_TWO
- Weapon = PRIMARY TurkiyeBayraktarGun
- PreferredAgainst = PRIMARY INFANTRY
- Weapon = SECONDARY TurkiyeBayraktarMunitionResupply
- PreferredAgainst = SECONDARY VEHICLE STRUCTURE
- End
- WeaponSet
- Conditions = CRATEUPGRADE_ONE CRATEUPGRADE_TWO
- Weapon = PRIMARY TurkiyeBayraktarGun
- PreferredAgainst = PRIMARY INFANTRY
- Weapon = SECONDARY TurkiyeBayraktarMunitionFuelResupply
- PreferredAgainst = SECONDARY VEHICLE STRUCTURE
- End
WeaponSet
Conditions = PLAYER_UPGRADE
Weapon = PRIMARY TurkiyeBayraktarGun
@@ -2029,20 +2106,6 @@ Object TurkiyeVehicleBayraktar
Weapon = SECONDARY TurkiyeBayraktarSwarmFuel
PreferredAgainst = SECONDARY VEHICLE STRUCTURE
End
- WeaponSet
- Conditions = PLAYER_UPGRADE CRATEUPGRADE_TWO
- Weapon = PRIMARY TurkiyeBayraktarGun
- PreferredAgainst = PRIMARY INFANTRY
- Weapon = SECONDARY TurkiyeBayraktarSwarmResupply
- PreferredAgainst = SECONDARY VEHICLE STRUCTURE
- End
- WeaponSet
- Conditions = PLAYER_UPGRADE CRATEUPGRADE_ONE CRATEUPGRADE_TWO
- Weapon = PRIMARY TurkiyeBayraktarGun
- PreferredAgainst = PRIMARY INFANTRY
- Weapon = SECONDARY TurkiyeBayraktarSwarmFuelResupply
- PreferredAgainst = SECONDARY VEHICLE STRUCTURE
- End
ReplaceModule ModuleTag_04
Body = ActiveBody ModuleTag_04_Turkiye
MaxHealth = 180.0
@@ -2055,12 +2118,6 @@ Object TurkiyeVehicleBayraktar
WeaponSetFlag = CRATEUPGRADE_ONE
End
End
- AddModule
- Behavior = WeaponSetUpgrade ModuleTag_TurkiyeFuelResupply
- TriggeredBy = Upgrade_TurkiyeFuelResupply
- WeaponSetFlag = CRATEUPGRADE_TWO
- End
- End
AddModule
Behavior = WeaponSetUpgrade ModuleTag_TurkiyeSwarmSoftware
TriggeredBy = Upgrade_TurkiyeSwarmSoftware
@@ -2073,6 +2130,15 @@ Object TurkiyeVehicleBayraktar
TriggeredBy = Upgrade_TurkiyePrecisionGuidance
End
End
+ ; Lazer Isaretleme: what the drone attacks, out to its sight, counts as radar coverage
+ AddModule
+ Behavior = RadarCoverageBehavior ModuleTag_TurkiyeLaserDesignation
+ Radius = 550
+ PaintsTargetOnly = Yes
+ RequiredUpgrade = Upgrade_TurkiyeLaserDesignation
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
+ End
+ End
End
ObjectReskin TurkiyeVehicleGokbey AmericaVehicleChinook
@@ -2122,8 +2188,8 @@ Object TurkiyeJetAkinci
Object = TurkiyeAirfield
Object = TurkiyeHarekatMerkezi
End
- ; one bomb a sortie, the Aurora's, whatever the Fuel Cell and Fuel Resupply: racks of two and four
- ; let one jet level a base
+ ; one bomb a sortie, the Aurora's, whatever the Fuel Cell: racks of two and four let one jet level
+ ; a base
WeaponSet
Conditions = None
Weapon = PRIMARY TurkiyeAkinciBomb
@@ -2134,10 +2200,13 @@ Object TurkiyeJetAkinci
InitialHealth = 200.0
End
End
- ; a radar in the air over the fight
+ ; a radar in the air over the fight, 1000 with Akinci AESA (the scales multiply)
AddModule
Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
- Radius = 750
+ Radius = 750
+ RadiusUpgrade = Upgrade_TurkiyeEarlyWarning 1.25
+ RadiusUpgrade = Upgrade_TurkiyeAkinciAesa 1.3333
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
End
End
End
@@ -2159,12 +2228,23 @@ Object TurkiyeJetKizilelma
Conditions = None
Weapon = PRIMARY TurkiyeKizilelmaMissile
End
+ WeaponSet
+ Conditions = PLAYER_UPGRADE
+ Weapon = PRIMARY TurkiyeKizilelmaMissileGokdogan
+ End
ReplaceModule ModuleTag_02
Body = ActiveBody ModuleTag_02_Turkiye
MaxHealth = 160.0
InitialHealth = 160.0
End
End
+ ; the Airfield's Gokdogan missile
+ AddModule
+ Behavior = WeaponSetUpgrade ModuleTag_TurkiyeGokdogan
+ TriggeredBy = Upgrade_TurkiyeGokdogan
+ WeaponSetFlag = PLAYER_UPGRADE
+ End
+ End
; Its own model, shaped after photos of the real jet: a long drooping nose and a hump spine with no
; canopy, small canards behind the nose, side intakes under the chine, a big low cranked delta,
; flat tail booms either side of one nozzle and two fins leaning out hard. TRKIZILELMA and its
@@ -2294,10 +2374,10 @@ End
; ==== Spawned by name =============================================================================
; Nothing builds the ones below from a button. The American data spawns them by name: a pilot
-; out of a dead vehicle, the Spy Drone power's drone, the cargo plane of the minefield and the
-; drops, and the chutes. ThingFactory::newObject makes the Turkiye copy whenever one of them is
-; made for a Turkiye player. The battle, scout and hellfire drones, the A-10, the Spectre, the B-3
-; and the B-52 had copies here too; no Turkish button, power or science reaches them any more.
+; out of a dead vehicle, the cargo plane of the drops, and the chutes. ThingFactory::newObject
+; makes the Turkiye copy whenever one of them is made for a Turkiye player. The battle, scout,
+; hellfire and spy drones, the A-10, the Spectre, the B-3, the B-52 and the minefield's bomb and
+; mines had copies here too; no Turkish button, power or science reaches them any more.
ObjectReskin TurkiyeInfantryPilot AmericaInfantryPilot
End
@@ -2306,13 +2386,6 @@ Object TurkiyeInfantryPilot
Side = Turkiye
End
-ObjectReskin TurkiyeVehicleSpyDrone AmericaVehicleSpyDrone
-End
-
-Object TurkiyeVehicleSpyDrone
- Side = Turkiye
-End
-
ObjectReskin TurkiyeJetCargoPlane AmericaJetCargoPlane
End
@@ -2341,20 +2414,127 @@ Object TurkiyeVehicleHumveeDeadHull
Side = Turkiye
End
-; the minefield power's bomb and the mines it sows, China's Cluster Mines
+; The radar powers' markers (ObjectCreationListReforged.ini): the spy satellite's ping, which is
+; owned by the firing player and can neither be hit nor die, stripped of everything that sees. No
+; vision, no shroud clearing, no stealth detector, so the fog stays as it was; what they bring is
+; their RadarCoverageBehavior, and the DeletionUpdate that ends it (the HUD tray counts down to it).
+; No Side, so ThingFactory::newObject never hands one out in place of an American ping.
-ObjectReskin TurkiyeClusterMinesBomb ClusterMinesBomb
+; SIHA Kesfi: 300 around the point for 30 seconds, parked enemies too and every contact classified
+ObjectReskin TurkiyeUavReconMarker SpySatellitePing
End
-Object TurkiyeClusterMinesBomb
- Side = Turkiye
+Object TurkiyeUavReconMarker
+ VisionRange = 0
+ ShroudClearingRange = 0
+ RemoveModule ModuleTag_02
+ RemoveModule ModuleTag_04
+ ReplaceModule ModuleTag_03
+ Behavior = DeletionUpdate ModuleTag_03_Turkiye
+ MinLifetime = 30000
+ MaxLifetime = 30000
+ End
+ End
+ AddModule
+ Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
+ Radius = 300
+ SeesStationary = Yes
+ End
+ End
End
-ObjectReskin TurkiyeClusterMine ChinaClusterMine
+; Uydu Gudum: the whole map for 45 seconds, a radius past any map's diagonal
+ObjectReskin TurkiyeSatelliteGuidanceMarker SpySatellitePing
End
-Object TurkiyeClusterMine
- Side = Turkiye
+Object TurkiyeSatelliteGuidanceMarker
+ VisionRange = 0
+ ShroudClearingRange = 0
+ RemoveModule ModuleTag_02
+ RemoveModule ModuleTag_04
+ ReplaceModule ModuleTag_03
+ Behavior = DeletionUpdate ModuleTag_03_Turkiye
+ MinLifetime = 45000
+ MaxLifetime = 45000
+ End
+ End
+ AddModule
+ Behavior = RadarCoverageBehavior ModuleTag_TurkiyeRadarCoverage
+ Radius = 99999
+ ClassifyUpgrade = Upgrade_TurkiyeTargetClassification
+ End
+ End
+End
+
+; Elektronik Harp's field: the Koral's jammer at 300 for 30 seconds, an enemy guided missile that
+; crosses it loses its lock. The Command Center's RadarJamSpecialPower puts it down through
+; SUPERWEAPON_TurkiyeElectronicWarfare.
+ObjectReskin TurkiyeElectronicWarfareMarker SpySatellitePing
+End
+
+Object TurkiyeElectronicWarfareMarker
+ VisionRange = 0
+ ShroudClearingRange = 0
+ RemoveModule ModuleTag_02
+ RemoveModule ModuleTag_04
+ ReplaceModule ModuleTag_03
+ Behavior = DeletionUpdate ModuleTag_03_Turkiye
+ MinLifetime = 30000
+ MaxLifetime = 30000
+ End
+ End
+ AddModule
+ Behavior = JammerUpdate ModuleTag_TurkiyeJammer
+ Radius = 300
+ ScanRate = 166
+ End
+ End
+End
+
+; Tayfun's missile: the Superweapon General's cruise missile (EA's neutron missile flight, up 200,
+; over, and straight down) with its own warhead in place of the MOAB's and its own power for the
+; script completion. The delivery decal is the warhead's reach. No Side, as the cruise missile has
+; none.
+ObjectReskin TurkiyeTayfunMissile CruiseMissile
+End
+
+Object TurkiyeTayfunMissile
+ ReplaceModule ModuleTag_03
+ Behavior = NeutronMissileUpdate ModuleTag_03_Turkiye
+ DistanceToTravelBeforeTurning = 200
+ MaxTurnRate = 7200
+ ForwardDamping = 0.1
+ RelativeSpeed = 2.0
+ LaunchFX = FX_NeutronMissileLaunch
+ IgnitionFX = FX_NeutronMissileIgnition
+ TargetFromDirectlyAbove = 10
+ SpecialAccelFactor = 1
+ SpecialSpeedTime = 1500
+ SpecialSpeedHeight = 160
+ SpecialJitterDistance = 0.4
+ DeliveryDecalRadius = 90
+ DeliveryDecal
+ Texture = SCCNuclearMissile_China
+ Style = SHADOW_ALPHA_DECAL
+ OpacityMin = 25%
+ OpacityMax = 50%
+ OpacityThrobTime = 500
+ Color = R:255 G:0 B:0 A:255
+ OnlyVisibleToOwningPlayer = Yes
+ End
+ End
+ End
+ ReplaceModule ModuleTag_05
+ Behavior = SpecialPowerCompletionDie ModuleTag_05_Turkiye
+ SpecialPowerTemplate = SuperweaponTurkiyeTayfun
+ End
+ End
+ ReplaceModule ModuleTag_09
+ Behavior = FireWeaponWhenDeadBehavior ModuleTag_09_Turkiye
+ DeathWeapon = TurkiyeTayfunWarhead
+ StartsActive = Yes
+ End
+ End
End
; The Kargu base's drone, drawn as the Hellfire drone. It is a jet on the MiG's frame (no other
diff --git a/GeneralsMD/Code/Data/INI/TurkiyeWeaponReforged.ini b/GeneralsMD/Code/Data/INI/TurkiyeWeaponReforged.ini
index 41942bab9..63a5f1f26 100644
--- a/GeneralsMD/Code/Data/INI/TurkiyeWeaponReforged.ini
+++ b/GeneralsMD/Code/Data/INI/TurkiyeWeaponReforged.ini
@@ -409,9 +409,9 @@ Weapon TurkiyeBayraktarMunition
RadarBlindHitUpgradeChance = 40%
End
-; The Bayraktar's munition with the Airfield's Fuel Cell (twice the rack), Rank 1's Fuel Resupply
-; (one more) or both, and each again with Swarm Software, whose munition goes for the most
-; expensive enemy in reach whatever the drone was aimed at (SeeksMostValuable, Weapon.cpp).
+; The Bayraktar's munition with the Airfield's Fuel Cell (twice the rack), and each again with Swarm
+; Software, whose munition goes for the most expensive enemy in reach whatever the drone was aimed
+; at (SeeksMostValuable, Weapon.cpp).
Weapon TurkiyeBayraktarMunitionFuel
PrimaryDamage = 50
@@ -445,70 +445,6 @@ Weapon TurkiyeBayraktarMunitionFuel
RadarBlindHitUpgradeChance = 40%
End
-Weapon TurkiyeBayraktarMunitionResupply
- PrimaryDamage = 50
- PrimaryDamageRadius = 5.0
- SecondaryDamage = 30.0
- SecondaryDamageRadius = 25.0
- ScatterRadiusVsInfantry = 20.0
- AttackRange = 200
- MinimumAttackRange = 0.0
- DamageType = JET_MISSILES
- DeathType = EXPLODED
- WeaponSpeed = 99999
- ProjectileObject = ComancheAntiTankMissile
- ProjectileExhaust = MissileExhaust
- VeterancyProjectileExhaust = HEROIC HeroicComancheMissileExhaust
- RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
- DelayBetweenShots = 500
- ClipSize = 3
- AutoReloadsClip = Yes
- ClipReloadTime = 15000
- AutoReloadWhenIdle = 15100
- FireSound = ComancheMissileWeapon
- FireFX = None
- ProjectileDetonationFX = WeaponFX_ComancheAntiTankMissileDetonation
- ProjectileCollidesWith = STRUCTURES
- AntiAirborneVehicle = No
- AntiAirborneInfantry = No
- ShowsAmmoPips = Yes
- RadarBlindHitChance = 20%
- RadarBlindHitUpgrade = Upgrade_TurkiyePrecisionGuidance
- RadarBlindHitUpgradeChance = 40%
-End
-
-Weapon TurkiyeBayraktarMunitionFuelResupply
- PrimaryDamage = 50
- PrimaryDamageRadius = 5.0
- SecondaryDamage = 30.0
- SecondaryDamageRadius = 25.0
- ScatterRadiusVsInfantry = 20.0
- AttackRange = 200
- MinimumAttackRange = 0.0
- DamageType = JET_MISSILES
- DeathType = EXPLODED
- WeaponSpeed = 99999
- ProjectileObject = ComancheAntiTankMissile
- ProjectileExhaust = MissileExhaust
- VeterancyProjectileExhaust = HEROIC HeroicComancheMissileExhaust
- RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
- DelayBetweenShots = 500
- ClipSize = 6
- AutoReloadsClip = Yes
- ClipReloadTime = 15000
- AutoReloadWhenIdle = 15100
- FireSound = ComancheMissileWeapon
- FireFX = None
- ProjectileDetonationFX = WeaponFX_ComancheAntiTankMissileDetonation
- ProjectileCollidesWith = STRUCTURES
- AntiAirborneVehicle = No
- AntiAirborneInfantry = No
- ShowsAmmoPips = Yes
- RadarBlindHitChance = 20%
- RadarBlindHitUpgrade = Upgrade_TurkiyePrecisionGuidance
- RadarBlindHitUpgradeChance = 40%
-End
-
Weapon TurkiyeBayraktarSwarm
PrimaryDamage = 50
PrimaryDamageRadius = 5.0
@@ -575,74 +511,8 @@ Weapon TurkiyeBayraktarSwarmFuel
RadarBlindHitUpgradeChance = 40%
End
-Weapon TurkiyeBayraktarSwarmResupply
- PrimaryDamage = 50
- PrimaryDamageRadius = 5.0
- SecondaryDamage = 30.0
- SecondaryDamageRadius = 25.0
- ScatterRadiusVsInfantry = 20.0
- AttackRange = 200
- MinimumAttackRange = 0.0
- DamageType = JET_MISSILES
- DeathType = EXPLODED
- WeaponSpeed = 99999
- ProjectileObject = ComancheAntiTankMissile
- ProjectileExhaust = MissileExhaust
- VeterancyProjectileExhaust = HEROIC HeroicComancheMissileExhaust
- RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
- DelayBetweenShots = 500
- ClipSize = 3
- AutoReloadsClip = Yes
- ClipReloadTime = 15000
- AutoReloadWhenIdle = 15100
- FireSound = ComancheMissileWeapon
- FireFX = None
- ProjectileDetonationFX = WeaponFX_ComancheAntiTankMissileDetonation
- ProjectileCollidesWith = STRUCTURES
- AntiAirborneVehicle = No
- AntiAirborneInfantry = No
- ShowsAmmoPips = Yes
- SeeksMostValuable = Yes
- RadarBlindHitChance = 20%
- RadarBlindHitUpgrade = Upgrade_TurkiyePrecisionGuidance
- RadarBlindHitUpgradeChance = 40%
-End
-
-Weapon TurkiyeBayraktarSwarmFuelResupply
- PrimaryDamage = 50
- PrimaryDamageRadius = 5.0
- SecondaryDamage = 30.0
- SecondaryDamageRadius = 25.0
- ScatterRadiusVsInfantry = 20.0
- AttackRange = 200
- MinimumAttackRange = 0.0
- DamageType = JET_MISSILES
- DeathType = EXPLODED
- WeaponSpeed = 99999
- ProjectileObject = ComancheAntiTankMissile
- ProjectileExhaust = MissileExhaust
- VeterancyProjectileExhaust = HEROIC HeroicComancheMissileExhaust
- RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
- DelayBetweenShots = 500
- ClipSize = 6
- AutoReloadsClip = Yes
- ClipReloadTime = 15000
- AutoReloadWhenIdle = 15100
- FireSound = ComancheMissileWeapon
- FireFX = None
- ProjectileDetonationFX = WeaponFX_ComancheAntiTankMissileDetonation
- ProjectileCollidesWith = STRUCTURES
- AntiAirborneVehicle = No
- AntiAirborneInfantry = No
- ShowsAmmoPips = Yes
- SeeksMostValuable = Yes
- RadarBlindHitChance = 20%
- RadarBlindHitUpgrade = Upgrade_TurkiyePrecisionGuidance
- RadarBlindHitUpgradeChance = 40%
-End
-
-; AuroraBombWeapon, one bomb a sortie. The Fuel Cell and Fuel Resupply racks of two and four bombs
-; are gone: an Akinci that dropped four Aurora bombs a pass flattened a base by itself.
+; AuroraBombWeapon, one bomb a sortie. The Fuel Cell racks of two and four bombs are gone: an Akinci
+; that dropped four Aurora bombs a pass flattened a base by itself.
Weapon TurkiyeAkinciBomb
PrimaryDamage = 400.0
@@ -664,9 +534,9 @@ Weapon TurkiyeAkinciBomb
ProjectileCollidesWith = STRUCTURES
End
-; The rank tree's loitering munitions (SwarmStrikeSpecialPower): no projectile, the hit lands on
-; the target the power picked, from wherever the Command Center stands. Rank 3's single munition
-; hits harder than one of Rank 5's ten.
+; SIHA Surusu's loitering munitions (SwarmStrikeSpecialPower): no projectile, the hit lands on the
+; target the power picked, from wherever the Command Center stands. One, three or five of them by
+; the science tier.
Weapon TurkiyeSwarmMunitionWeapon
PrimaryDamage = 600.0
@@ -684,17 +554,67 @@ Weapon TurkiyeSwarmMunitionWeapon
AntiAirborneInfantry = No
End
-Weapon TurkiyeSwarmStrikeWeapon
- PrimaryDamage = 450.0
- PrimaryDamageRadius = 15.0
- SecondaryDamage = 100.0
- SecondaryDamageRadius = 35.0
- AttackRange = 99999.0
+; AKKOR, the Altay's hard-kill charge once the War Factory's upgrade is bought, fired by its
+; PointDefenseLaserUpdate (TurkiyeReforged.ini). PaladinPointDefenseLaser's reach and damage, which no
+; missile survives, with no beam: the Altay has no LASER bone, and the kill shows where the missile
+; was, FX_PointDefenseLaserBurst's flash and fragments over EA's LASERED scrap. One charge, then
+; three seconds to reload, so a pair of Tank Hunters still lands one in two.
+Weapon TurkiyeAkkorCharge
+ PrimaryDamage = 100.0
+ PrimaryDamageRadius = 0.0
+ AttackRange = 65.0
+ DamageType = LASER
+ DeathType = LASERED
+ WeaponSpeed = 999999.0
+ ProjectileObject = NONE
+ ProjectileDetonationFX = FX_PointDefenseLaserBurst
+ DelayBetweenShots = 250
+ ClipSize = 1
+ ClipReloadTime = 3000
+ AcceptableAimDelta = 180
+ AntiSmallMissile = Yes
+ AntiProjectile = No
+End
+
+; Tayfun, the rank 5 ballistic missile. CruiseMissileWeapon's launch, fired from the Command Center
+; by SUPERWEAPON_TurkiyeTayfun, with TurkiyeTayfunMissile for its projectile. The launch is
+; radar-guided: aimed inside Turkiye radar coverage it always comes down on the point, outside it
+; lands on the point one time in five and otherwise scatters, PrimaryDamageRadius to twice that
+; away. The launch does no damage itself (the missile's death fires the warhead), so its
+; PrimaryDamageRadius only sets that miss distance, kept past the warhead's 90.
+Weapon TurkiyeTayfunLaunch
+ PrimaryDamage = 0
+ PrimaryDamageRadius = 100
+ AttackRange = 99999
+ DamageType = EXPLOSION
+ DeathType = NORMAL
+ WeaponSpeed = 99999
+ ProjectileObject = TurkiyeTayfunMissile
+ ProjectileExhaust = NeutronMissileExhaust
+ FireFX = WeaponFX_NeutronMissile
+ ProjectileDetonationFX = None
+ RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
+ DelayBetweenShots = 0
+ ClipSize = 1
+ ClipReloadTime = 0
+ AutoReloadsClip = No
+ RadarBlindHitChance = 20%
+End
+
+; The warhead, fired by the missile as it dies on the ground: a Scud Storm missile's worth on one
+; point, 600 at the middle and 200 out to 90.
+Weapon TurkiyeTayfunWarhead
+ PrimaryDamage = 600.0
+ PrimaryDamageRadius = 50.0
+ SecondaryDamage = 200.0
+ SecondaryDamageRadius = 90.0
+ AttackRange = 100.0
DamageType = EXPLOSION
DeathType = EXPLODED
WeaponSpeed = 99999
- FireFX = None
+ FireFX = ScudStormMissileDetonation
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
+ DelayBetweenShots = 0
ClipSize = 0
AntiAirborneVehicle = No
AntiAirborneInfantry = No
@@ -760,6 +680,39 @@ Weapon TurkiyeKizilelmaMissile
RadarBlindHitUpgradeChance = 40%
End
+; The Kizilelma's missile once the Airfield has Gokdogan: 360 out instead of 280, 130 a hit
+; instead of 100
+Weapon TurkiyeKizilelmaMissileGokdogan
+ PrimaryDamage = 130.0
+ PrimaryDamageRadius = 5.0
+ ScatterRadiusVsInfantry = 10.0
+ AttackRange = 360
+ MinimumAttackRange = 100.0
+ AcceptableAimDelta = 30
+ DamageType = JET_MISSILES
+ DeathType = EXPLODED
+ WeaponSpeed = 1000
+ ProjectileObject = RaptorJetMissile
+ ProjectileExhaust = MissileExhaust
+ VeterancyProjectileExhaust = HEROIC HeroicMissileExhaust
+ FireFX = None
+ FireSound = RaptorJetMissileWeapon
+ ProjectileDetonationFX = WeaponFX_JetMissileDetonation
+ RadiusDamageAffects = ALLIES ENEMIES NEUTRALS NOT_SIMILAR
+ DelayBetweenShots = 150
+ ClipSize = 4
+ ClipReloadTime = 8000
+ AutoReloadsClip = RETURN_TO_BASE
+ ProjectileCollidesWith = STRUCTURES
+ AntiAirborneVehicle = Yes
+ AntiAirborneInfantry = No
+ ShowsAmmoPips = Yes
+ WeaponBonus = PLAYER_UPGRADE DAMAGE 125%
+ RadarBlindHitChance = 20%
+ RadarBlindHitUpgrade = Upgrade_TurkiyePrecisionGuidance
+ RadarBlindHitUpgradeChance = 40%
+End
+
; PatriotMissileWeapon, PatriotMissileAssistWeapon and PatriotMissileWeaponAir: the Patriot
; Battery's three, as EA has them, radar-guided
Weapon TurkiyePatriotMissileWeapon
diff --git a/GeneralsMD/Code/Data/INI/UpgradeReforged.ini b/GeneralsMD/Code/Data/INI/UpgradeReforged.ini
index 4f6c3968b..26db3b061 100644
--- a/GeneralsMD/Code/Data/INI/UpgradeReforged.ini
+++ b/GeneralsMD/Code/Data/INI/UpgradeReforged.ini
@@ -18,7 +18,7 @@ Upgrade Upgrade_ChinaNeutronShells
ResearchSound = EvaChina_UpgradeNeutronShell
End
-; Turkiye's four upgrades (TurkiyeReforged.ini, CommandSetReforged.ini). The cameos are borrowed.
+; Turkiye's bought upgrades (TurkiyeReforged.ini, CommandSetReforged.ini). The cameos are borrowed.
Upgrade Upgrade_TurkiyeExtendedRange
DisplayName = UPGRADE:TurkiyeExtendedRange
@@ -76,11 +76,65 @@ Upgrade Upgrade_TurkiyeSwarmSoftware
ButtonImage = SSScoutArmor
End
-; Granted by SCIENCE_TurkiyeFuelResupply (ScienceReforged.ini), never bought.
-Upgrade Upgrade_TurkiyeFuelResupply
- DisplayName = UPGRADE:TurkiyeFuelResupply
+; Granted by the passive rank sciences (ScienceReforged.ini), never bought. The radar modules in
+; TurkiyeReforged.ini name them: RequiredUpgrade on the painting Spotter and Bayraktar, RadiusUpgrade
+; on every radar.
+Upgrade Upgrade_TurkiyeLaserDesignation
+ DisplayName = UPGRADE:TurkiyeLaserDesignation
Type = PLAYER
BuildTime = 0.0
BuildCost = 0
- ButtonImage = SAsupplyline
+ ButtonImage = SAPathfinder1
+End
+
+Upgrade Upgrade_TurkiyeEarlyWarning
+ DisplayName = UPGRADE:TurkiyeEarlyWarning
+ Type = PLAYER
+ BuildTime = 0.0
+ BuildCost = 0
+ ButtonImage = SARadarUpgrade
+End
+
+Upgrade Upgrade_TurkiyeAkinciAesa
+ DisplayName = UPGRADE:TurkiyeAkinciAesa
+ Type = PLAYER
+ BuildTime = 0.0
+ BuildCost = 0
+ ButtonImage = SSRadarVanScan
+End
+
+; Radar Tower: radar contacts carry a class glyph (ClassifyUpgrade on every radar)
+Upgrade Upgrade_TurkiyeTargetClassification
+ DisplayName = UPGRADE:TurkiyeTargetClassification
+ Type = PLAYER
+ BuildTime = 45.0
+ BuildCost = 1500
+ ButtonImage = SSCIA
+End
+
+; Factory: the Altay's active protection
+Upgrade Upgrade_TurkiyeAkkor
+ DisplayName = UPGRADE:TurkiyeAkkor
+ Type = PLAYER
+ BuildTime = 45.0
+ BuildCost = 1500
+ ButtonImage = SAFlares
+End
+
+; Airfield: the Kizilelma's long-range missile
+Upgrade Upgrade_TurkiyeGokdogan
+ DisplayName = UPGRADE:TurkiyeGokdogan
+ Type = PLAYER
+ BuildTime = 45.0
+ BuildCost = 1500
+ ButtonImage = SSPlaneLaserMissiles
+End
+
+; Barracks: the Siper's concrete
+Upgrade Upgrade_TurkiyeSiperReinforced
+ DisplayName = UPGRADE:TurkiyeSiperReinforced
+ Type = PLAYER
+ BuildTime = 30.0
+ BuildCost = 800
+ ButtonImage = SUEliteGrd
End
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index 7e7c14088..903ed1e08 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -2898,7 +2898,7 @@ OBJECT:TurkiyeSiper
END
CONTROLBAR:ConstructTurkiyeSiper
-"Siper B&unker"
+"Sip&er Bunker"
END
CONTROLBAR:ToolTipTurkiyeSiper
@@ -3021,76 +3021,200 @@ CONTROLBAR:ConstructTurkiyePatriotBattery
"H&isar Battery"
END
-SCIENCE:TurkiyeMinefield
-"Minefield"
+SCIENCE:TurkiyeLaserDesignation
+"Laser Designation"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceLaserDesignation
+"Spotter Teams and Bayraktars paint what they attack. A painted target counts as inside radar coverage wherever it stands, so every radar-guided rocket keeps its lock on it."
+END
+
+UPGRADE:TurkiyeLaserDesignation
+"Laser Designation"
+END
+
+SCIENCE:TurkiyeEarlyWarning
+"Early Warning"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceEarlyWarning
+"Every Turkiye radar reaches a quarter further: Headquarters, Radar Tower, Koral, Akinci and Mobile Radar."
+END
+
+UPGRADE:TurkiyeEarlyWarning
+"Early Warning"
+END
+
+SCIENCE:TurkiyeUavRecon
+"UAV Recon"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceUavRecon
+"A UAV circles the target area for 30 seconds and reports every enemy unit in it, parked or moving, and what it is. The fog stays, but the area counts as radar coverage. \n \n Deploy from: Headquarters"
+END
+
+CONTROLBAR:TurkiyeUavRecon
+"&UAV Recon"
+END
+
+CONTROLBAR:TooltipTurkiyeUavRecon
+"UAV Recon \n Recharge: 2:00"
END
-CONTROLBAR:ToolTipTurkiyeScienceMinefield
-"A cargo plane sows a minefield wherever you point. \n \n Deploy from: Headquarters"
+GUI:HudReconSiha
+"SIHA RECON"
END
-CONTROLBAR:TurkiyeMinefield
-"Mine&field"
+SCIENCE:TurkiyeMobileRadar
+"Mobile Radar"
END
-CONTROLBAR:TooltipTurkiyeMinefield
-"Minefield \n Recharge: 4:00"
+CONTROLBAR:ToolTipTurkiyeScienceMobileRadar
+"The Factory builds the Mobile Radar, a radar truck that covers 900 around it while it stands still."
END
-SCIENCE:TurkiyeFuelResupply
-"Fuel Resupply"
+OBJECT:TurkiyeVehicleMobileRadar
+"Mobile Radar"
END
-CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
-"Bayraktar drones carry one more munition on every sortie."
+CONTROLBAR:ConstructTurkiyeVehicleMobileRadar
+"&Mobile Radar"
+END
+
+CONTROLBAR:ToolTipTurkiyeVehicleMobileRadar
+"A radar on wheels: parked, it covers 900 around it; driving, it covers nothing. No weapon. \n \n Requires: Mobile Radar (rank 3)"
+END
+
+SCIENCE:TurkiyeAkinciAesa
+"Akinci AESA"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceAkinciAesa
+"The Akinci's radar reaches 1000 instead of 750."
+END
+
+UPGRADE:TurkiyeAkinciAesa
+"Akinci AESA"
END
SCIENCE:TurkiyeSwarmMunition
-"Loitering Munition"
+"UAV Swarm 1"
+END
+
+SCIENCE:TurkiyeSwarmMunition2
+"UAV Swarm 2"
+END
+
+SCIENCE:TurkiyeSwarmMunition3
+"UAV Swarm 3"
END
CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
-"One loitering munition circles where you point and dives on the most expensive target it finds. \n \n Deploy from: Headquarters"
+"Loitering munitions circle where you point, and each dives on the most expensive target it finds: one at level 1, three at level 2, five at level 3. \n \n Deploy from: Headquarters"
END
CONTROLBAR:TurkiyeSwarmMunition
-"Loitering &Munition"
+"UAV Swa&rm"
END
CONTROLBAR:TooltipTurkiyeSwarmMunition
-"Loitering Munition \n Recharge: 3:00"
+"UAV Swarm \n Recharge: 3:00"
END
SCIENCE:TurkiyeElectronicBlinding
-"Electronic Blinding"
+"Electronic Warfare"
END
CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
-"Every enemy with a building in the target area loses its radar for 30 seconds. \n \n Deploy from: Headquarters"
+"Every enemy with a building in the target area loses its radar for 30 seconds, and the area stays jammed as long: enemy drones and spotters in it see nothing, and guided missiles crossing it lose their lock. \n \n Deploy from: Headquarters"
END
CONTROLBAR:TurkiyeElectronicBlinding
-"Electronic &Blinding"
+"Electronic &Warfare"
END
CONTROLBAR:TooltipTurkiyeElectronicBlinding
-"Electronic Blinding \n Recharge: 4:00"
+"Electronic Warfare \n Recharge: 4:00"
END
-SCIENCE:TurkiyeSwarmStrike
-"Swarm Strike"
+SCIENCE:TurkiyeSatelliteGuidance
+"Satellite Guidance"
END
-CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
-"A swarm of munitions hunts down the ten most valuable targets in a wide area, one munition each. A packed base shrugs it off; a spread-out army does not. \n \n Deploy from: Headquarters"
+CONTROLBAR:ToolTipTurkiyeScienceSatelliteGuidance
+"For 45 seconds the whole map counts as Turkiye radar coverage: every radar-guided rocket keeps its lock, and moving enemies show through the fog. \n \n Deploy from: Headquarters"
END
-CONTROLBAR:TurkiyeSwarmStrike
-"S&warm Strike"
+CONTROLBAR:TurkiyeSatelliteGuidance
+"Sa&tellite Guidance"
END
-CONTROLBAR:TooltipTurkiyeSwarmStrike
-"Swarm Strike \n Recharge: 6:00"
+CONTROLBAR:TooltipTurkiyeSatelliteGuidance
+"Satellite Guidance \n Recharge: 5:00"
+END
+
+SCIENCE:TurkiyeTayfun
+"Tayfun Missile"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceTayfun
+"A Tayfun ballistic missile comes down on the target. Inside radar coverage it always hits; outside it lands on the point one time in five and misses wide the rest. \n \n Deploy from: Headquarters"
+END
+
+CONTROLBAR:TurkiyeTayfun
+"Tayfun &Missile"
+END
+
+CONTROLBAR:TooltipTurkiyeTayfun
+"Tayfun Missile \n Recharge: 4:00"
+END
+
+UPGRADE:TurkiyeTargetClassification
+"Target Classification"
+END
+
+CONTROLBAR:UpgradeTurkiyeTargetClassification
+"&Target Classification"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeTargetClassification
+"Radar contacts show what they are: infantry, vehicle, air defense, artillery, aircraft or a defense."
+END
+
+UPGRADE:TurkiyeAkkor
+"AKKOR Active Protection"
+END
+
+CONTROLBAR:UpgradeTurkiyeAkkor
+"AKKOR Active &Protection"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeAkkor
+"Every Altay carries a hard-kill charge that bursts one incoming missile or rocket every three seconds."
+END
+
+UPGRADE:TurkiyeGokdogan
+"Gokdogan Missiles"
+END
+
+CONTROLBAR:UpgradeTurkiyeGokdogan
+"Gokdogan &Missiles"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeGokdogan
+"Kizilelma fighters fire the Gokdogan: 360 range instead of 280, 130 damage instead of 100."
+END
+
+UPGRADE:TurkiyeSiperReinforced
+"Reinforced Siper"
+END
+
+CONTROLBAR:UpgradeTurkiyeSiperReinforced
+"Rein&forced Siper"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeSiperReinforced
+"Concrete and overhead cover: every Siper takes half as much again before it falls."
END
UPGRADE:TurkiyeThermal
@@ -3129,40 +3253,28 @@ CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
"Bayraktar munitions pick their own target: the most expensive enemy in reach."
END
-UPGRADE:TurkiyeFuelResupply
-"Fuel Resupply"
-END
-
SCIENCE:TurkiyeRapidDeployment
-"Rapid Deployment"
-END
-
-CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
-"A cargo plane drops six Mehmetcik and two Sungur gunners wherever you point. \n \n Deploy from: Headquarters"
+"Gokbey Landing 1"
END
-CONTROLBAR:TurkiyeRapidDeployment
-"&Rapid Deployment"
+SCIENCE:TurkiyeRapidDeployment2
+"Gokbey Landing 2"
END
-CONTROLBAR:TooltipTurkiyeRapidDeployment
-"Rapid Deployment \n Recharge: 3:00"
+SCIENCE:TurkiyeRapidDeployment3
+"Gokbey Landing 3"
END
-SCIENCE:TurkiyeFireMission
-"Fire Mission"
-END
-
-CONTROLBAR:ToolTipTurkiyeScienceFireMission
-"Thirty-six heavy shells fall on the target from off the map. \n \n Deploy from: Headquarters"
+CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
+"Mehmetcik riflemen and Sungur gunners parachute wherever you point: six at level 1, ten at level 2, fourteen and a Kirpi at level 3. \n \n Deploy from: Headquarters"
END
-CONTROLBAR:TurkiyeFireMission
-"Fire M&ission"
+CONTROLBAR:TurkiyeRapidDeployment
+"Gokbey &Landing"
END
-CONTROLBAR:TooltipTurkiyeFireMission
-"Fire Mission \n Recharge: 4:00"
+CONTROLBAR:TooltipTurkiyeRapidDeployment
+"Gokbey Landing \n Recharge: 3:00"
END
SCIENCE:TurkiyeCommandoRaid
@@ -3174,7 +3286,7 @@ CONTROLBAR:ToolTipTurkiyeScienceCommandoRaid
END
CONTROLBAR:TurkiyeCommandoRaid
-"&Commando Raid"
+"Comman&do Raid"
END
CONTROLBAR:TooltipTurkiyeCommandoRaid
diff --git a/GeneralsMD/Code/Data/Russian/Generals.str b/GeneralsMD/Code/Data/Russian/Generals.str
index bbdd60b94..755d53056 100644
--- a/GeneralsMD/Code/Data/Russian/Generals.str
+++ b/GeneralsMD/Code/Data/Russian/Generals.str
@@ -18165,76 +18165,200 @@ CONTROLBAR:ConstructTurkiyePatriotBattery
"&Батарея Hisar"
END
-SCIENCE:TurkiyeMinefield
-"Минное поле"
+SCIENCE:TurkiyeLaserDesignation
+"Лазерное целеуказание"
END
-CONTROLBAR:ToolTipTurkiyeScienceMinefield
-"Транспортный самолёт засевает минами указанную вами местность. \n \n Применяется из: Штаба"
+CONTROLBAR:ToolTipTurkiyeScienceLaserDesignation
+"Группы корректировщиков и Bayraktar подсвечивают то, что атакуют. Подсвеченная цель считается в зоне радара, где бы она ни стояла, и каждая ракета с радарным наведением держит на ней захват."
END
-CONTROLBAR:TurkiyeMinefield
-"&Минное поле"
+UPGRADE:TurkiyeLaserDesignation
+"Лазерное целеуказание"
+END
+
+SCIENCE:TurkiyeEarlyWarning
+"Раннее оповещение"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceEarlyWarning
+"Каждый радар Турции бьёт на четверть дальше: Штаб, радарная вышка, Koral, Akinci и мобильный радар."
+END
+
+UPGRADE:TurkiyeEarlyWarning
+"Раннее оповещение"
+END
+
+SCIENCE:TurkiyeUavRecon
+"Разведка БПЛА"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceUavRecon
+"БПЛА 30 секунд кружит над зоной и сообщает о каждом вражеском юните в ней, стоящем или движущемся, и о том, что это. Туман остаётся, но зона считается в зоне радара. \n \n Применяется из: Штаба"
+END
+
+CONTROLBAR:TurkiyeUavRecon
+"&Разведка БПЛА"
+END
+
+CONTROLBAR:TooltipTurkiyeUavRecon
+"Разведка БПЛА \n Перезарядка: 2:00"
+END
+
+GUI:HudReconSiha
+"РАЗВЕДКА БПЛА"
+END
+
+SCIENCE:TurkiyeMobileRadar
+"Мобильный радар"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceMobileRadar
+"Завод выпускает мобильный радар: радарный грузовик, который охватывает 900 вокруг себя, пока стоит."
+END
+
+OBJECT:TurkiyeVehicleMobileRadar
+"Мобильный радар"
END
-CONTROLBAR:TooltipTurkiyeMinefield
-"Минное поле \n Перезарядка: 4:00"
+CONTROLBAR:ConstructTurkiyeVehicleMobileRadar
+"&Мобильный радар"
END
-SCIENCE:TurkiyeFuelResupply
-"Дозаправка"
+CONTROLBAR:ToolTipTurkiyeVehicleMobileRadar
+"Радар на колёсах: стоя, охватывает 900 вокруг себя, в движении - ничего. Без оружия. \n \n Требуется: Мобильный радар (звание 3)"
END
-CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
-"Дроны Bayraktar несут на одну боеприпасную единицу больше за вылет."
+SCIENCE:TurkiyeAkinciAesa
+"АФАР Akinci"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceAkinciAesa
+"Радар Akinci бьёт на 1000 вместо 750."
+END
+
+UPGRADE:TurkiyeAkinciAesa
+"АФАР Akinci"
END
SCIENCE:TurkiyeSwarmMunition
-"Барражирующий боеприпас"
+"Рой БПЛА 1"
+END
+
+SCIENCE:TurkiyeSwarmMunition2
+"Рой БПЛА 2"
+END
+
+SCIENCE:TurkiyeSwarmMunition3
+"Рой БПЛА 3"
END
CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
-"Один барражирующий боеприпас кружит над указанным местом и пикирует на самую дорогую найденную цель. \n \n Применяется из: Штаба"
+"Барражирующие боеприпасы кружат над указанным местом, и каждый пикирует на самую дорогую найденную цель: один на уровне 1, три на уровне 2, пять на уровне 3. \n \n Применяется из: Штаба"
END
CONTROLBAR:TurkiyeSwarmMunition
-"&Барражирующий боеприпас"
+"&Рой БПЛА"
END
CONTROLBAR:TooltipTurkiyeSwarmMunition
-"Барражирующий боеприпас \n Перезарядка: 3:00"
+"Рой БПЛА \n Перезарядка: 3:00"
END
SCIENCE:TurkiyeElectronicBlinding
-"Электронное ослепление"
+"Радиоэлектронная борьба"
END
CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
-"Каждый враг, у которого есть здание в зоне поражения, теряет радар на 30 секунд. \n \n Применяется из: Штаба"
+"Каждый враг, у которого есть здание в зоне поражения, теряет радар на 30 секунд, и всё это время зона заглушена: вражеские дроны и наводчики в ней ничего не видят, а управляемые ракеты, пролетающие через неё, теряют захват. \n \n Применяется из: Штаба"
END
CONTROLBAR:TurkiyeElectronicBlinding
-"&Электронное ослепление"
+"&Радиоэлектронная борьба"
END
CONTROLBAR:TooltipTurkiyeElectronicBlinding
-"Электронное ослепление \n Перезарядка: 4:00"
+"Радиоэлектронная борьба \n Перезарядка: 4:00"
+END
+
+SCIENCE:TurkiyeSatelliteGuidance
+"Спутниковое наведение"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceSatelliteGuidance
+"45 секунд вся карта считается в зоне радара Турции: каждая ракета с радарным наведением держит захват, а движущиеся враги видны под туманом. \n \n Применяется из: Штаба"
+END
+
+CONTROLBAR:TurkiyeSatelliteGuidance
+"&Спутниковое наведение"
END
-SCIENCE:TurkiyeSwarmStrike
-"Удар роя"
+CONTROLBAR:TooltipTurkiyeSatelliteGuidance
+"Спутниковое наведение \n Перезарядка: 5:00"
END
-CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
-"Рой боеприпасов выслеживает десять самых ценных целей на большой площади, по одному боеприпасу на цель. Плотная база это переживёт, рассредоточенная армия - нет. \n \n Применяется из: Штаба"
+SCIENCE:TurkiyeTayfun
+"Ракета Tayfun"
END
-CONTROLBAR:TurkiyeSwarmStrike
-"&Удар роя"
+CONTROLBAR:ToolTipTurkiyeScienceTayfun
+"Баллистическая ракета Tayfun падает на цель. В зоне радара она всегда попадает; вне её попадает в точку один раз из пяти, а в остальных случаях ложится далеко. \n \n Применяется из: Штаба"
END
-CONTROLBAR:TooltipTurkiyeSwarmStrike
-"Удар роя \n Перезарядка: 6:00"
+CONTROLBAR:TurkiyeTayfun
+"Ракета &Tayfun"
+END
+
+CONTROLBAR:TooltipTurkiyeTayfun
+"Ракета Tayfun \n Перезарядка: 4:00"
+END
+
+UPGRADE:TurkiyeTargetClassification
+"Классификация целей"
+END
+
+CONTROLBAR:UpgradeTurkiyeTargetClassification
+"&Классификация целей"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeTargetClassification
+"Радарные отметки показывают, что это: пехота, техника, ПВО, артиллерия, авиация или оборона."
+END
+
+UPGRADE:TurkiyeAkkor
+"Активная защита AKKOR"
+END
+
+CONTROLBAR:UpgradeTurkiyeAkkor
+"&Активная защита AKKOR"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeAkkor
+"Каждый Altay несёт заряд активной защиты, который раз в три секунды подрывает подлетающую ракету или реактивный снаряд."
+END
+
+UPGRADE:TurkiyeGokdogan
+"Ракеты Gokdogan"
+END
+
+CONTROLBAR:UpgradeTurkiyeGokdogan
+"Ракеты &Gokdogan"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeGokdogan
+"Kizilelma стреляют Gokdogan: дальность 360 вместо 280, урон 130 вместо 100."
+END
+
+UPGRADE:TurkiyeSiperReinforced
+"Укреплённый Siper"
+END
+
+CONTROLBAR:UpgradeTurkiyeSiperReinforced
+"&Укреплённый Siper"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeSiperReinforced
+"Бетон и перекрытие: каждый Siper выдерживает в полтора раза больше."
END
UPGRADE:TurkiyeThermal
@@ -18273,40 +18397,28 @@ CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
"Боеприпасы Bayraktar сами выбирают цель: самого дорогого врага в досягаемости."
END
-UPGRADE:TurkiyeFuelResupply
-"Дозаправка"
-END
-
SCIENCE:TurkiyeRapidDeployment
-"Быстрая переброска"
+"Десант Gokbey 1"
END
-CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
-"Транспортный самолёт сбрасывает шестерых Mehmetcik и двух ракетчиков Sungur в указанном месте. \n \n Применяется из: Штаба"
+SCIENCE:TurkiyeRapidDeployment2
+"Десант Gokbey 2"
END
-CONTROLBAR:TurkiyeRapidDeployment
-"&Быстрая переброска"
+SCIENCE:TurkiyeRapidDeployment3
+"Десант Gokbey 3"
END
-CONTROLBAR:TooltipTurkiyeRapidDeployment
-"Быстрая переброска \n Перезарядка: 3:00"
-END
-
-SCIENCE:TurkiyeFireMission
-"Огневая задача"
-END
-
-CONTROLBAR:ToolTipTurkiyeScienceFireMission
-"Тридцать шесть тяжёлых снарядов падают на цель из-за пределов карты. \n \n Применяется из: Штаба"
+CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
+"Стрелки Mehmetcik и ракетчики Sungur десантируются в указанном месте: шесть на уровне 1, десять на уровне 2, четырнадцать и Kirpi на уровне 3. \n \n Применяется из: Штаба"
END
-CONTROLBAR:TurkiyeFireMission
-"&Огневая задача"
+CONTROLBAR:TurkiyeRapidDeployment
+"&Десант Gokbey"
END
-CONTROLBAR:TooltipTurkiyeFireMission
-"Огневая задача \n Перезарядка: 4:00"
+CONTROLBAR:TooltipTurkiyeRapidDeployment
+"Десант Gokbey \n Перезарядка: 3:00"
END
SCIENCE:TurkiyeCommandoRaid
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index 8fee7ebe7..0885652d6 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -17388,76 +17388,200 @@ CONTROLBAR:ConstructTurkiyePatriotBattery
"Hisar &Bataryası"
END
-SCIENCE:TurkiyeMinefield
-"Mayın Tarlası"
+SCIENCE:TurkiyeLaserDesignation
+"Lazer İşaretleme"
END
-CONTROLBAR:ToolTipTurkiyeScienceMinefield
-"Bir kargo uçağı gösterdiğiniz yere mayın döşer. \n \n Çağrıldığı yer: Karargah"
+CONTROLBAR:ToolTipTurkiyeScienceLaserDesignation
+"Gözcü timleri ve Bayraktarlar saldırdıkları hedefi işaretler. İşaretli hedef nerede olursa olsun radar kapsamında sayılır, radar güdümlü her roket kilidini onda tutar."
END
-CONTROLBAR:TurkiyeMinefield
-"Mayın Ta&rlası"
+UPGRADE:TurkiyeLaserDesignation
+"Lazer İşaretleme"
END
-CONTROLBAR:TooltipTurkiyeMinefield
-"Mayın Tarlası \n Geri Sayım: 4:00"
+SCIENCE:TurkiyeEarlyWarning
+"Erken İhbar"
END
-SCIENCE:TurkiyeFuelResupply
-"Yakıt İkmali"
+CONTROLBAR:ToolTipTurkiyeScienceEarlyWarning
+"Türkiye'nin bütün radarları dörtte bir daha uzağa erişir: Karargah, Radar Kulesi, Koral, Akıncı ve Mobil Radar."
END
-CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
-"Bayraktar her uçuşta bir mühimmat fazla taşır."
+UPGRADE:TurkiyeEarlyWarning
+"Erken İhbar"
+END
+
+SCIENCE:TurkiyeUavRecon
+"SİHA Keşfi"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceUavRecon
+"Bir SİHA hedef alanın üstünde 30 saniye döner ve oradaki her düşman birimini, duran da yürüyen de, ne olduğuyla bildirir. Sis kalkmaz ama alan radar kapsamında sayılır. \n \n Kullanıldığı yer: Karargah"
+END
+
+CONTROLBAR:TurkiyeUavRecon
+"SİHA &Keşfi"
+END
+
+CONTROLBAR:TooltipTurkiyeUavRecon
+"SİHA Keşfi \n Geri Sayım: 2:00"
+END
+
+GUI:HudReconSiha
+"SİHA KEŞİF"
+END
+
+SCIENCE:TurkiyeMobileRadar
+"Mobil Radar"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceMobileRadar
+"Fabrika Mobil Radar üretir: dururken çevresinde 900'ü kapsayan bir radar kamyonu."
+END
+
+OBJECT:TurkiyeVehicleMobileRadar
+"Mobil Radar"
+END
+
+CONTROLBAR:ConstructTurkiyeVehicleMobileRadar
+"&Mobil Radar"
+END
+
+CONTROLBAR:ToolTipTurkiyeVehicleMobileRadar
+"Tekerlekli radar: park halinde çevresinde 900'ü kapsar, yürürken hiçbir şeyi. Silahı yok. \n \n Gerekenler: Mobil Radar (3. rütbe)"
+END
+
+SCIENCE:TurkiyeAkinciAesa
+"Akıncı AESA"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceAkinciAesa
+"Akıncı'nın radarı 750 yerine 1000'e erişir."
+END
+
+UPGRADE:TurkiyeAkinciAesa
+"Akıncı AESA"
END
SCIENCE:TurkiyeSwarmMunition
-"Gezgin Mühimmat"
+"SİHA Sürüsü 1"
+END
+
+SCIENCE:TurkiyeSwarmMunition2
+"SİHA Sürüsü 2"
+END
+
+SCIENCE:TurkiyeSwarmMunition3
+"SİHA Sürüsü 3"
END
CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
-"Bir gezgin mühimmat gösterdiğin yerde döner ve bulduğu en pahalı hedefe dalar. \n \n Kullanıldığı yer: Karargah"
+"Gezgin mühimmatlar gösterdiğin yerde döner, her biri bulduğu en pahalı hedefe dalar: 1. seviyede bir, 2. seviyede üç, 3. seviyede beş. \n \n Kullanıldığı yer: Karargah"
END
CONTROLBAR:TurkiyeSwarmMunition
-"Gezgin &Mühimmat"
+"SİHA &Sürüsü"
END
CONTROLBAR:TooltipTurkiyeSwarmMunition
-"Gezgin Mühimmat \n Geri Sayım: 3:00"
+"SİHA Sürüsü \n Geri Sayım: 3:00"
END
SCIENCE:TurkiyeElectronicBlinding
-"Elektronik Körleme"
+"Elektronik Harp"
END
CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
-"Hedef alanda binası olan her düşmanın radarı 30 saniye kapanır. \n \n Kullanıldığı yer: Karargah"
+"Hedef alanda binası olan her düşmanın radarı 30 saniye kapanır ve alan o süre karıştırılır: içindeki düşman İHA'ları ve gözcüleri hiçbir şey görmez, alandan geçen güdümlü füzeler kilidini kaybeder. \n \n Kullanıldığı yer: Karargah"
END
CONTROLBAR:TurkiyeElectronicBlinding
-"Elektronik &Körleme"
+"Elektronik &Harp"
END
CONTROLBAR:TooltipTurkiyeElectronicBlinding
-"Elektronik Körleme \n Geri Sayım: 4:00"
+"Elektronik Harp \n Geri Sayım: 4:00"
+END
+
+SCIENCE:TurkiyeSatelliteGuidance
+"Uydu Güdüm"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceSatelliteGuidance
+"45 saniye boyunca bütün harita Türkiye'nin radar kapsamında sayılır: radar güdümlü her roket kilidini tutar, yürüyen düşmanlar sisin altında görünür. \n \n Kullanıldığı yer: Karargah"
+END
+
+CONTROLBAR:TurkiyeSatelliteGuidance
+"&Uydu Güdüm"
+END
+
+CONTROLBAR:TooltipTurkiyeSatelliteGuidance
+"Uydu Güdüm \n Geri Sayım: 5:00"
+END
+
+SCIENCE:TurkiyeTayfun
+"Tayfun Füzesi"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceTayfun
+"Bir Tayfun balistik füzesi hedefe iner. Radar kapsamında her zaman vurur; kapsam dışında beşte bir noktaya düşer, kalanında geniş ıskalar. \n \n Kullanıldığı yer: Karargah"
+END
+
+CONTROLBAR:TurkiyeTayfun
+"&Tayfun Füzesi"
+END
+
+CONTROLBAR:TooltipTurkiyeTayfun
+"Tayfun Füzesi \n Geri Sayım: 4:00"
+END
+
+UPGRADE:TurkiyeTargetClassification
+"Hedef Sınıflandırma"
+END
+
+CONTROLBAR:UpgradeTurkiyeTargetClassification
+"&Hedef Sınıflandırma"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeTargetClassification
+"Radar temasları ne olduklarını gösterir: piyade, araç, hava savunma, topçu, uçak ya da savunma yapısı."
+END
+
+UPGRADE:TurkiyeAkkor
+"AKKOR Aktif Koruma"
+END
+
+CONTROLBAR:UpgradeTurkiyeAkkor
+"AKKOR Aktif &Koruma"
END
-SCIENCE:TurkiyeSwarmStrike
-"Sürü Akını"
+CONTROLBAR:ToolTipUpgradeTurkiyeAkkor
+"Her Altay'daki aktif koruma, üç saniyede bir yaklaşan bir füzeyi ya da roketi havada patlatır."
END
-CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
-"Bir mühimmat sürüsü geniş bir alandaki en değerli on hedefi tek tek bulur, her birine bir mühimmat. Sıkışık bir üs bunu az hisseder, dağınık bir ordu çok. \n \n Kullanıldığı yer: Karargah"
+UPGRADE:TurkiyeGokdogan
+"Gökdoğan Füzeleri"
END
-CONTROLBAR:TurkiyeSwarmStrike
-"Sürü Akı&nı"
+CONTROLBAR:UpgradeTurkiyeGokdogan
+"&Gökdoğan Füzeleri"
END
-CONTROLBAR:TooltipTurkiyeSwarmStrike
-"Sürü Akını \n Geri Sayım: 6:00"
+CONTROLBAR:ToolTipUpgradeTurkiyeGokdogan
+"Kızılelma Gökdoğan atar: 280 yerine 360 menzil, 100 yerine 130 hasar."
+END
+
+UPGRADE:TurkiyeSiperReinforced
+"Takviyeli Siper"
+END
+
+CONTROLBAR:UpgradeTurkiyeSiperReinforced
+"&Takviyeli Siper"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeSiperReinforced
+"Beton ve üst örtü: her Siper yıkılmadan önce yarısı kadar daha fazla dayanır."
END
UPGRADE:TurkiyeThermal
@@ -17496,40 +17620,28 @@ CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
"Bayraktar'ın mühimmatı hedefini kendi seçer: menzildeki en pahalı düşman."
END
-UPGRADE:TurkiyeFuelResupply
-"Yakıt İkmali"
-END
-
SCIENCE:TurkiyeRapidDeployment
-"Hızlı İntikal"
-END
-
-CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
-"Bir kargo uçağı gösterdiğin yere altı Mehmetçik ve iki Sungur nişancısı bırakır. \n \n Kullanıldığı yer: Karargah"
+"Gökbey İndirmesi 1"
END
-CONTROLBAR:TurkiyeRapidDeployment
-"&Hızlı İntikal"
+SCIENCE:TurkiyeRapidDeployment2
+"Gökbey İndirmesi 2"
END
-CONTROLBAR:TooltipTurkiyeRapidDeployment
-"Hızlı İntikal \n Geri Sayım: 3:00"
+SCIENCE:TurkiyeRapidDeployment3
+"Gökbey İndirmesi 3"
END
-SCIENCE:TurkiyeFireMission
-"Atış Desteği"
-END
-
-CONTROLBAR:ToolTipTurkiyeScienceFireMission
-"Harita dışından hedefe otuz altı ağır mermi düşer. \n \n Kullanıldığı yer: Karargah"
+CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
+"Mehmetçikler ve Sungur nişancıları gösterdiğin yere paraşütle iner: 1. seviyede altı, 2. seviyede on, 3. seviyede on dört asker ve bir Kirpi. \n \n Kullanıldığı yer: Karargah"
END
-CONTROLBAR:TurkiyeFireMission
-"&Atış Desteği"
+CONTROLBAR:TurkiyeRapidDeployment
+"&Gökbey İndirmesi"
END
-CONTROLBAR:TooltipTurkiyeFireMission
-"Atış Desteği \n Geri Sayım: 4:00"
+CONTROLBAR:TooltipTurkiyeRapidDeployment
+"Gökbey İndirmesi \n Geri Sayım: 3:00"
END
SCIENCE:TurkiyeCommandoRaid
diff --git a/GeneralsMD/Code/Data/Ukrainian/Generals.str b/GeneralsMD/Code/Data/Ukrainian/Generals.str
index 8c029949c..956394a13 100644
--- a/GeneralsMD/Code/Data/Ukrainian/Generals.str
+++ b/GeneralsMD/Code/Data/Ukrainian/Generals.str
@@ -18165,76 +18165,200 @@ CONTROLBAR:ConstructTurkiyePatriotBattery
"Батарея H&isar"
END
-SCIENCE:TurkiyeMinefield
-"Мінне поле"
+SCIENCE:TurkiyeLaserDesignation
+"Лазерне цілевказання"
END
-CONTROLBAR:ToolTipTurkiyeScienceMinefield
-"Транспортний літак засіває мінне поле там, куди ви вкажете. \n \n Застосування з: Штаб"
+CONTROLBAR:ToolTipTurkiyeScienceLaserDesignation
+"Групи розвідників і Bayraktar підсвічують те, що атакують. Підсвічена ціль вважається в зоні радара, де б вона не стояла, і кожна ракета з радарним наведенням тримає на ній захоплення."
END
-CONTROLBAR:TurkiyeMinefield
-"&Мінне поле"
+UPGRADE:TurkiyeLaserDesignation
+"Лазерне цілевказання"
+END
+
+SCIENCE:TurkiyeEarlyWarning
+"Раннє попередження"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceEarlyWarning
+"Кожен радар Туреччини сягає на чверть далі: Штаб, радарна вежа, Koral, Akinci і мобільний радар."
+END
+
+UPGRADE:TurkiyeEarlyWarning
+"Раннє попередження"
+END
+
+SCIENCE:TurkiyeUavRecon
+"Розвідка БПЛА"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceUavRecon
+"БПЛА 30 секунд кружляє над зоною і повідомляє про кожен ворожий підрозділ у ній, що стоїть чи рухається, і про те, що це. Туман лишається, але зона вважається в зоні радара. \n \n Застосування з: Штаб"
+END
+
+CONTROLBAR:TurkiyeUavRecon
+"&Розвідка БПЛА"
+END
+
+CONTROLBAR:TooltipTurkiyeUavRecon
+"Розвідка БПЛА \n Перезарядка: 2:00"
+END
+
+GUI:HudReconSiha
+"РОЗВІДКА БПЛА"
+END
+
+SCIENCE:TurkiyeMobileRadar
+"Мобільний радар"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceMobileRadar
+"Завод випускає мобільний радар: радарну вантажівку, що охоплює 900 навколо себе, поки стоїть."
+END
+
+OBJECT:TurkiyeVehicleMobileRadar
+"Мобільний радар"
END
-CONTROLBAR:TooltipTurkiyeMinefield
-"Мінне поле \n Перезарядка: 4:00"
+CONTROLBAR:ConstructTurkiyeVehicleMobileRadar
+"&Мобільний радар"
END
-SCIENCE:TurkiyeFuelResupply
-"Дозаправлення"
+CONTROLBAR:ToolTipTurkiyeVehicleMobileRadar
+"Радар на колесах: стоячи, охоплює 900 навколо себе, у русі - нічого. Без зброї. \n \n Потрібно: Мобільний радар (звання 3)"
END
-CONTROLBAR:ToolTipTurkiyeScienceFuelResupply
-"Дрони Bayraktar несуть на один боєприпас більше за кожен виліт."
+SCIENCE:TurkiyeAkinciAesa
+"АФАР Akinci"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceAkinciAesa
+"Радар Akinci сягає 1000 замість 750."
+END
+
+UPGRADE:TurkiyeAkinciAesa
+"АФАР Akinci"
END
SCIENCE:TurkiyeSwarmMunition
-"Блукаючий боєприпас"
+"Рій БПЛА 1"
+END
+
+SCIENCE:TurkiyeSwarmMunition2
+"Рій БПЛА 2"
+END
+
+SCIENCE:TurkiyeSwarmMunition3
+"Рій БПЛА 3"
END
CONTROLBAR:ToolTipTurkiyeScienceSwarmMunition
-"Один блукаючий боєприпас кружляє там, куди ви вкажете, і пікірує на найдорожчу ціль, яку знайде. \n \n Застосування з: Штаб"
+"Блукаючі боєприпаси кружляють там, куди ви вкажете, і кожен пікірує на найдорожчу ціль, яку знайде: один на рівні 1, три на рівні 2, п'ять на рівні 3. \n \n Застосування з: Штаб"
END
CONTROLBAR:TurkiyeSwarmMunition
-"Блукаючий &боєприпас"
+"&Рій БПЛА"
END
CONTROLBAR:TooltipTurkiyeSwarmMunition
-"Блукаючий боєприпас \n Перезарядка: 3:00"
+"Рій БПЛА \n Перезарядка: 3:00"
END
SCIENCE:TurkiyeElectronicBlinding
-"Електронне осліплення"
+"Радіоелектронна боротьба"
END
CONTROLBAR:ToolTipTurkiyeScienceElectronicBlinding
-"Кожен ворог із будівлею в зоні цілі втрачає радар на 30 секунд. \n \n Застосування з: Штаб"
+"Кожен ворог із будівлею в зоні цілі втрачає радар на 30 секунд, і весь цей час зона заглушена: ворожі дрони й навідники в ній нічого не бачать, а керовані ракети, що пролітають крізь неї, втрачають захоплення. \n \n Застосування з: Штаб"
END
CONTROLBAR:TurkiyeElectronicBlinding
-"Електронне &осліплення"
+"Радіоелектронна &боротьба"
END
CONTROLBAR:TooltipTurkiyeElectronicBlinding
-"Електронне осліплення \n Перезарядка: 4:00"
+"Радіоелектронна боротьба \n Перезарядка: 4:00"
+END
+
+SCIENCE:TurkiyeSatelliteGuidance
+"Супутникове наведення"
+END
+
+CONTROLBAR:ToolTipTurkiyeScienceSatelliteGuidance
+"45 секунд уся карта вважається в зоні радара Туреччини: кожна ракета з радарним наведенням тримає захоплення, а ворогів, що рухаються, видно під туманом. \n \n Застосування з: Штаб"
+END
+
+CONTROLBAR:TurkiyeSatelliteGuidance
+"&Супутникове наведення"
END
-SCIENCE:TurkiyeSwarmStrike
-"Удар рою"
+CONTROLBAR:TooltipTurkiyeSatelliteGuidance
+"Супутникове наведення \n Перезарядка: 5:00"
END
-CONTROLBAR:ToolTipTurkiyeScienceSwarmStrike
-"Рій боєприпасів полює на десять найцінніших цілей на великій площі, по одному боєприпасу на ціль. Щільній базі це байдуже, розпорошеній армії ні. \n \n Застосування з: Штаб"
+SCIENCE:TurkiyeTayfun
+"Ракета Tayfun"
END
-CONTROLBAR:TurkiyeSwarmStrike
-"&Удар рою"
+CONTROLBAR:ToolTipTurkiyeScienceTayfun
+"Балістична ракета Tayfun падає на ціль. У зоні радара вона завжди влучає; поза нею влучає в точку один раз із п'яти, а решту разів лягає далеко. \n \n Застосування з: Штаб"
END
-CONTROLBAR:TooltipTurkiyeSwarmStrike
-"Удар рою \n Перезарядка: 6:00"
+CONTROLBAR:TurkiyeTayfun
+"Ракета &Tayfun"
+END
+
+CONTROLBAR:TooltipTurkiyeTayfun
+"Ракета Tayfun \n Перезарядка: 4:00"
+END
+
+UPGRADE:TurkiyeTargetClassification
+"Класифікація цілей"
+END
+
+CONTROLBAR:UpgradeTurkiyeTargetClassification
+"&Класифікація цілей"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeTargetClassification
+"Радарні позначки показують, що це: піхота, техніка, ППО, артилерія, авіація чи оборона."
+END
+
+UPGRADE:TurkiyeAkkor
+"Активний захист AKKOR"
+END
+
+CONTROLBAR:UpgradeTurkiyeAkkor
+"&Активний захист AKKOR"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeAkkor
+"Кожен Altay несе заряд активного захисту, який раз на три секунди підриває ракету чи реактивний снаряд, що підлітає."
+END
+
+UPGRADE:TurkiyeGokdogan
+"Ракети Gokdogan"
+END
+
+CONTROLBAR:UpgradeTurkiyeGokdogan
+"Ракети &Gokdogan"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeGokdogan
+"Kizilelma стріляють Gokdogan: дальність 360 замість 280, шкода 130 замість 100."
+END
+
+UPGRADE:TurkiyeSiperReinforced
+"Укріплений Siper"
+END
+
+CONTROLBAR:UpgradeTurkiyeSiperReinforced
+"&Укріплений Siper"
+END
+
+CONTROLBAR:ToolTipUpgradeTurkiyeSiperReinforced
+"Бетон і перекриття: кожен Siper витримує в півтора раза більше."
END
UPGRADE:TurkiyeThermal
@@ -18273,40 +18397,28 @@ CONTROLBAR:ToolTipUpgradeTurkiyeSwarmSoftware
"Боєприпаси Bayraktar самі обирають ціль: найдорожчого ворога в досяжності."
END
-UPGRADE:TurkiyeFuelResupply
-"Дозаправлення"
-END
-
SCIENCE:TurkiyeRapidDeployment
-"Швидке розгортання"
+"Десант Gokbey 1"
END
-CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
-"Транспортний літак скидає шістьох Mehmetcik і двох гранатометників Sungur там, куди ви вкажете. \n \n Застосування з: Штаб"
+SCIENCE:TurkiyeRapidDeployment2
+"Десант Gokbey 2"
END
-CONTROLBAR:TurkiyeRapidDeployment
-"&Швидке розгортання"
+SCIENCE:TurkiyeRapidDeployment3
+"Десант Gokbey 3"
END
-CONTROLBAR:TooltipTurkiyeRapidDeployment
-"Швидке розгортання \n Перезарядка: 3:00"
-END
-
-SCIENCE:TurkiyeFireMission
-"Вогнева місія"
-END
-
-CONTROLBAR:ToolTipTurkiyeScienceFireMission
-"Тридцять шість важких снарядів падають на ціль із-за меж карти. \n \n Застосування з: Штаб"
+CONTROLBAR:ToolTipTurkiyeScienceRapidDeployment
+"Стрільці Mehmetcik і гранатометники Sungur висаджуються з парашутами там, куди ви вкажете: шість на рівні 1, десять на рівні 2, чотирнадцять і Kirpi на рівні 3. \n \n Застосування з: Штаб"
END
-CONTROLBAR:TurkiyeFireMission
-"&Вогнева місія"
+CONTROLBAR:TurkiyeRapidDeployment
+"&Десант Gokbey"
END
-CONTROLBAR:TooltipTurkiyeFireMission
-"Вогнева місія \n Перезарядка: 4:00"
+CONTROLBAR:TooltipTurkiyeRapidDeployment
+"Десант Gokbey \n Перезарядка: 3:00"
END
SCIENCE:TurkiyeCommandoRaid
diff --git a/GeneralsMD/Code/GameEngine/Include/Common/Upgrade.h b/GeneralsMD/Code/GameEngine/Include/Common/Upgrade.h
index 052b860c5..3cb9b0d92 100644
--- a/GeneralsMD/Code/GameEngine/Include/Common/Upgrade.h
+++ b/GeneralsMD/Code/GameEngine/Include/Common/Upgrade.h
@@ -257,6 +257,11 @@ public:
static void parseUpgradeDefinition( INI *ini );
+ /** The upgrade so named, or a fatal error naming it and who asked, in every build. For a module
+ * whose data names an upgrade: the objects parse before the upgrades, so it holds the name and
+ * looks it up as it is made. */
+ const UpgradeTemplate *requireUpgrade( const AsciiString &name, const AsciiString &who ) const;
+
protected:
UpgradeTemplate *findNonConstUpgradeByKey( NameKeyType key ); ///< find upgrade by name key
diff --git a/GeneralsMD/Code/GameEngine/Include/GameClient/RadarContactMarks.h b/GeneralsMD/Code/GameEngine/Include/GameClient/RadarContactMarks.h
index a268e6e15..7500506f9 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameClient/RadarContactMarks.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameClient/RadarContactMarks.h
@@ -12,32 +12,63 @@
#include "Common/GameType.h"
#include <vector>
-/** One painted contact: whose radar saw it, what it is (for a pick, never drawn) and where it stood. */
+/** A contact's class, drawn as a small glyph once the logic knows it (a SIHA recon source, or a
+ * radar whose owner has Hedef Siniflandirma). A value is its cell in the glyph sheet, less one. */
+enum RadarGlyph
+{
+ RADAR_GLYPH_NONE = 0,
+ RADAR_GLYPH_INFANTRY,
+ RADAR_GLYPH_VEHICLE,
+ RADAR_GLYPH_ANTIAIR,
+ RADAR_GLYPH_ARTILLERY,
+ RADAR_GLYPH_AIRCRAFT,
+ RADAR_GLYPH_STRUCTURE_DEFENCE,
+
+ RADAR_GLYPH_COUNT
+};
+
+/** One painted contact: whose radar saw it, what it is and where it stood. */
struct RadarContact
{
Int player; ///< the player index whose radar painted it
- ObjectID id;
+ ObjectID id; ///< for a pick and a heading, never drawn
Coord3D pos;
+ UnsignedByte glyph; ///< a RadarGlyph; RADAR_GLYPH_NONE when the class is not known
+ Bool recon; ///< seen by a SeesStationary source (SIHA recon): drawn as a chip, not a red ring
};
-/** A sweep's contacts for every player. Main thread: the logic calls it through callAfterTick. */
-void RadarContactMarks_publish( UnsignedInt sweepFrame, const std::vector<RadarContact> &all );
+/** A live SeesStationary source, for its area ring and its countdown tray. */
+struct RadarReconArea
+{
+ Int player; ///< the player index the area reports to
+ Coord3D pos;
+ Real radius;
+ UnsignedInt endFrame; ///< the logic frame the source runs out on; 0 for a source with no end (ring, no countdown)
+};
+
+/** A sweep's contacts and recon areas for every player. Main thread: the logic calls it through callAfterTick. */
+void RadarContactMarks_publish( UnsignedInt sweepFrame, const std::vector<RadarContact> &contacts, const std::vector<RadarReconArea> &areas );
/// InGameUI::update: reads the logic (outside the logic thread's window), refills the lists below and
-/// lays and animates the ground marks. The three getters after reset only read what it left, so a
-/// draw beside the tick may call them
+/// lays and animates the ground marks. The getters and the draw after reset only read what it left,
+/// so a draw beside the tick may call them
void RadarContactMarks_update( void );
void RadarContactMarks_reset( void ); ///< InGameUI::reset: forgets both sweeps, releases the decals
+/// InGameUI::preDraw, in the 2D pass: the chips over recon contacts, the glyphs beside classified red
+/// rings and each recon area's tray, kept above bottom (the command bar's top on the screen)
+void RadarContactMarks_draw( Int bottom );
/// the shown player's contacts (TheObserverCamera.getShroudPlayerIndex()), this sweep, less any
/// unit that has since come into his sight
const std::vector<RadarContact> &RadarContactMarks_fresh( void );
/// the shown player's contacts, the sweep before, less the same
const std::vector<RadarContact> &RadarContactMarks_echoes( void );
+/// the shown player's recon areas still running (an endFrame of 0 never runs out)
+const std::vector<RadarReconArea> &RadarContactMarks_areas( void );
/// 0 at a publish, rising to 1 by the next sweep is due
Real RadarContactMarks_sweepAge( void );
/// the local player's fresh contact nearest pos within RadarContactLook::PickRadius, else INVALID_ID
ObjectID RadarContactMarks_pick( const Coord3D &pos );
-/** The look, in world units, seconds, alphas and minimap pixels. */
+/** The look, in world units, seconds, alphas, pixels and colours. */
namespace RadarContactLook
{
const Real SweepSeconds = 2.0f; ///< the logic's sweep period, what sweepAge counts to
@@ -54,6 +85,19 @@ namespace RadarContactLook
const Int MinimapPip = 3; ///< pixels across, the fresh contact's square
const Int MinimapRing = 9; ///< pixels across, the faint ring round it
const Int MinimapEcho = 2; ///< pixels across, the previous sweep's square
+
+ // SIHA recon, as recon_v1 has it
+ const UnsignedInt Amber = 0xFFFFB428; ///< a contact whose type is known: ground ring, glyph, chevron, minimap dot
+ const UnsignedInt AreaGreen = 0xFF5AD278; ///< the recon area's dashed ring and its tray's label
+ const UnsignedInt TrayText = 0xFFCDFFCD; ///< the tray's time left
+ const Real AreaAlpha = 0.8f; ///< the area ring's decal
+ const Real AreaDecalSpan = 256.0f / 240.0f; ///< the area decal across over the area's diameter: its ring sits at 240 of 256 (Tools/recon_marks.py)
+ const Real ReconRingSize = 14.0f; ///< across, the amber ground ring under a recon contact
+ const Real ChevronAhead = 12.0f; ///< world units from the contact to the heading chevron's tip
+ const Real MoverDistance = 3.0f; ///< world units between two sweeps that make a contact a mover
+ const Real ChipHeight = 26.0f; ///< world units over the ground the chip floats, where a health bar sits
+ const Real TrayPixels = 10.0f; ///< the tray's lettering at 1920x1080, scaled with the interface
+ const Int MinimapReconDot = 3; ///< pixels across, the recon contact's dot on its dark keyline
}
#endif
diff --git a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/PointDefenseLaserUpdate.h b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/PointDefenseLaserUpdate.h
index c69148301..809f54f03 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/PointDefenseLaserUpdate.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/PointDefenseLaserUpdate.h
@@ -38,6 +38,7 @@
// FORWARD REFERENCES /////////////////////////////////////////////////////////////////////////////
class ThingTemplate;
+class UpgradeTemplate;
class WeaponTemplate;
@@ -52,6 +53,7 @@ public:
UnsignedInt m_scanFrames;
Real m_scanRange;
Real m_velocityFactor;
+ AsciiString m_requiredUpgrade; ///< idle until the owner has it
PointDefenseLaserUpdateModuleData();
static void buildFieldParse(MultiIniFieldParse& p);
@@ -87,6 +89,7 @@ protected:
Int m_nextScanFrames;
Int m_nextShotAvailableInFrames;
Int m_shotsFiredFromClip; ///< against the weapon's ClipSize; EA's point defense has none and never counts
+ const UpgradeTemplate *m_requiredUpgrade; ///< the data's RequiredUpgrade, found once; derived, not saved
};
diff --git a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarCoverageBehavior.h b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarCoverageBehavior.h
index b337426e4..bc10f4a52 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarCoverageBehavior.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarCoverageBehavior.h
@@ -21,6 +21,8 @@
// Turkiye's radar: a circle of Radius in which its own and its allies' radar-guided rockets keep
// their lock (WeaponTemplate RadarBlindHitChance, Weapon.cpp), and in which moving enemies hidden in
// the fog are tracked: painted on the ground for the player, open to beyond-vision artillery.
+// A source may wait for an upgrade, grow with others, go dark while it drives (a mobile radar),
+// cover only the enemy it aims at (a laser designator), or see standing units too (a recon drone).
//
///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -32,13 +34,27 @@
#include "GameLogic/Module/BehaviorModule.h"
class Player;
+class UpgradeTemplate;
//-------------------------------------------------------------------------------------------------
class RadarCoverageBehaviorModuleData : public BehaviorModuleData
{
public:
+ /// RadiusUpgrade = <upgrade> <scale>, repeatable: Radius times every scale whose upgrade the owner has
+ struct RadiusUpgrade
+ {
+ AsciiString m_upgrade;
+ Real m_scale;
+ };
+
Real m_radius;
+ std::vector<RadiusUpgrade> m_radiusUpgrades;
+ AsciiString m_requiredUpgrade; ///< covers nothing until the owner has it
+ AsciiString m_classifyUpgrade; ///< its contacts carry a class glyph once the owner has it
+ Bool m_onlyWhenStationary; ///< covers nothing while the source moves
+ Bool m_paintsTargetOnly; ///< covers only its own enemy attack or goal target within Radius, not the circle
+ Bool m_seesStationary; ///< also reports stationary enemies, always classified
RadarCoverageBehaviorModuleData();
@@ -60,22 +76,45 @@ public:
/// a working radar of this player or an ally covers this point
static Bool isCovered( const Player *player, const Coord3D *pos );
- /** The radar holds this unit for this player: it moves, stealth does not hide it, and it stands
- * in the player's or an ally's coverage. Says nothing of the fog or of whose side it is on;
- * the caller asks those. */
+ /** The radar holds this unit for this player: stealth does not hide it, and it either moves in
+ * the player's or an ally's coverage, stands in a SeesStationary source, or is a source's painted
+ * target. Says nothing of the fog or of whose side it is on; the caller asks those. */
static Bool isTracked( const Player *player, const Object *obj );
/** GameLogic::update, after the partition manager: every RADAR_SWEEP_FRAMES, hands the client
- * each player's tracked enemies standing in fog (GameClient/RadarContactMarks.h). Keeps nothing. */
+ * each player's tracked enemies standing in fog and the live SeesStationary areas
+ * (GameClient/RadarContactMarks.h). Keeps nothing. */
static void sweep( void );
private:
+ /// what a player's radars make of a point, or of the object standing there
+ struct Survey
+ {
+ Bool covered; ///< an area reaches it, or it is a painted target
+ Bool painted; ///< a PaintsTargetOnly source has it as its target
+ Bool recon; ///< a SeesStationary source reaches it
+ Bool classified; ///< a source that reaches it names its class
+ };
+ /// when survey may stop: at the first coverage, the first paint, the first paint or recon, or never
+ enum SurveyNeed { SURVEY_COVER, SURVEY_PAINT, SURVEY_HOLD, SURVEY_ALL };
+ static void survey( const Player *player, const Coord3D *pos, const Object *target, SurveyNeed need, Survey &out );
+
+ Real reach( void ) const; ///< effective radius, 0 while it covers nothing
+ const Object *paintedTarget( void ) const; ///< its enemy attack or goal target within reach, PaintsTargetOnly only
+ Bool classifies( void ) const;
+
/* Every radar in the game, in no order that matters: isCovered only asks whether any of them
reaches. The constructor and destructor keep it, so a loaded game rebuilds it as its objects
are made and there is nothing to save. */
static RadarCoverageBehavior *s_first;
RadarCoverageBehavior *m_next;
+
+ /* The module data's upgrade names, found once: the upgrades are parsed after the objects, so the
+ data can only hold names. Derived, not saved. */
+ std::vector<const UpgradeTemplate *> m_radiusUpgrades;
+ const UpgradeTemplate *m_requiredUpgrade;
+ const UpgradeTemplate *m_classifyUpgrade;
};
#endif // __RADAR_COVERAGE_BEHAVIOR_H_
diff --git a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarJamSpecialPower.h b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarJamSpecialPower.h
index 2b56baa17..42360f63d 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarJamSpecialPower.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/RadarJamSpecialPower.h
@@ -31,6 +31,7 @@
#include "GameLogic/Module/SpecialPowerModule.h"
class FXList;
+class ObjectCreationList;
//-------------------------------------------------------------------------------------------------
class RadarJamSpecialPowerModuleData : public SpecialPowerModuleData
@@ -44,6 +45,7 @@ public:
Real m_radius;
UnsignedInt m_durationFrames;
const FXList *m_fx;
+ const ObjectCreationList *m_ocl; ///< created at the target point as the power fires
};
//-------------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SwarmStrikeSpecialPower.h b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SwarmStrikeSpecialPower.h
index 72a468817..d0d8bc2d4 100644
--- a/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SwarmStrikeSpecialPower.h
+++ b/GeneralsMD/Code/GameEngine/Include/GameLogic/Module/SwarmStrikeSpecialPower.h
@@ -45,8 +45,16 @@ public:
static void buildFieldParse( MultiIniFieldParse& p );
+ /// UpgradeTargetCount = <science> <count>: the first one the player owns replaces TargetCount
+ struct UpgradeTargetCount
+ {
+ ScienceType m_science;
+ Int m_count;
+ };
+
Real m_radius;
Int m_targetCount;
+ std::vector<UpgradeTargetCount> m_upgradeTargetCount;
Bool m_repeatTargets;
const WeaponTemplate *m_weapon;
const FXList *m_targetFX;
diff --git a/GeneralsMD/Code/GameEngine/Source/Common/System/Upgrade.cpp b/GeneralsMD/Code/GameEngine/Source/Common/System/Upgrade.cpp
index 0acfd40d7..761904c40 100644
--- a/GeneralsMD/Code/GameEngine/Source/Common/System/Upgrade.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/Common/System/Upgrade.cpp
@@ -400,6 +400,19 @@ const UpgradeTemplate *UpgradeCenter::findUpgrade( const AsciiString& name ) con
} // end findUpgrade
+//-------------------------------------------------------------------------------------------------
+const UpgradeTemplate *UpgradeCenter::requireUpgrade( const AsciiString &name, const AsciiString &who ) const
+{
+ const UpgradeTemplate *upgrade = findUpgrade( name );
+ if( !upgrade )
+ {
+ AsciiString reason;
+ reason.format( "No upgrade named '%s' (%s)", name.str(), who.str() );
+ RELEASE_CRASH( reason.str() );
+ }
+ return upgrade;
+}
+
//-------------------------------------------------------------------------------------------------
/** Allocate a new upgrade template */
//-------------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
index 4207e5173..8863f3cea 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/InGameUI.cpp
@@ -3246,6 +3246,8 @@ void InGameUI::handleBuildPlacements( void )
} // end handleBuildPlacements
+static Int radarFrameTop( void );
+
//-------------------------------------------------------------------------------------------------
/** Pre-draw phase of the in game ui */
//-------------------------------------------------------------------------------------------------
@@ -3267,6 +3269,10 @@ void InGameUI::preDraw( void )
// draw the floating text first;
drawFloatingText();
+ // the SIHA recon chips and trays, and the glyphs beside classified radar rings; a tray stays
+ // clear of the command bar and the radar's frame, the highest of it
+ RadarContactMarks_draw( radarFrameTop() );
+
// draw world animations
updateAndDrawWorldAnimations();
diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/RadarContactMarks.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/RadarContactMarks.cpp
index 123e625dd..9d5a374a2 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameClient/RadarContactMarks.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/RadarContactMarks.cpp
@@ -1,9 +1,13 @@
// The Turkiye radar's contacts on the ground (RadarContactMarks.h): per contact a red ring with a
// bright centre pip lying on the terrain and two ping ripples running out of it, and where the
-// sweep before saw something, a faint thin ring fading out. The decals are the smoke-signal marks'
-// kind (InGameUI::addSignalMark), so every renderer draws them through the shared decal path.
-// Client side: it reads the logic (the water, the bridges) and the drawables, and writes nothing
-// back.
+// sweep before saw something, a faint thin ring fading out. A SIHA recon contact is drawn as
+// recon_v1 has it instead: an amber ring on the ground, a leader line up to a steel chip with its
+// class glyph where a health bar sits, a chevron for its heading when it moves; and every recon area
+// gets a dashed green ring on the ground and a steel tray with its countdown. The decals are the
+// smoke-signal marks' kind (InGameUI::addSignalMark), so every renderer draws them through the shared
+// decal path; the chips and trays are mapped images (Tools/recon_marks.py) drawn in the 2D pass.
+// Client side: it reads the logic (the water, the bridges, the frame) and the drawables in update
+// only, and writes nothing back.
// Distributed under the repository's GPL-3.0 terms; see LICENSE.md.
#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
@@ -14,77 +18,149 @@
#include "Common/Player.h"
#include "Common/PlayerList.h"
#include "GameClient/CinemaDirector.h"
+#include "GameClient/Display.h"
+#include "GameClient/DisplayString.h"
+#include "GameClient/DisplayStringManager.h"
#include "GameClient/Drawable.h"
+#include "GameClient/GameFont.h"
+#include "GameClient/GameText.h"
+#include "GameClient/GlobalLanguage.h"
+#include "GameClient/Image.h"
#include "GameClient/ObserverCamera.h"
#include "GameClient/Shadow.h"
+#include "GameClient/View.h"
#include "GameLogic/GameLogic.h"
#include "GameLogic/Object.h"
#include "GameLogic/TerrainLogic.h"
namespace
{
- // ponytail: a hard cap on the contacts drawn per sweep; a radar painting more than this is a
- // screen of red already, and the pool would want to grow without bound
+ // ponytail: hard caps on the contacts drawn per sweep; a radar painting more than this is a
+ // screen of red already, and the pools would want to grow without bound. A recon area sees every
+ // unit standing in it, a base and its army, so its chips get a cap of their own, taken first
const size_t MAX_CONTACTS = 64;
+ const size_t MAX_RECON_CONTACTS = 160;
struct Sweep
{
UnsignedInt frame;
std::vector< RadarContact > all;
+ std::vector< RadarReconArea > areas;
};
Sweep s_sweeps[ 2 ]; ///< [0] the last publication, [1] the one before
Int s_publications = 0; ///< how many s_sweeps hold, 0..2
- // what RadarContactMarks_update worked out this pass, for the minimap draw to read without
- // touching the logic or a drawable while it may run beside the tick (logic thread)
+ /// a recon area's whole run, in frames from the first sweep that reported it to its end: the
+ /// logic hands over only the end, and the countdown bar wants the start too
+ struct AreaClock
+ {
+ Int player;
+ UnsignedInt endFrame;
+ UnsignedInt total;
+ };
+ std::vector< AreaClock > s_clocks;
+
+ // what RadarContactMarks_update worked out this pass, for the minimap and the 2D draw to read
+ // without touching the logic or a drawable while they may run beside the tick (logic thread)
std::vector< RadarContact > s_fresh;
std::vector< RadarContact > s_echoes;
+ std::vector< RadarReconArea > s_areas;
Real s_sweepAge = 0.0f;
+ Bool s_drawHud = FALSE; ///< icons shown this pass (scripts, -cinema)
+
+ /// a fresh contact the 2D pass draws something over: a recon chip, or a classified ring's glyph
+ struct Chip
+ {
+ Coord3D pos;
+ Coord3D ahead; ///< where the heading chevron points, for a recon contact that moved
+ Bool mover;
+ Bool recon;
+ Bool ringLaid; ///< a red ring went down under it (onOpenGround), which a classified glyph sits beside
+ UnsignedByte glyph;
+ Real alpha;
+ };
+ std::vector< Chip > s_chips;
- std::vector< Shadow * > s_contactDecals; ///< ReforgedRadarContact, one per fresh contact
- std::vector< Shadow * > s_ringDecals; ///< ReforgedRadarRing, two ripples per fresh contact and one per echo
+ /// a recon area as the 2D pass draws its tray
+ struct Tray
+ {
+ Coord3D pos;
+ Real radius;
+ Int secondsLeft; ///< -1 for an area with no end: no time, no bar
+ Real left; ///< 1 at the start of the run, 0 at its end
+ };
+ std::vector< Tray > s_trays;
+
+ std::vector< Shadow * > s_contactDecals; ///< ReforgedRadarContact, one per fresh red contact
+ std::vector< Shadow * > s_ringDecals; ///< ReforgedRadarRing, two ripples per fresh red contact and one per echo
+ std::vector< Shadow * > s_reconDecals; ///< ReforgedRadarRing in amber, one per fresh recon contact
+ std::vector< Shadow * > s_areaDecals; ///< ReforgedReconArea in green, one per recon area
+
+ // the 2D pieces, found once the mapped images are loaded
+ const Image *s_glyphImages[ RADAR_GLYPH_COUNT ] = { NULL };
+ const Image *s_chipImage = NULL;
+ const Image *s_trayImage = NULL;
+ const Image *s_barImage = NULL;
+ DisplayString *s_trayLabel = NULL;
+ std::vector< DisplayString * > s_trayTimes; ///< one per tray drawn, kept so a time is laid out once a second
+ Int s_trayPoints = 0; ///< the size the strings above were made at; a new interface scale makes them again
/** The player's contacts in a sweep, less any whose unit is drawn now: a red ring left under a unit
* he can see would only say what he sees already. It asks the drawable, which GameClient::update's
* walk has just set for this pass and for this same shown player, so the ring goes on the very
* frame the unit appears (and stays off through the walk's two seconds of keeping a unit that
- * slipped back into the fog drawn). */
+ * slipped back into the fog drawn). Recon contacts go in first, under their own cap, so a
+ * crowd of red never pushes a recon chip out. */
void pickOut( const Sweep &sweep, Int player, std::vector< RadarContact > &out )
{
out.clear();
- for( size_t index = 0; index < sweep.all.size() && out.size() < MAX_CONTACTS; index++ )
+ for( Int recon = 1; recon >= 0; recon-- )
{
- const RadarContact &contact = sweep.all[ index ];
- if( contact.player != player )
- continue;
- const Object *obj = TheGameLogic->findObjectByID( contact.id );
- Drawable *draw = obj != NULL ? obj->getDrawable() : NULL;
- if( draw != NULL && !draw->getFullyObscuredByShroud() )
- continue;
- out.push_back( contact );
+ const size_t cap = recon ? MAX_RECON_CONTACTS : out.size() + MAX_CONTACTS;
+ for( size_t index = 0; index < sweep.all.size() && out.size() < cap; index++ )
+ {
+ const RadarContact &contact = sweep.all[ index ];
+ if( contact.player != player || (Int)contact.recon != recon )
+ continue;
+ const Object *obj = TheGameLogic->findObjectByID( contact.id );
+ Drawable *draw = obj != NULL ? obj->getDrawable() : NULL;
+ if( draw != NULL && !draw->getFullyObscuredByShroud() )
+ continue;
+ out.push_back( contact );
+ }
}
}
- /// the shown player's two lists, refilled every pass: what is drawn changes with the pass, not the sweep
- void refreshShown( void )
+ /// the shown player's lists, refilled every pass: what is drawn changes with the pass, not the sweep
+ void refreshShown( UnsignedInt now )
{
const Int player = TheObserverCamera.getShroudPlayerIndex();
s_fresh.clear();
s_echoes.clear();
+ s_areas.clear();
if( s_publications > 0 )
+ {
pickOut( s_sweeps[ 0 ], player, s_fresh );
+ const std::vector< RadarReconArea > &areas = s_sweeps[ 0 ].areas;
+ for( size_t index = 0; index < areas.size(); index++ )
+ {
+ // an area ends between sweeps: it goes on its own frame, not the next sweep's. An end
+ // of 0 is an area with no end, which keeps its ring and goes without a countdown
+ if( areas[ index ].player == player && ( areas[ index ].endFrame == 0 || areas[ index ].endFrame > now ) )
+ s_areas.push_back( areas[ index ] );
+ }
+ }
if( s_publications > 1 )
pickOut( s_sweeps[ 1 ], player, s_echoes );
}
/// seconds since the last publication, by the logic's clock and the way into the next tick, so a
/// ripple runs smooth at a frame rate over the logic's
- Real secondsSinceSweep( void )
+ Real secondsSinceSweep( UnsignedInt now )
{
if( s_publications == 0 )
return 0.0f;
- const UnsignedInt now = TheGameLogic->getFrame();
const UnsignedInt since = now > s_sweeps[ 0 ].frame ? now - s_sweeps[ 0 ].frame : 0;
return ( (Real)since + GameEngine_logicTickFraction() ) / LOGICFRAMES_PER_SECOND;
}
@@ -97,7 +173,7 @@ namespace
return !TheTerrainLogic->isUnderwater( pos.x, pos.y ) && TheTerrainLogic->getLayerForDestination( &pos ) == LAYER_GROUND;
}
- Shadow *newDecal( const char *texture )
+ Shadow *newDecal( const char *texture, UnsignedInt colour )
{
Shadow::ShadowTypeInfo decalInfo;
decalInfo.allowUpdates = FALSE;
@@ -109,17 +185,17 @@ namespace
decalInfo.m_offsetX = 0.0f;
decalInfo.m_offsetY = 0.0f;
Shadow *decal = TheProjectedShadowManager->addDecal( &decalInfo );
- decal->setColor( (Color)RadarContactLook::Colour );
+ decal->setColor( (Color)colour );
decal->setOpacity( 0 );
decal->enableShadowRender( FALSE );
return decal;
}
- /// the next decal from a pool, made when the pool has run out
- Shadow *take( std::vector< Shadow * > &pool, size_t &used, const char *texture )
+ /// the next decal from a pool, made when the pool has run out; a pool keeps one texture and one tint
+ Shadow *take( std::vector< Shadow * > &pool, size_t &used, const char *texture, UnsignedInt colour )
{
if( used == pool.size() )
- pool.push_back( newDecal( texture ) );
+ pool.push_back( newDecal( texture, colour ) );
return pool[ used++ ];
}
@@ -140,28 +216,334 @@ namespace
pool[ index ]->enableShadowRender( FALSE );
}
}
+
+ void releaseAll( std::vector< Shadow * > &pool )
+ {
+ for( size_t index = 0; index < pool.size(); index++ )
+ pool[ index ]->release();
+ pool.clear();
+ }
+
+ /// the same unit in the sweep before, for its heading; NULL when that sweep did not see it
+ const RadarContact *lastSeen( const RadarContact &contact )
+ {
+ if( s_publications < 2 )
+ return NULL;
+ const std::vector< RadarContact > &all = s_sweeps[ 1 ].all;
+ for( size_t index = 0; index < all.size(); index++ )
+ {
+ if( all[ index ].id == contact.id && all[ index ].player == contact.player )
+ return &all[ index ];
+ }
+ return NULL;
+ }
+
+ /// the chips' draw list: alpha by the sweep, a heading for a recon contact that moved since the last
+ void fillChips( Real alpha )
+ {
+ using namespace RadarContactLook;
+ s_chips.clear();
+ for( size_t index = 0; index < s_fresh.size(); index++ )
+ {
+ const RadarContact &contact = s_fresh[ index ];
+ if( !contact.recon && contact.glyph == RADAR_GLYPH_NONE )
+ continue;
+ Chip chip;
+ chip.pos = contact.pos;
+ chip.ahead = contact.pos;
+ chip.mover = FALSE;
+ chip.recon = contact.recon;
+ chip.ringLaid = !contact.recon && onOpenGround( contact.pos );
+ chip.glyph = contact.glyph;
+ chip.alpha = alpha;
+ const RadarContact *last = contact.recon ? lastSeen( contact ) : NULL;
+ if( last != NULL )
+ {
+ const Real dx = contact.pos.x - last->pos.x;
+ const Real dy = contact.pos.y - last->pos.y;
+ const Real length = sqrtf( dx * dx + dy * dy );
+ if( length > MoverDistance )
+ {
+ chip.mover = TRUE;
+ chip.ahead.x += dx / length * ChevronAhead;
+ chip.ahead.y += dy / length * ChevronAhead;
+ }
+ }
+ s_chips.push_back( chip );
+ }
+ }
+
+ /// the trays' draw list, from the areas still running at now
+ void fillTrays( UnsignedInt now )
+ {
+ s_trays.clear();
+ for( size_t index = 0; index < s_areas.size(); index++ )
+ {
+ const RadarReconArea &area = s_areas[ index ];
+ Tray tray;
+ tray.pos = area.pos;
+ tray.radius = area.radius;
+ tray.secondsLeft = -1;
+ tray.left = 1.0f;
+ if( area.endFrame != 0 )
+ {
+ UnsignedInt total = 0;
+ for( size_t clock = 0; clock < s_clocks.size(); clock++ )
+ {
+ if( s_clocks[ clock ].player == area.player && s_clocks[ clock ].endFrame == area.endFrame )
+ total = s_clocks[ clock ].total;
+ }
+ const UnsignedInt framesLeft = area.endFrame - now;
+ tray.secondsLeft = (Int)( ( framesLeft + LOGICFRAMES_PER_SECOND - 1 ) / LOGICFRAMES_PER_SECOND );
+ tray.left = clamp( 0.0f, (Real)framesLeft / (Real)total, 1.0f );
+ }
+ s_trays.push_back( tray );
+ }
+ }
+
+ void findImages( void )
+ {
+ if( s_chipImage != NULL )
+ return;
+ static const char *const glyphNames[ RADAR_GLYPH_COUNT ] =
+ {
+ NULL, "ReforgedReconGlyphInfantry", "ReforgedReconGlyphVehicle", "ReforgedReconGlyphAntiAir",
+ "ReforgedReconGlyphArtillery", "ReforgedReconGlyphAircraft", "ReforgedReconGlyphDefence"
+ };
+ for( Int glyph = RADAR_GLYPH_INFANTRY; glyph < RADAR_GLYPH_COUNT; glyph++ )
+ s_glyphImages[ glyph ] = TheMappedImageCollection->findImageByName( glyphNames[ glyph ] );
+ s_chipImage = TheMappedImageCollection->findImageByName( "ReforgedReconChip" );
+ s_trayImage = TheMappedImageCollection->findImageByName( "ReforgedReconTray" );
+ s_barImage = TheMappedImageCollection->findImageByName( "ReforgedReconBar" );
+ }
+
+ DisplayString *newTrayString( void )
+ {
+ DisplayString *string = TheDisplayStringManager->newDisplayString();
+ string->setFont( TheFontLibrary->getFont( "Arial", s_trayPoints, TRUE ) );
+ return string;
+ }
+
+ void freeTrayStrings( void )
+ {
+ if( s_trayLabel != NULL )
+ TheDisplayStringManager->freeDisplayString( s_trayLabel );
+ s_trayLabel = NULL;
+ for( size_t index = 0; index < s_trayTimes.size(); index++ )
+ TheDisplayStringManager->freeDisplayString( s_trayTimes[ index ] );
+ s_trayTimes.clear();
+ }
+
+ /// the tray's lettering at this pass's interface scale, with the tray it sits in: made again
+ /// whenever the resolution or the scale has moved it
+ void sizeTrayStrings( Real px )
+ {
+ const Int points = max( 1, REAL_TO_INT( RadarContactLook::TrayPixels * px ) );
+ if( points == s_trayPoints && s_trayLabel != NULL )
+ return;
+ freeTrayStrings();
+ s_trayPoints = points;
+ s_trayLabel = newTrayString();
+ s_trayLabel->setText( TheGameText->fetch( "GUI:HudReconSiha" ) );
+ }
+
+ Color withAlpha( UnsignedInt colour, Real alpha )
+ {
+ return (Color)( ( colour & 0x00FFFFFF ) | ( (UnsignedInt)REAL_TO_INT( clamp( 0.0f, alpha, 1.0f ) * 255.0f ) << 24 ) );
+ }
+
+ /// a stroke over a dark keyline, so it reads on sand and in shadow alike
+ void strokeKeylined( Int x0, Int y0, Int x1, Int y1, Real width, Color colour, Real alpha )
+ {
+ TheDisplay->drawLine( x0, y0, x1, y1, width + 2.0f, withAlpha( 0xFF080A08, 0.65f * alpha ) );
+ TheDisplay->drawLine( x0, y0, x1, y1, width, colour );
+ }
+
+ void drawImageCentred( const Image *image, Int x, Int y, Int width, Int height, Color colour )
+ {
+ const Int left = x - width / 2;
+ const Int top = y - height / 2;
+ TheDisplay->drawImage( image, left, top, left + width, top + height, colour );
+ }
+
+ /** A recon contact: the leader line from its ground ring up to the chip, the chevron, the chip with
+ * its glyph. A classified red contact: its glyph beside the ring, up and to the right. */
+ void drawChip( const Chip &chip, Real px )
+ {
+ using namespace RadarContactLook;
+ ICoord2D ground;
+ if( !TheTacticalView->worldToScreen( &chip.pos, &ground ) )
+ return;
+ const Image *glyph = s_glyphImages[ chip.glyph ];
+ if( !chip.recon )
+ {
+ // beside the ring that went down, at the ring's own size on the screen: by its projected
+ // radius, so it stays off the ring zoomed in and does not drift away zoomed out
+ if( !chip.ringLaid )
+ return;
+ Coord3D rim = chip.pos;
+ rim.x += RingSize * 0.5f;
+ ICoord2D edge;
+ if( TheTacticalView->worldToScreenTriReturn( &rim, &edge ) == View::WTS_INVALID )
+ return;
+ const Real ex = (Real)( edge.x - ground.x );
+ const Real ey = (Real)( edge.y - ground.y );
+ const Int size = REAL_TO_INT( 14.0f * px );
+ const Int reach = REAL_TO_INT( 0.71f * sqrtf( ex * ex + ey * ey ) ) + size / 2;
+ drawImageCentred( glyph, ground.x + reach, ground.y - reach, size, size, withAlpha( Colour, chip.alpha ) );
+ return;
+ }
+
+ const Color amber = withAlpha( Amber, chip.alpha );
+ Coord3D up = chip.pos;
+ up.z += ChipHeight;
+ ICoord2D top;
+ if( TheTacticalView->worldToScreenTriReturn( &up, &top ) == View::WTS_INVALID )
+ return;
+ const Int chipW = REAL_TO_INT( 32.0f * px );
+ const Int chipH = REAL_TO_INT( 24.0f * px );
+ strokeKeylined( ground.x, ground.y - REAL_TO_INT( 3.0f * px ), top.x, top.y + chipH / 2, 1.0f,
+ withAlpha( Amber, 0.7f * chip.alpha ), chip.alpha );
+
+ ICoord2D tip;
+ if( chip.mover && TheTacticalView->worldToScreenTriReturn( &chip.ahead, &tip ) != View::WTS_INVALID )
+ {
+ // the chevron's arms run back from its tip along the heading as the screen sees it
+ Real dx = (Real)( tip.x - ground.x );
+ Real dy = (Real)( tip.y - ground.y );
+ const Real length = sqrtf( dx * dx + dy * dy );
+ if( length > 1.0f )
+ {
+ dx /= length;
+ dy /= length;
+ const Real back = 5.0f * px;
+ const Real side = 4.0f * px;
+ const Int ax = tip.x - REAL_TO_INT( dx * back - dy * side );
+ const Int ay = tip.y - REAL_TO_INT( dy * back + dx * side );
+ const Int bx = tip.x - REAL_TO_INT( dx * back + dy * side );
+ const Int by = tip.y - REAL_TO_INT( dy * back - dx * side );
+ strokeKeylined( ax, ay, tip.x, tip.y, 2.0f, amber, chip.alpha );
+ strokeKeylined( tip.x, tip.y, bx, by, 2.0f, amber, chip.alpha );
+ }
+ }
+
+ drawImageCentred( s_chipImage, top.x, top.y, chipW, chipH, withAlpha( 0xFFFFFFFF, chip.alpha ) );
+ if( glyph != NULL )
+ {
+ const Int size = REAL_TO_INT( 20.0f * px );
+ drawImageCentred( glyph, top.x, top.y, size, size, amber );
+ }
+ }
+
+ /** A recon area's tray, centred under the lowest point of its ring on the screen: the label, the
+ * time left and the bar running down. The point is the lowest of the whole ring as projected,
+ * in the frame or not, so the tray does not jump as ring points leave the frame; the tray is then
+ * kept inside the tactical view and above the command bar (bottom), so an area half off the
+ * screen still shows its time. */
+ void drawTray( const Tray &tray, size_t index, Real px, Int bottom )
+ {
+ using namespace RadarContactLook;
+ ICoord2D lowest = { 0, 0 };
+ Bool found = FALSE;
+ const Int points = 16;
+ for( Int point = 0; point < points; point++ )
+ {
+ const Real angle = 2.0f * PI * point / points;
+ Coord3D edge = tray.pos;
+ edge.x += Cos( angle ) * tray.radius;
+ edge.y += Sin( angle ) * tray.radius;
+ ICoord2D screen;
+ if( TheTacticalView->worldToScreenTriReturn( &edge, &screen ) != View::WTS_INVALID && ( !found || screen.y > lowest.y ) )
+ {
+ lowest = screen;
+ found = TRUE;
+ }
+ }
+ if( !found )
+ return;
+
+ const Int width = REAL_TO_INT( 132.0f * px );
+ const Int height = REAL_TO_INT( 32.0f * px );
+ Int viewX, viewY;
+ TheTacticalView->getOrigin( &viewX, &viewY );
+ const Int viewRight = viewX + TheTacticalView->getWidth();
+ const Int viewBottom = min( viewY + TheTacticalView->getHeight(), bottom );
+ const Int x = clamp( viewX, lowest.x - width / 2, viewRight - width );
+ const Int y = clamp( viewY, lowest.y + REAL_TO_INT( 6.0f * px ), viewBottom - height );
+ TheDisplay->drawImage( s_trayImage, x, y, x + width, y + height );
+
+ const Color drop = GameMakeColor( 0, 0, 0, 255 );
+ s_trayLabel->draw( x + REAL_TO_INT( 7.0f * px ), y + REAL_TO_INT( 4.0f * px ), (Color)AreaGreen, drop );
+ if( tray.secondsLeft < 0 )
+ return; // an area with no end: no time to show
+
+ const Int barLeft = x + REAL_TO_INT( 8.0f * px );
+ const Int barRun = REAL_TO_INT( 116.0f * px * tray.left );
+ if( barRun > 0 )
+ TheDisplay->drawImage( s_barImage, barLeft, y + REAL_TO_INT( 22.0f * px ), barLeft + barRun, y + REAL_TO_INT( 26.0f * px ) );
+
+ while( s_trayTimes.size() <= index )
+ s_trayTimes.push_back( newTrayString() );
+ DisplayString *time = s_trayTimes[ index ];
+ UnicodeString text;
+ text.format( u"%d:%02d", tray.secondsLeft / 60, tray.secondsLeft % 60 );
+ if( time->getText().compare( text ) != 0 )
+ time->setText( text );
+ time->draw( x + REAL_TO_INT( 125.0f * px ) - time->getWidth(), y + REAL_TO_INT( 4.0f * px ), (Color)TrayText, drop );
+ }
}
-void RadarContactMarks_publish( UnsignedInt sweepFrame, const std::vector<RadarContact> &all )
+void RadarContactMarks_publish( UnsignedInt sweepFrame, const std::vector<RadarContact> &contacts, const std::vector<RadarReconArea> &areas )
{
std::swap( s_sweeps[ 0 ], s_sweeps[ 1 ] );
s_sweeps[ 0 ].frame = sweepFrame;
- s_sweeps[ 0 ].all = all;
+ s_sweeps[ 0 ].all = contacts;
+ s_sweeps[ 0 ].areas = areas;
s_publications = min( s_publications + 1, 2 );
+
+ // a clock per area, started by the first sweep that names it and dropped once it has run out
+ for( size_t index = 0; index < s_clocks.size(); )
+ {
+ if( s_clocks[ index ].endFrame <= sweepFrame )
+ s_clocks.erase( s_clocks.begin() + index );
+ else
+ index++;
+ }
+ for( size_t index = 0; index < areas.size(); index++ )
+ {
+ const RadarReconArea &area = areas[ index ];
+ Bool known = FALSE;
+ for( size_t clock = 0; clock < s_clocks.size(); clock++ )
+ known = known || ( s_clocks[ clock ].player == area.player && s_clocks[ clock ].endFrame == area.endFrame );
+ if( !known && area.endFrame > sweepFrame )
+ {
+ AreaClock clock;
+ clock.player = area.player;
+ clock.endFrame = area.endFrame;
+ clock.total = area.endFrame - sweepFrame;
+ s_clocks.push_back( clock );
+ }
+ }
}
//-------------------------------------------------------------------------------------------------
/** Lays this frame's marks. Ripples leave the ring at the sweep and run out to RippleTo, fading;
* the ring holds through its sweep and fades over the next if no sweep follows, so a radar that
- * stops publishing does not leave its last paint on the ground. Hidden while scripts or -cinema
- * hide the icons, like the signal marks. */
+ * stops publishing does not leave its last paint on the ground. A recon contact's amber ring and
+ * chip hold and fade the same way. Hidden while scripts or -cinema hide the icons, like the
+ * signal marks. */
//-------------------------------------------------------------------------------------------------
void RadarContactMarks_update( void )
{
- refreshShown();
- const Real seconds = secondsSinceSweep();
+ const UnsignedInt now = TheGameLogic->getFrame();
+ refreshShown( now );
+ const Real seconds = secondsSinceSweep( now );
const Real age = seconds / RadarContactLook::SweepSeconds;
s_sweepAge = min( age, 1.0f );
+ s_drawHud = TheGameLogic->getDrawIconUI() && !CinemaDirector_hidesHud();
+ const Real ringAlpha = RadarContactLook::RingAlpha * clamp( 0.0f, 2.0f - age, 1.0f );
+ fillChips( ringAlpha );
+ fillTrays( now );
// no decal manager without a renderer (headless): nothing to lay
if( TheProjectedShadowManager == NULL )
@@ -169,50 +551,93 @@ void RadarContactMarks_update( void )
size_t contactsUsed = 0;
size_t ringsUsed = 0;
- if( TheGameLogic->getDrawIconUI() && !CinemaDirector_hidesHud() )
+ size_t reconUsed = 0;
+ size_t areasUsed = 0;
+ if( s_drawHud )
{
using namespace RadarContactLook;
- const Real ringAlpha = RingAlpha * clamp( 0.0f, 2.0f - age, 1.0f );
+ // the area ring lies where it lands, over water or under a bridge too: it spans far more than
+ // the ground at its centre, and a ring that vanished with its centre would hide the area whole
+ for( size_t index = 0; index < s_areas.size(); index++ )
+ place( take( s_areaDecals, areasUsed, "ReforgedReconArea", AreaGreen ), s_areas[ index ].pos,
+ 2.0f * s_areas[ index ].radius * AreaDecalSpan, AreaAlpha );
for( size_t index = 0; index < s_fresh.size(); index++ )
{
const Coord3D &pos = s_fresh[ index ].pos;
if( !onOpenGround( pos ) )
continue;
- place( take( s_contactDecals, contactsUsed, "ReforgedRadarContact" ), pos, RingSize, ringAlpha );
+ if( s_fresh[ index ].recon )
+ {
+ place( take( s_reconDecals, reconUsed, "ReforgedRadarRing", Amber ), pos, ReconRingSize, ringAlpha );
+ continue;
+ }
+ place( take( s_contactDecals, contactsUsed, "ReforgedRadarContact", Colour ), pos, RingSize, ringAlpha );
for( Int ripple = 0; ripple < 2; ripple++ )
{
// a square-root fade keeps a ripple seen until it is nearly out, as the approved still has it
const Real t = ( seconds - ripple * RippleGap ) / RippleSeconds;
const Bool running = t >= 0.0f && t < 1.0f;
- place( take( s_ringDecals, ringsUsed, "ReforgedRadarRing" ), pos,
+ place( take( s_ringDecals, ringsUsed, "ReforgedRadarRing", Colour ), pos,
RippleFrom + ( RippleTo - RippleFrom ) * clamp( 0.0f, t, 1.0f ), running ? RippleAlpha * sqrtf( 1.0f - t ) : 0.0f );
}
}
+ // a recon contact leaves no echo: the area sees it again next sweep, and its chip says where it went
const Real echoAlpha = EchoAlpha * ( 1.0f - s_sweepAge );
for( size_t index = 0; index < s_echoes.size(); index++ )
{
- if( onOpenGround( s_echoes[ index ].pos ) )
- place( take( s_ringDecals, ringsUsed, "ReforgedRadarRing" ), s_echoes[ index ].pos, RingSize, echoAlpha );
+ if( !s_echoes[ index ].recon && onOpenGround( s_echoes[ index ].pos ) )
+ place( take( s_ringDecals, ringsUsed, "ReforgedRadarRing", Colour ), s_echoes[ index ].pos, RingSize, echoAlpha );
}
}
hideFrom( s_contactDecals, contactsUsed );
hideFrom( s_ringDecals, ringsUsed );
+ hideFrom( s_reconDecals, reconUsed );
+ hideFrom( s_areaDecals, areasUsed );
+}
+
+//-------------------------------------------------------------------------------------------------
+/** The 2D half: the chips and glyphs over the contacts, then the trays. Sizes are recon_v1's at
+ * 1920x1080, scaled with the rest of the interface. A tray stays above bottom, the command bar's
+ * top on the screen. */
+//-------------------------------------------------------------------------------------------------
+void RadarContactMarks_draw( Int bottom )
+{
+ if( !s_drawHud || ( s_chips.empty() && s_trays.empty() ) )
+ return;
+ findImages();
+ const Real px = TheUIScale() / 1.8f; // TheUIScale is over 800x600, and 1080 lines are 1.8 of that
+
+ for( size_t index = 0; index < s_chips.size(); index++ )
+ drawChip( s_chips[ index ], px );
+
+ if( s_trays.empty() )
+ return;
+ sizeTrayStrings( px );
+ for( size_t index = 0; index < s_trays.size(); index++ )
+ drawTray( s_trays[ index ], index, px, bottom );
}
void RadarContactMarks_reset( void )
{
- for( size_t index = 0; index < s_contactDecals.size(); index++ )
- s_contactDecals[ index ]->release();
- for( size_t index = 0; index < s_ringDecals.size(); index++ )
- s_ringDecals[ index ]->release();
- s_contactDecals.clear();
- s_ringDecals.clear();
+ releaseAll( s_contactDecals );
+ releaseAll( s_ringDecals );
+ releaseAll( s_reconDecals );
+ releaseAll( s_areaDecals );
s_sweeps[ 0 ].all.clear();
s_sweeps[ 1 ].all.clear();
+ s_sweeps[ 0 ].areas.clear();
+ s_sweeps[ 1 ].areas.clear();
s_publications = 0;
+ s_clocks.clear();
s_fresh.clear();
s_echoes.clear();
+ s_areas.clear();
+ s_chips.clear();
+ s_trays.clear();
s_sweepAge = 0.0f;
+ s_drawHud = FALSE;
+ freeTrayStrings();
+ s_trayPoints = 0;
}
const std::vector<RadarContact> &RadarContactMarks_fresh( void )
@@ -225,6 +650,11 @@ const std::vector<RadarContact> &RadarContactMarks_echoes( void )
return s_echoes;
}
+const std::vector<RadarReconArea> &RadarContactMarks_areas( void )
+{
+ return s_areas;
+}
+
Real RadarContactMarks_sweepAge( void )
{
return s_sweepAge;
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/RadarCoverageBehavior.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/RadarCoverageBehavior.cpp
index 7e768ade7..39496df85 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/RadarCoverageBehavior.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Behavior/RadarCoverageBehavior.cpp
@@ -29,10 +29,16 @@
#include "Common/LogicThread.h"
#include "Common/Player.h"
#include "Common/PlayerList.h"
+#include "Common/ThingTemplate.h"
+#include "Common/Upgrade.h"
#include "Common/Xfer.h"
#include "GameClient/RadarContactMarks.h"
#include "GameLogic/GameLogic.h"
#include "GameLogic/Object.h"
+#include "GameLogic/Weapon.h"
+#include "GameLogic/Module/AIUpdate.h"
+#include "GameLogic/Module/DeletionUpdate.h"
+#include "GameLogic/Module/LifetimeUpdate.h"
#include "GameLogic/Module/PhysicsUpdate.h"
#include "GameLogic/Module/RadarCoverageBehavior.h"
@@ -46,6 +52,10 @@ static const UnsignedInt RADAR_SWEEP_FRAMES = 2 * LOGICFRAMES_PER_SECOND;
of its pace still shows; one turning its turret on the spot does not. */
static const Real RADAR_MOVING_SPEED = 0.05f;
+/* A vehicle whose longest weapon reaches this far reads as artillery on a classified chip: tanks
+ shoot well inside it, the rocket and shell batteries of every side beyond it. */
+static const Real RADAR_ARTILLERY_RANGE = 300.0f;
+
//-------------------------------------------------------------------------------------------------
/** finished, alive and switched on */
static Bool isWorking( const Object *obj )
@@ -77,10 +87,58 @@ static Bool isHidden( const Object *obj )
return obj->testStatus( OBJECT_STATUS_STEALTHED ) && !obj->testStatus( OBJECT_STATUS_DETECTED );
}
+//-------------------------------------------------------------------------------------------------
+/** The class a contact's chip names, from what the object is. Anti-air is a vehicle whose primary
+ * weapon hits aircraft and not the ground; artillery a vehicle that reaches RADAR_ARTILLERY_RANGE.
+ * NONE for anything that is neither a unit nor a base defence, which no recon reports standing. */
+static RadarGlyph glyphOf( const Object *obj )
+{
+ if( obj->isStructure() )
+ return obj->isKindOf( KINDOF_FS_BASE_DEFENSE ) || obj->isKindOf( KINDOF_TECH_BASE_DEFENSE ) ? RADAR_GLYPH_STRUCTURE_DEFENCE : RADAR_GLYPH_NONE;
+ if( obj->isKindOf( KINDOF_AIRCRAFT ) )
+ return RADAR_GLYPH_AIRCRAFT;
+ if( obj->isKindOf( KINDOF_INFANTRY ) )
+ return RADAR_GLYPH_INFANTRY;
+ if( !obj->isKindOf( KINDOF_VEHICLE ) )
+ return RADAR_GLYPH_NONE;
+
+ const Weapon *primary = obj->getWeaponInWeaponSlot( PRIMARY_WEAPON ); // a dozer or a transport carries none
+ if( primary && ( primary->getAntiMask() & WEAPON_ANTI_AIRBORNE_VEHICLE ) && !( primary->getAntiMask() & WEAPON_ANTI_GROUND ) )
+ return RADAR_GLYPH_ANTIAIR;
+ if( obj->getLargestWeaponRange() >= RADAR_ARTILLERY_RANGE )
+ return RADAR_GLYPH_ARTILLERY;
+ return RADAR_GLYPH_VEHICLE;
+}
+
+//-------------------------------------------------------------------------------------------------
+/** the frame a timed source (a recon marker) goes, from its LifetimeUpdate or DeletionUpdate, else 0 */
+static UnsignedInt endFrameOf( const Object *obj )
+{
+ static const NameKeyType lifetimeKey = TheNameKeyGenerator->nameToKey( "LifetimeUpdate" );
+ static const NameKeyType deletionKey = TheNameKeyGenerator->nameToKey( "DeletionUpdate" );
+ const LifetimeUpdate *lifetime = (const LifetimeUpdate *)obj->findUpdateModule( lifetimeKey );
+ if( lifetime )
+ return lifetime->getDieFrame();
+ DeletionUpdate *deletion = (DeletionUpdate *)obj->findUpdateModule( deletionKey );
+ return deletion ? deletion->getDieFrame() : 0;
+}
+
+//-------------------------------------------------------------------------------------------------
+static void parseRadiusUpgrade( INI *ini, void * /*instance*/, void *store, const void * /*userData*/ )
+{
+ RadarCoverageBehaviorModuleData::RadiusUpgrade up;
+ up.m_upgrade = ini->getNextToken();
+ INI::parseReal( ini, NULL, &up.m_scale, NULL );
+ ((std::vector<RadarCoverageBehaviorModuleData::RadiusUpgrade> *)store)->push_back( up );
+}
+
//-------------------------------------------------------------------------------------------------
RadarCoverageBehaviorModuleData::RadarCoverageBehaviorModuleData()
{
m_radius = 0.0f;
+ m_onlyWhenStationary = FALSE;
+ m_paintsTargetOnly = FALSE;
+ m_seesStationary = FALSE;
}
//-------------------------------------------------------------------------------------------------
@@ -90,7 +148,13 @@ RadarCoverageBehaviorModuleData::RadarCoverageBehaviorModuleData()
static const FieldParse dataFieldParse[] =
{
- { "Radius", INI::parseReal, NULL, offsetof( RadarCoverageBehaviorModuleData, m_radius ) },
+ { "Radius", INI::parseReal, NULL, offsetof( RadarCoverageBehaviorModuleData, m_radius ) },
+ { "RadiusUpgrade", parseRadiusUpgrade, NULL, offsetof( RadarCoverageBehaviorModuleData, m_radiusUpgrades ) },
+ { "RequiredUpgrade", INI::parseAsciiString, NULL, offsetof( RadarCoverageBehaviorModuleData, m_requiredUpgrade ) },
+ { "ClassifyUpgrade", INI::parseAsciiString, NULL, offsetof( RadarCoverageBehaviorModuleData, m_classifyUpgrade ) },
+ { "OnlyWhenStationary", INI::parseBool, NULL, offsetof( RadarCoverageBehaviorModuleData, m_onlyWhenStationary ) },
+ { "PaintsTargetOnly", INI::parseBool, NULL, offsetof( RadarCoverageBehaviorModuleData, m_paintsTargetOnly ) },
+ { "SeesStationary", INI::parseBool, NULL, offsetof( RadarCoverageBehaviorModuleData, m_seesStationary ) },
{ 0, 0, 0, 0 }
};
p.add( dataFieldParse );
@@ -101,6 +165,15 @@ RadarCoverageBehavior::RadarCoverageBehavior( Thing *thing, const ModuleData* mo
{
m_next = s_first;
s_first = this;
+
+ // the upgrades parse after the objects, so the data holds names; a wrong one ends the game here
+ const RadarCoverageBehaviorModuleData *data = getRadarCoverageBehaviorModuleData();
+ AsciiString who;
+ who.format( "RadarCoverageBehavior on %s", getObject()->getTemplate()->getName().str() );
+ for( size_t i = 0; i < data->m_radiusUpgrades.size(); ++i )
+ m_radiusUpgrades.push_back( TheUpgradeCenter->requireUpgrade( data->m_radiusUpgrades[ i ].m_upgrade, who ) );
+ m_requiredUpgrade = data->m_requiredUpgrade.isEmpty() ? NULL : TheUpgradeCenter->requireUpgrade( data->m_requiredUpgrade, who );
+ m_classifyUpgrade = data->m_classifyUpgrade.isEmpty() ? NULL : TheUpgradeCenter->requireUpgrade( data->m_classifyUpgrade, who );
}
//-------------------------------------------------------------------------------------------------
@@ -113,27 +186,132 @@ RadarCoverageBehavior::~RadarCoverageBehavior( void )
}
//-------------------------------------------------------------------------------------------------
-/*static*/ Bool RadarCoverageBehavior::isCovered( const Player *player, const Coord3D *pos )
+/** Radius scaled by the owner's RadiusUpgrades, or 0 while the source is down, still lacks its
+ * RequiredUpgrade, or moves with OnlyWhenStationary. */
+Real RadarCoverageBehavior::reach( void ) const
{
+ const Object *obj = getObject();
+ const RadarCoverageBehaviorModuleData *data = getRadarCoverageBehaviorModuleData();
+ const Player *owner = obj->getControllingPlayer();
+ if( !isWorking( obj ) || ( m_requiredUpgrade && !owner->hasUpgradeComplete( m_requiredUpgrade ) )
+ || ( data->m_onlyWhenStationary && isMoving( obj ) ) )
+ return 0.0f;
+
+ Real radius = data->m_radius;
+ for( size_t i = 0; i < m_radiusUpgrades.size(); ++i )
+ {
+ if( owner->hasUpgradeComplete( m_radiusUpgrades[ i ] ) )
+ radius *= data->m_radiusUpgrades[ i ].m_scale;
+ }
+ return radius;
+}
+
+//-------------------------------------------------------------------------------------------------
+/** The enemy it shoots at, or else the enemy its orders aim it at, while that stands within reach. */
+const Object *RadarCoverageBehavior::paintedTarget( void ) const
+{
+ const Real radius = reach();
+ if( radius <= 0.0f )
+ return NULL;
+
+ const Object *obj = getObject();
+ const AIUpdateInterface *ai = obj->getAI();
+ const Object *target = ai->getCurrentVictim();
+ if( !target )
+ target = const_cast<AIUpdateInterface *>( ai )->getGoalObject();
+ if( !target || target->isEffectivelyDead() || obj->getRelationship( target ) != ENEMIES )
+ return NULL;
+
+ const Real dx = target->getPosition()->x - obj->getPosition()->x;
+ const Real dy = target->getPosition()->y - obj->getPosition()->y;
+ return dx * dx + dy * dy <= radius * radius ? target : NULL;
+}
+
+//-------------------------------------------------------------------------------------------------
+Bool RadarCoverageBehavior::classifies( void ) const
+{
+ return getRadarCoverageBehaviorModuleData()->m_seesStationary
+ || ( m_classifyUpgrade && getObject()->getControllingPlayer()->hasUpgradeComplete( m_classifyUpgrade ) );
+}
+
+//-------------------------------------------------------------------------------------------------
+/** Every source of player's or an ally's that reaches pos, or that paints target (by identity when
+ * target is given, else by pos standing within the painted object's bounding circle). Stops as
+ * soon as it knows what need asks; every answer is an OR over the sources, so their order does not
+ * matter. */
+/*static*/ void RadarCoverageBehavior::survey( const Player *player, const Coord3D *pos, const Object *target, SurveyNeed need, Survey &out )
+{
+ out.covered = out.painted = out.recon = out.classified = FALSE;
for( const RadarCoverageBehavior *radar = s_first; radar; radar = radar->m_next )
{
const Object *obj = radar->getObject();
- if( !isWorking( obj ) || !serves( obj->getControllingPlayer(), player ) )
+ if( !serves( obj->getControllingPlayer(), player ) )
continue;
- const Real radius = radar->getRadarCoverageBehaviorModuleData()->m_radius;
- const Real dx = pos->x - obj->getPosition()->x;
- const Real dy = pos->y - obj->getPosition()->y;
- if( dx * dx + dy * dy <= radius * radius )
- return TRUE;
+ const RadarCoverageBehaviorModuleData *data = radar->getRadarCoverageBehaviorModuleData();
+ if( data->m_paintsTargetOnly )
+ {
+ const Object *painted = radar->paintedTarget();
+ if( !painted )
+ continue;
+ if( target )
+ {
+ if( painted != target )
+ continue;
+ }
+ else
+ {
+ const Real r = painted->getGeometryInfo().getBoundingCircleRadius();
+ const Real dx = pos->x - painted->getPosition()->x;
+ const Real dy = pos->y - painted->getPosition()->y;
+ if( dx * dx + dy * dy > r * r )
+ continue;
+ }
+ out.painted = TRUE;
+ }
+ else
+ {
+ const Real radius = radar->reach();
+ const Real dx = pos->x - obj->getPosition()->x;
+ const Real dy = pos->y - obj->getPosition()->y;
+ if( radius <= 0.0f || dx * dx + dy * dy > radius * radius )
+ continue;
+ if( data->m_seesStationary )
+ out.recon = TRUE;
+ }
+
+ out.covered = TRUE;
+ if( need == SURVEY_COVER || ( need == SURVEY_PAINT && out.painted ) || ( need == SURVEY_HOLD && ( out.painted || out.recon ) ) )
+ return;
+ if( !out.classified )
+ out.classified = radar->classifies();
}
- return FALSE;
}
//-------------------------------------------------------------------------------------------------
+/*static*/ Bool RadarCoverageBehavior::isCovered( const Player *player, const Coord3D *pos )
+{
+ Survey s;
+ survey( player, pos, NULL, SURVEY_COVER, s );
+ return s.covered;
+}
+
+//-------------------------------------------------------------------------------------------------
+/** Any coverage holds a mover; a standing object takes a paint, or a recon source if it is a unit
+ * or a base defence. */
/*static*/ Bool RadarCoverageBehavior::isTracked( const Player *player, const Object *obj )
{
- return !isHidden( obj ) && isMoving( obj ) && isCovered( player, obj->getPosition() );
+ if( isHidden( obj ) )
+ return FALSE;
+ Survey s;
+ if( isMoving( obj ) )
+ {
+ survey( player, obj->getPosition(), obj, SURVEY_COVER, s );
+ return s.covered;
+ }
+ const Bool reconHolds = glyphOf( obj ) != RADAR_GLYPH_NONE;
+ survey( player, obj->getPosition(), obj, reconHolds ? SURVEY_HOLD : SURVEY_PAINT, s );
+ return s.painted || ( s.recon && reconHolds );
}
//-------------------------------------------------------------------------------------------------
@@ -146,19 +324,36 @@ RadarCoverageBehavior::~RadarCoverageBehavior( void )
if( frame % RADAR_SWEEP_FRAMES != 0 )
return;
- // which players any working radar covers for, theirs or an ally's
+ /* which players any live radar covers for, theirs or an ally's, and the recon areas, in the radar
+ list's order: that order differs after a load, but only the client reads the areas */
const Int playerCount = ThePlayerList->getPlayerCount();
Bool covered[ MAX_PLAYER_COUNT ] = { FALSE };
Bool anyCovered = FALSE;
+ std::vector<RadarReconArea> areas;
for( const RadarCoverageBehavior *radar = s_first; radar; radar = radar->m_next )
{
- const Object *obj = radar->getObject();
- if( !isWorking( obj ) )
+ const Real radius = radar->reach();
+ if( radius <= 0.0f )
continue;
+ const Object *obj = radar->getObject();
+ const Bool recon = radar->getRadarCoverageBehaviorModuleData()->m_seesStationary;
for( Int i = 0; i < playerCount; ++i )
{
- if( !covered[ i ] && serves( obj->getControllingPlayer(), ThePlayerList->getNthPlayer( i ) ) )
- covered[ i ] = anyCovered = TRUE;
+ const Player *player = ThePlayerList->getNthPlayer( i );
+ if( !serves( obj->getControllingPlayer(), player ) )
+ continue;
+ covered[ i ] = anyCovered = TRUE;
+
+ // one area for every player it serves, the owner and his allies, who get its recon chips too
+ if( recon )
+ {
+ RadarReconArea area;
+ area.player = player->getPlayerIndex();
+ area.pos = *obj->getPosition();
+ area.radius = radius;
+ area.endFrame = endFrameOf( obj );
+ areas.push_back( area );
+ }
}
}
@@ -167,8 +362,13 @@ RadarCoverageBehavior::~RadarCoverageBehavior( void )
{
for( Object *obj = TheGameLogic->getFirstObject(); obj; obj = obj->getNextObject() )
{
- if( obj->isEffectivelyDead() || obj->isDestroyed() || obj->isContained() || obj->isStructure()
- || obj->isKindOf( KINDOF_PROJECTILE ) || isHidden( obj ) || !isMoving( obj ) )
+ if( obj->isEffectivelyDead() || obj->isDestroyed() || obj->isContained()
+ || obj->isKindOf( KINDOF_PROJECTILE ) || isHidden( obj ) )
+ continue;
+ // a mover shows in any coverage; a standing unit or base defence only to a paint or a recon source
+ const Bool moving = isMoving( obj );
+ const RadarGlyph glyph = glyphOf( obj );
+ if( !moving && glyph == RADAR_GLYPH_NONE )
continue;
for( Int i = 0; i < playerCount; ++i )
@@ -180,13 +380,17 @@ RadarCoverageBehavior::~RadarCoverageBehavior( void )
continue;
if( obj->getShroudedStatus( player->getPlayerIndex() ) <= OBJECTSHROUD_PARTIAL_CLEAR )
continue;
- if( !isCovered( player, obj->getPosition() ) )
+ Survey s;
+ survey( player, obj->getPosition(), obj, SURVEY_ALL, s );
+ if( moving ? !s.covered : !( s.painted || s.recon ) )
continue;
RadarContact contact;
contact.player = player->getPlayerIndex();
contact.id = obj->getID();
contact.pos = *obj->getPosition();
+ contact.glyph = (UnsignedByte)( s.classified ? glyph : RADAR_GLYPH_NONE );
+ contact.recon = s.recon;
contacts.push_back( contact );
}
}
@@ -203,12 +407,12 @@ RadarCoverageBehavior::~RadarCoverageBehavior( void )
used += snprintf( line + used, sizeof( line ) - used, " p%d=%d", ThePlayerList->getNthPlayer( i )->getPlayerIndex(), counts[ ThePlayerList->getNthPlayer( i )->getPlayerIndex() ] );
}
line[ used ] = 0;
- DEBUG_LOG(( "RADARSWEEP frame %u contacts%s\n", frame, line ));
+ DEBUG_LOG(( "RADARSWEEP frame %u contacts%s recon areas %d\n", frame, line, (Int)areas.size() ));
#endif
}
// the client draws them; logic hands over a copy and is done (LogicThread::callAfterTick)
- LogicThread::callAfterTick( [frame, contacts]() { RadarContactMarks_publish( frame, contacts ); } );
+ LogicThread::callAfterTick( [frame, contacts, areas]() { RadarContactMarks_publish( frame, contacts, areas ); } );
}
//-------------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/RadarJamSpecialPower.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/RadarJamSpecialPower.cpp
index 85d1e817d..a46388770 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/RadarJamSpecialPower.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/RadarJamSpecialPower.cpp
@@ -31,6 +31,7 @@
#include "GameClient/FXList.h"
#include "GameLogic/GameLogic.h"
#include "GameLogic/Object.h"
+#include "GameLogic/ObjectCreationList.h"
#include "GameLogic/PartitionManager.h"
#include "GameLogic/Module/RadarJamSpecialPower.h"
@@ -40,6 +41,7 @@ RadarJamSpecialPowerModuleData::RadarJamSpecialPowerModuleData( void )
m_radius = 0.0f;
m_durationFrames = 0;
m_fx = NULL;
+ m_ocl = NULL;
}
// ------------------------------------------------------------------------------------------------
@@ -52,6 +54,7 @@ RadarJamSpecialPowerModuleData::RadarJamSpecialPowerModuleData( void )
{ "Radius", INI::parseReal, NULL, offsetof( RadarJamSpecialPowerModuleData, m_radius ) },
{ "Duration", INI::parseDurationUnsignedInt, NULL, offsetof( RadarJamSpecialPowerModuleData, m_durationFrames ) },
{ "FX", INI::parseFXList, NULL, offsetof( RadarJamSpecialPowerModuleData, m_fx ) },
+ { "OCL", INI::parseObjectCreationList, NULL, offsetof( RadarJamSpecialPowerModuleData, m_ocl ) },
{ 0, 0, 0, 0 }
};
p.add( dataFieldParse );
@@ -94,6 +97,7 @@ void RadarJamSpecialPower::doSpecialPowerAtLocation( const Coord3D *loc, Real an
}
FXList::doFXPos( data->m_fx, loc );
+ ObjectCreationList::create( data->m_ocl, getObject(), loc, loc, (Bool)FALSE ); // a jammer marker, say; none without OCL
}
// ------------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SwarmStrikeSpecialPower.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SwarmStrikeSpecialPower.cpp
index 1f73552ec..922f82bfb 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SwarmStrikeSpecialPower.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/SpecialPower/SwarmStrikeSpecialPower.cpp
@@ -25,6 +25,7 @@
#include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
+#include "Common/Player.h"
#include "Common/ThingFactory.h"
#include "Common/ThingTemplate.h"
#include "Common/Xfer.h"
@@ -45,6 +46,15 @@ SwarmStrikeSpecialPowerModuleData::SwarmStrikeSpecialPowerModuleData( void )
m_targetFX = NULL;
}
+// ------------------------------------------------------------------------------------------------
+static void parseUpgradeTargetCount( INI *ini, void * /*instance*/, void *store, const void * /*userData*/ )
+{
+ SwarmStrikeSpecialPowerModuleData::UpgradeTargetCount up;
+ INI::parseScience( ini, NULL, &up.m_science, NULL );
+ INI::parseInt( ini, NULL, &up.m_count, NULL );
+ ((std::vector<SwarmStrikeSpecialPowerModuleData::UpgradeTargetCount> *)store)->push_back( up );
+}
+
// ------------------------------------------------------------------------------------------------
/*static*/ void SwarmStrikeSpecialPowerModuleData::buildFieldParse( MultiIniFieldParse& p )
{
@@ -54,6 +64,7 @@ SwarmStrikeSpecialPowerModuleData::SwarmStrikeSpecialPowerModuleData( void )
{
{ "Radius", INI::parseReal, NULL, offsetof( SwarmStrikeSpecialPowerModuleData, m_radius ) },
{ "TargetCount", INI::parseInt, NULL, offsetof( SwarmStrikeSpecialPowerModuleData, m_targetCount ) },
+ { "UpgradeTargetCount", parseUpgradeTargetCount, NULL, offsetof( SwarmStrikeSpecialPowerModuleData, m_upgradeTargetCount ) },
{ "RepeatTargets", INI::parseBool, NULL, offsetof( SwarmStrikeSpecialPowerModuleData, m_repeatTargets ) },
{ "Weapon", INI::parseWeaponTemplate, NULL, offsetof( SwarmStrikeSpecialPowerModuleData, m_weapon ) },
{ "TargetFX", INI::parseFXList, NULL, offsetof( SwarmStrikeSpecialPowerModuleData, m_targetFX ) },
@@ -104,8 +115,18 @@ void SwarmStrikeSpecialPower::doSpecialPowerAtLocation( const Coord3D *loc, Real
SpecialPowerModule::doSpecialPowerAtLocation( loc, angle, commandOptions );
const SwarmStrikeSpecialPowerModuleData *data = getSwarmStrikeSpecialPowerModuleData();
+ Int targetCount = data->m_targetCount;
+ for( size_t i = 0; i < data->m_upgradeTargetCount.size(); ++i )
+ {
+ if( getObject()->getControllingPlayer()->hasScience( data->m_upgradeTargetCount[ i ].m_science ) )
+ {
+ targetCount = data->m_upgradeTargetCount[ i ].m_count;
+ break;
+ }
+ }
+
std::vector<Object*> targets;
- Weapon_findMostValuableEnemies( getObject(), loc, data->m_radius, data->m_targetCount, targets );
+ Weapon_findMostValuableEnemies( getObject(), loc, data->m_radius, targetCount, targets );
for( std::vector<Object*>::iterator it = targets.begin(); it != targets.end(); ++it )
{
@@ -118,10 +139,10 @@ void SwarmStrikeSpecialPower::doSpecialPowerAtLocation( const Coord3D *loc, Real
return;
// the spare shots: round the same targets again, dearest first, or at the click when none stood there
- for( Int shot = (Int)targets.size(); shot < data->m_targetCount; ++shot )
+ for( Int shot = (Int)targets.size(); shot < targetCount; ++shot )
fireShot( data, getObject(), targets.empty() ? NULL : targets[ shot % targets.size() ], loc );
DEBUG_LOG(( "SWARM '%s' frame %d sends %d at %d targets around (%.0f,%.0f)\n", getPowerName().str(),
- TheGameLogic->getFrame(), data->m_targetCount, (Int)targets.size(), loc->x, loc->y ));
+ TheGameLogic->getFrame(), targetCount, (Int)targets.size(), loc->x, loc->y ));
}
// ------------------------------------------------------------------------------------------------
diff --git a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/PointDefenseLaserUpdate.cpp b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/PointDefenseLaserUpdate.cpp
index 22092c691..d045bdd63 100644
--- a/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/PointDefenseLaserUpdate.cpp
+++ b/GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Update/PointDefenseLaserUpdate.cpp
@@ -35,7 +35,9 @@
#include "Common/BitFlagsIO.h"
#include "Common/RandomValue.h"
#include "Common/Team.h"
+#include "Common/Player.h"
#include "Common/ThingTemplate.h"
+#include "Common/Upgrade.h"
#include "Common/Xfer.h"
#include "GameClient/Drawable.h"
@@ -74,6 +76,7 @@ PointDefenseLaserUpdateModuleData::PointDefenseLaserUpdateModuleData()
{ "ScanRate", INI::parseDurationUnsignedInt, NULL, offsetof( PointDefenseLaserUpdateModuleData, m_scanFrames ) },
{ "ScanRange", INI::parseReal, NULL, offsetof( PointDefenseLaserUpdateModuleData, m_scanRange ) },
{ "PredictTargetVelocityFactor", INI::parseRetailFramesReal, NULL, offsetof( PointDefenseLaserUpdateModuleData, m_velocityFactor ) },
+ { "RequiredUpgrade", INI::parseAsciiString, NULL, offsetof( PointDefenseLaserUpdateModuleData, m_requiredUpgrade ) },
{ 0, 0, 0, 0 }
};
p.add(dataFieldParse);
@@ -87,6 +90,15 @@ PointDefenseLaserUpdate::PointDefenseLaserUpdate( Thing *thing, const ModuleData
m_nextShotAvailableInFrames = 0;
m_shotsFiredFromClip = 0;
m_inRange = false;
+ // the upgrades parse after the objects, so the data holds a name; a wrong one ends the game here; derived, not saved
+ const AsciiString &required = getPointDefenseLaserUpdateModuleData()->m_requiredUpgrade;
+ m_requiredUpgrade = NULL;
+ if( required.isNotEmpty() )
+ {
+ AsciiString who;
+ who.format( "PointDefenseLaserUpdate on %s", getObject()->getTemplate()->getName().str() );
+ m_requiredUpgrade = TheUpgradeCenter->requireUpgrade( required, who );
+ }
setWakeFrame(getObject(), UPDATE_SLEEP_NONE);// No starting sleep, but we want to sleep later.
}
@@ -102,7 +114,7 @@ PointDefenseLaserUpdate::~PointDefenseLaserUpdate( void )
void PointDefenseLaserUpdate::onObjectCreated()
{
const PointDefenseLaserUpdateModuleData *data = getPointDefenseLaserUpdateModuleData();
-
+
//Make sure we have a weapon template
if( !data->m_weaponTemplate )
{
@@ -139,6 +151,10 @@ UpdateSleepTime PointDefenseLaserUpdate::update()
if( me->isEffectivelyDead() )
return UPDATE_SLEEP_FOREVER;//No more laser fo you.
+ // idle, tracking nothing, until the owner has RequiredUpgrade (Turkiye's AKKOR on the Altay)
+ if( m_requiredUpgrade && !me->getControllingPlayer()->hasUpgradeComplete( m_requiredUpgrade ) )
+ return UPDATE_SLEEP_NONE;
+
const PointDefenseLaserUpdateModuleData *data = getPointDefenseLaserUpdateModuleData();
//Optimized firing at acquired target
diff --git a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp
index 3e097a48f..7767c2d2f 100644
--- a/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp
+++ b/GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/Common/System/W3DRadar.cpp
@@ -292,13 +292,16 @@ static void fillClipped( const IRegion2D &clip, Int x, Int y, Int size, Unsigned
//-------------------------------------------------------------------------------------------------
/** The radar's contacts on the minimap: this sweep's as a red square on a dark keyline with a dim
- * ring round it, the sweep before as a small red square fading out as the next sweep comes due. */
+ * ring round it, the sweep before as a small red square fading out as the next sweep comes due.
+ * A SIHA recon area is a dashed green ring, and a contact it saw an amber square, as recon_v1 has
+ * them: amber says the type is known. */
//-------------------------------------------------------------------------------------------------
void W3DRadar::drawRadarContacts( Int pixelX, Int pixelY, Int width, Int height )
{
const std::vector<RadarContact> &fresh = RadarContactMarks_fresh();
const std::vector<RadarContact> &echoes = RadarContactMarks_echoes();
- if( fresh.empty() && echoes.empty() )
+ const std::vector<RadarReconArea> &areas = RadarContactMarks_areas();
+ if( fresh.empty() && echoes.empty() && areas.empty() )
return;
IRegion2D clip;
@@ -307,6 +310,30 @@ void W3DRadar::drawRadarContacts( Int pixelX, Int pixelY, Int width, Int height
clip.hi.x = pixelX + width;
clip.hi.y = pixelY + height;
+ const Int dashes = 48;
+ const Color areaColour = (Color)( (RadarContactLook::AreaGreen & 0x00FFFFFF) | 0xE6000000 );
+ for( size_t i = 0; i < areas.size(); ++i )
+ {
+ ICoord2D radar, centre;
+ radar.x = areas[ i ].pos.x / (m_mapExtent.width() / RADAR_CELL_WIDTH);
+ radar.y = areas[ i ].pos.y / (m_mapExtent.height() / RADAR_CELL_HEIGHT);
+ radarToPixel( &radar, &centre, pixelX, pixelY, width, height );
+ const Real rx = areas[ i ].radius * width / m_mapExtent.width();
+ const Real ry = areas[ i ].radius * height / m_mapExtent.height();
+ for( Int s = 0; s < dashes; s += 2 )
+ {
+ Real a0 = TWO_PI * s / dashes;
+ Real a1 = TWO_PI * (s + 1) / dashes;
+ ICoord2D from, to, clippedFrom, clippedTo;
+ from.x = centre.x + REAL_TO_INT( Cos( a0 ) * rx );
+ from.y = centre.y + REAL_TO_INT( Sin( a0 ) * ry );
+ to.x = centre.x + REAL_TO_INT( Cos( a1 ) * rx );
+ to.y = centre.y + REAL_TO_INT( Sin( a1 ) * ry );
+ if( ClipLine2D( &from, &to, &clippedFrom, &clippedTo, &clip ) )
+ TheDisplay->drawLine( clippedFrom.x, clippedFrom.y, clippedTo.x, clippedTo.y, 1.0f, areaColour );
+ }
+ }
+
// the ring is opaque, a darker shade of the contact's red: twelve translucent segments blended
// twice where they meet and the ring came out beaded
const UnsignedInt red = RadarContactLook::Colour & 0x00FFFFFF;
@@ -316,6 +343,7 @@ void W3DRadar::drawRadarContacts( Int pixelX, Int pixelY, Int width, Int height
const Int pip = RadarContactLook::MinimapPip;
const Real ringRadius = RadarContactLook::MinimapRing * 0.5f;
const Int ringSegments = 12;
+ const Int dot = RadarContactLook::MinimapReconDot;
for( size_t i = 0; i < fresh.size(); ++i )
{
@@ -324,6 +352,13 @@ void W3DRadar::drawRadarContacts( Int pixelX, Int pixelY, Int width, Int height
radar.y = fresh[ i ].pos.y / (m_mapExtent.height() / RADAR_CELL_HEIGHT);
radarToPixel( &radar, &pixel, pixelX, pixelY, width, height );
+ if( fresh[ i ].recon )
+ {
+ fillClipped( clip, pixel.x - (dot + 2) / 2, pixel.y - (dot + 2) / 2, dot + 2, keyline );
+ fillClipped( clip, pixel.x - dot / 2, pixel.y - dot / 2, dot, RadarContactLook::Amber );
+ continue;
+ }
+
for( Int s = 0; s < ringSegments; ++s )
{
Real a0 = TWO_PI * s / ringSegments;
@@ -344,6 +379,8 @@ void W3DRadar::drawRadarContacts( Int pixelX, Int pixelY, Int width, Int height
const Int echo = RadarContactLook::MinimapEcho;
for( size_t i = 0; i < echoes.size(); ++i )
{
+ if( echoes[ i ].recon )
+ continue; // the area sees it again next sweep, as on the ground
ICoord2D radar, pixel;
radar.x = echoes[ i ].pos.x / (m_mapExtent.width() / RADAR_CELL_WIDTH);
radar.y = echoes[ i ].pos.y / (m_mapExtent.height() / RADAR_CELL_HEIGHT);
diff --git a/GeneralsMD/Code/Tools/recon_marks.py b/GeneralsMD/Code/Tools/recon_marks.py
new file mode 100644
index 000000000..dba1f1a55
--- /dev/null
+++ b/GeneralsMD/Code/Tools/recon_marks.py
@@ -0,0 +1,199 @@
+"""The SIHA recon marks of GameClient/RadarContactMarks.cpp, as the approved still recon_v1 has them.
+
+ReforgedReconArea.tga is the ground decal of a recon area: a dashed ring with range ticks pointing in,
+a long one every quarter. The game tints it green and stretches it to the area's diameter, so it is
+white where the colour goes, with a soft dark edge that lifts it off bright sand.
+
+ReforgedReconHud.tga is the 2D sheet, drawn at 1920x1080 pixel sizes times two:
+ the six class glyphs (RadarGlyph order), white on a dark edge, tinted amber over a recon chip
+ and red beside a classified radar ring
+ the chip, a small steel plate the glyph sits on where a health bar would be
+ the tray under a recon area, steel with an empty trough for the countdown bar
+ the bar, flat green, stretched across the trough as the time runs out
+ReforgedReconHud.ini maps every piece. No national symbol anywhere.
+
+ python Tools/recon_marks.py # writes Data/Art/Textures/ReforgedRecon*.tga and the INI
+
+Drawn eight times too big and brought down, which is the antialiasing (radar_marks.py does the same)."""
+import math
+import os
+
+from PIL import Image, ImageChops, ImageDraw, ImageFilter
+
+HERE = os.path.dirname(os.path.abspath(__file__))
+TEXTURES = os.path.join(HERE, "..", "Data", "Art", "Textures")
+MAPPED = os.path.join(HERE, "..", "Data", "INI", "MappedImages", "HandCreated")
+
+UP = 8 # drawn this many times the shipped size
+STEEL_DK = (20, 28, 36)
+STEEL = (112, 132, 150)
+STEEL_HI = (200, 214, 226)
+GREEN = (90, 210, 120)
+
+# the sheet, in shipped texels
+SHEET_W, SHEET_H = 512, 128
+GLYPH = 32 # a glyph cell, the six side by side from the top left
+CHIP = (320, 0, 64, 48) # x, y, w, h: 32x24 on a 1080 screen; every piece a few texels clear of the next
+TRAY = (0, 48, 264, 64) # 132x32 on a 1080 screen
+TROUGH = (14, 42, 236, 12) # inside the tray: the bar's dark slot
+BAR_BLOCK = (272, 48, 32, 16) # the bar's green, padded so a stretch never samples its neighbours
+BAR = (280, 52, 16, 8) # the part the INI maps
+GLYPHS = ("Infantry", "Vehicle", "AntiAir", "Artillery", "Aircraft", "Defence")
+
+# the area decal
+AREA = 512
+AREA_UP = 4 # a 512 decal at eight times is more pixels than its edge needs
+AREA_RADIUS = 240 # of 256: the dashed ring's centre line, its keyline clear of the edge.
+ # RadarContactLook::AreaDecalSpan (256/240) lays it on the area's radius
+AREA_STROKE = 3.2
+DASHES = 48 # twice the ticks
+TICKS = 24
+TICK_SHORT, TICK_LONG = 7, 14
+
+
+def keylined(white, blur, alpha):
+ """white shapes with a soft dark edge: RGBA whose colour is white on the shape and black round it.
+ The edge is the shape blurred and pushed up, a dilation that stays fast on a sheet drawn at UP."""
+ edge = white.filter(ImageFilter.GaussianBlur(blur)).point(lambda v: min(255, v * 3) * alpha // 255)
+ a = ImageChops.lighter(white, edge)
+ return Image.merge("RGBA", (white, white, white, a))
+
+
+def glyph(kind):
+ """one class pictogram on a 32 texel cell, drawn at UP"""
+ n = GLYPH * UP
+ m = Image.new("L", (n, n), 0)
+ d = ImageDraw.Draw(m)
+ s = n / 24.0 # the pictogram on a 24 unit grid, centred at 12,12
+
+ def P(x, y):
+ return (x * s, y * s)
+
+ def rect(x0, y0, x1, y1):
+ d.rectangle([P(x0, y0), P(x1, y1)], fill=255)
+
+ def line(pts, w):
+ d.line([P(x, y) for x, y in pts], fill=255, width=round(w * s), joint="curve")
+
+ def disc(x, y, r):
+ d.ellipse([P(x - r, y - r), P(x + r, y + r)], fill=255)
+
+ if kind == "Infantry":
+ disc(12, 5.2, 2.6)
+ d.polygon([P(8.4, 8.6), P(15.6, 8.6), P(14.4, 15), P(9.6, 15)], fill=255)
+ line([(10.6, 15), (9.4, 20.5)], 2.0)
+ line([(13.4, 15), (14.6, 20.5)], 2.0)
+ elif kind == "Vehicle": # a tank from the side
+ d.rounded_rectangle([P(3, 12), P(21, 18)], radius=3 * s, fill=255)
+ rect(7.5, 8, 15, 12)
+ line([(15, 9.8), (22.5, 9.8)], 1.8)
+ elif kind == "AntiAir": # a hull with two barrels raised
+ rect(3, 14, 21, 18.5)
+ rect(8.5, 10.5, 15.5, 14)
+ line([(10.5, 11), (5.5, 4)], 1.8)
+ line([(13.5, 11), (18.5, 4)], 1.8)
+ elif kind == "Artillery": # a long barrel high over a low hull
+ rect(3, 14.5, 21, 18.5)
+ rect(4.5, 10.5, 11.5, 14.5)
+ line([(9, 12), (21.5, 4.5)], 2.0)
+ elif kind == "Aircraft": # top down, swept wings
+ line([(12, 2.5), (12, 21)], 2.6)
+ d.polygon([P(12, 7.5), P(22, 14), P(22, 15.5), P(12, 12.5), P(2, 15.5), P(2, 14)], fill=255)
+ d.polygon([P(12, 17.5), P(16.5, 21), P(16.5, 22), P(12, 20.5), P(7.5, 22), P(7.5, 21)], fill=255)
+ elif kind == "Defence": # a bunker with its gun out
+ d.chord([P(4, 7), P(18, 21)], 180, 360, fill=255)
+ rect(2.5, 14, 19.5, 18.5)
+ line([(16, 11), (22.5, 11)], 2.0)
+ return keylined(m, 1.2 * UP, 170).resize((GLYPH, GLYPH), Image.LANCZOS)
+
+
+def plate(w, h, trough=None):
+ """a steel plate at UP: dark fill, steel rim, light top edge, dark bottom edge, as the control bar's"""
+ img = Image.new("RGBA", (w * UP, h * UP), (0, 0, 0, 0))
+ d = ImageDraw.Draw(img)
+ rim = 2 * UP
+ d.rectangle([0, 0, w * UP - 1, h * UP - 1], fill=STEEL + (235,))
+ d.rectangle([rim, rim, w * UP - 1 - rim, h * UP - 1 - rim], fill=STEEL_DK + (222,))
+ d.rectangle([rim, rim, w * UP - 1 - rim, rim + 2 * UP - 1], fill=STEEL_HI + (200,))
+ d.rectangle([rim, h * UP - 1 - rim - 2 * UP + 1, w * UP - 1 - rim, h * UP - 1 - rim], fill=(0, 0, 0, 160))
+ if trough is not None:
+ x, y, tw, th = (v * UP for v in trough)
+ d.rectangle([x, y, x + tw - 1, y + th - 1], fill=STEEL + (200,))
+ d.rectangle([x + rim, y + rim, x + tw - 1 - rim, y + th - 1 - rim], fill=(0, 0, 0, 200))
+ return img.resize((w, h), Image.LANCZOS)
+
+
+def bar_block():
+ _, _, w, h = BAR_BLOCK
+ img = Image.new("RGBA", (w, h), GREEN + (240,))
+ # a lighter top row on the mapped part, so the bar reads as lit like the trough's rim
+ top = BAR[1] - BAR_BLOCK[1]
+ ImageDraw.Draw(img).rectangle([0, 0, w - 1, top + 1], fill=(170, 245, 185, 240))
+ return img
+
+
+def hud_sheet():
+ sheet = Image.new("RGBA", (SHEET_W, SHEET_H), (0, 0, 0, 0))
+ for index, kind in enumerate(GLYPHS):
+ sheet.paste(glyph(kind), (index * GLYPH, 0))
+ sheet.paste(plate(CHIP[2], CHIP[3]), CHIP[:2])
+ sheet.paste(plate(TRAY[2], TRAY[3], TROUGH), TRAY[:2])
+ sheet.paste(bar_block(), BAR_BLOCK[:2])
+ return sheet
+
+
+def area_decal():
+ n = AREA * AREA_UP
+ c = n / 2
+ r = AREA_RADIUS * AREA_UP
+ m = Image.new("L", (n, n), 0)
+ d = ImageDraw.Draw(m)
+ w = round(AREA_STROKE * AREA_UP)
+ step = 360.0 / DASHES
+ for i in range(DASHES): # a dash over 55% of each step, centred on it, so every tick sits on a dash
+ start = i * step - step * 0.275
+ d.arc([c - r - w / 2, c - r - w / 2, c + r + w / 2, c + r + w / 2], start, start + step * 0.55, fill=255, width=w)
+ for i in range(TICKS):
+ t = 2 * math.pi * i / TICKS
+ length = (TICK_LONG if i % 6 == 0 else TICK_SHORT) * AREA_UP
+ o = (c + r * math.cos(t), c + r * math.sin(t))
+ e = (c + (r - length) * math.cos(t), c + (r - length) * math.sin(t))
+ d.line([o, e], fill=255, width=round(2.4 * AREA_UP))
+ decal = keylined(m, 2 * AREA_UP, 140).resize((AREA, AREA), Image.LANCZOS)
+ # a decal clamps its texture, so any alpha left on the border is drawn out past it as a faint
+ # square: two texels of nothing round the edge
+ clear = Image.new("L", decal.size, 0)
+ clear.paste(decal.getchannel("A").crop((2, 2, AREA - 2, AREA - 2)), (2, 2))
+ decal.putalpha(clear)
+ return decal
+
+
+def mapped(name, box):
+ x, y, w, h = box
+ return ("MappedImage %s\n Texture = ReforgedReconHud.tga\n TextureWidth = %d\n TextureHeight = %d\n"
+ " Coords = Left:%d Top:%d Right:%d Bottom:%d\n Status = NONE\nEnd\n"
+ % (name, SHEET_W, SHEET_H, x, y, x + w, y + h))
+
+
+def ini():
+ blocks = [mapped("ReforgedReconGlyph%s" % kind, (i * GLYPH, 0, GLYPH, GLYPH)) for i, kind in enumerate(GLYPHS)]
+ blocks += [mapped("ReforgedReconChip", CHIP), mapped("ReforgedReconTray", TRAY), mapped("ReforgedReconBar", BAR)]
+ head = ("; The SIHA recon marks' 2D pieces (GameClient/RadarContactMarks.cpp). Written by\n"
+ "; Tools/recon_marks.py with Art/Textures/ReforgedReconHud.tga; do not edit by hand. Mapped\n"
+ "; images are not in the multiplayer INI checksum.\n\n")
+ return head + "\n".join(blocks)
+
+
+def main():
+ for name, img in (("ReforgedReconHud.tga", hud_sheet()), ("ReforgedReconArea.tga", area_decal())):
+ path = os.path.join(TEXTURES, name)
+ img.save(path)
+ print(path)
+ path = os.path.join(MAPPED, "ReforgedReconHud.ini")
+ with open(path, "w", newline="\r\n") as f:
+ f.write(ini())
+ print(path)
+
+
+if __name__ == "__main__":
+ main()