Another brilliant piece of code by
naryv. If you like ground attack missions you will have a lot of fun with it. It is ready to use.
How to play an attached sample mission.
Put both files from the attached archive to Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight
You can start the mission from Multiplayer >> Server section and play alone or with friends. Set password protected server if you do not want others to join it. Select side and airfield and create aircraft to play.
How to create your own mission with this script.
Open FMB and place objects called Frontline Markers for both red and blue side as you like. The markers create a frontline. This is all editing that is required. The rest is done automatically by the script. Name your mission file MF_any2.mis and save it to the following directory:
Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Multi\Dogfight
(If you want to save your mission with a different name in the future and/or change the path you can edit the following line in the script file: ISectionFile missFile = GamePlay.gpLoadSectionFile("missions\\Multi\\Dogfi ght\\MF_any2.mis"); . Do not forget to rename the .cs file to exactly match the name or your mission file but with .cs extension in this case. )
Put the .cs file from the attached archive to the same directory. That's all. You can start your mission from Multiplayer >> Server section and play alone or with friends. Set password protected server if you do not want others to join it. Select side and airfield and create aircraft to play.
Alternatively you can just open the attached sample file in FMB and move available Frontline Markers according to your preference.
How the script works.
- reads FrontlineMarkers positions from your mission file
- creates triggers at each marker position to change marker side/colour based on which ground units captured the marker
- creates AT and AAA arty at each marker after capture
- creates tank groups at each marker
- tank groups attack enemy markers or enemy tank groups whichever is more close
- when tanks capture enemy marker it changes its colour and becomes a friendly marker and the frontline moves.
- all enemy airfields and spawnpoints that turned out to be on a friendly territory after the frontline moved become friendly, available planeset changes.
- when a friendly group of tanks is killed a new group of tanks is spawned at the most close friendly marker.
Please give you comments and report bugs in this thread:
http://www.sukhoi.ru/forum/showthrea...=1#post1647624
As you can see the author answers in English there.
If you are thinking of writing a small online war like ADW it is a great code to manage ground attacks in your war. BTW dynamic air attacks generation can be found in that mission
http://forum.1cpublishing.eu/showpos...&postcount=133 If you can combine both in one script the war code can be considered almost ready
upd. The mission is being tested on Repka #2 server ATM please give it a try and report bugs.