Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-02-2011, 01:55 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default Moving frontline and capturing airfields script sample

Here is a sample script from a member of the dev team.

Script does the following:
- reads frontline markers from the main mission file
- creates spawns at each airfield of the map depending on side
- creates 2 triggers at each frontline marker for ground group passthrough (for both sides)
- checks if enemy ground group gets to the trigger and
then based on trigger:
- changes marker side and as a result moving frontline
- destroys remaining enemy units near marker to prevent immediate recapture (not working sometimes)
- changes airfields side and planeset if they are left behind frontline
- changes score
- loads defending and attacking submissions.

To understand the principals of naming submissions please study this mission carefully: http://forum.1cpublishing.eu/showpos...&postcount=133
It uses an earlier version of this script.

Now everything a mission maker has to do is select several frontmarkers and create submissions spawning ground groups attacking these markers. The rest is done automatically.
To find out the number of a marker I plan to attack I place a camera unit on top of the frontline marker, save and then open the mission file in notepad to compare camera coordinates with markers coordinates. Devs mentioned that marker numbers will be shown in FMB in the future.

There is a known bug that prevents players to spawn at captured airfields. Devs will try to fix it by next patch so get your missions ready )

The script is attached as a .txt file.
Attached Files
File Type: txt main1_8.txt (18.1 KB, 169 views)

Last edited by Ataros; 06-02-2011 at 02:01 PM.
Reply With Quote
  #2  
Old 06-02-2011, 02:01 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Thanks!

May be it's possible for you to ask the dev about Addin development for CoD? A Piece of Sample Code would be very helpfull
Reply With Quote
  #3  
Old 06-02-2011, 02:07 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Some guys at sukhoi.ru came to conclusion that there is a chance that interfaces for addins are not finished yet. The good news is that they found many of them )

If you can explain in detail for what to ask in particular I may try to ask. However I have no idea of what piece of code can be helpful. Thus you have to explain it to me first or I can mess up the translation ))
Reply With Quote
  #4  
Old 06-02-2011, 02:24 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

Can you please ask him, if it's possible to modify the Multiplayer Plane Selection Menu.

So its possible to select a Airfield on the left side and then show a list of the available Planes (park spawn and idle) on the right, where a Player can choose one.
At the moment it's only possible if you scroll in and select the plane icon (if in Game Icons are on).
Reply With Quote
  #5  
Old 06-02-2011, 03:06 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

I am sure it is possible.

Do you mean you are prepared and ready to write this interface mod/Addin if he explains how to switch it on and connect it to the game?
Reply With Quote
  #6  
Old 06-02-2011, 03:25 PM
FG28_Kodiak FG28_Kodiak is offline
Approved Member
 
Join Date: Dec 2009
Location: Swabia->Bavaria->Germany
Posts: 884
Default

I think so
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.