PDA

View Full Version : Rearm Refuel Example Scripts For Cliffs Of Dover



Artist
Sep-13-2019, 10:59
ATAG_Oskar and me have prepared example mission scripts for the Rearm and Refuel functionality (re)introduced with Patch 4.56


Very Basic Singleplayer Rearm Refuel Example:

No checks for requirements are are made, so rearm and refuel is possible anywhere anytime - Even while flying ;-)

Rearm and refuel are immediate, no messages are shown.

Use the Order Menu aka "TAB Menu" and 4. Mission

4. Mission
- 1. Rearm
- - 1. Rearm all
- - 2. Rearm guns only
- 2. Refuel
- - 1. Refuel 100%
- - 2. Refuel 50%
- - 3. Refuel 25%

Download: https://theairtacticalassaultgroup.com/forum/Downloads.php?do=download&downloadid=212


Rearm/Refuel Example with Requirements and Delay for Singleplayer And Multiplayer

Rearm/Refuel

* checking for
- aircraft must be on the ground at an airfield
- aircraft may not be damaged
- fuel cocks must be closed
- magnetos must be off
- aircraft must not be moving (set chocks)

* Refuel time adjusted for amount of fuel

Bonus: "3. Show damages"

* Shows a detailed list of damages of your aircraft
(Server log info window)

Inserts into Order Menu (aka TAB Menu):

4. Mission
- 1. Rearm
- - 1. Rearm all
- - 2. Rearm guns only
- 2. Refuel
- - 1. Refuel 100%
- - 2. Refuel 75%
- - 3. Refuel 50%
- - 3. Refuel 40%
- - ...
- - 9. Refuel 10%
- 3. Show damages

Download for Singleplayer: https://theairtacticalassaultgroup.com/forum/Downloads.php?do=download&downloadid=213
Download for Multiplayer: https://theairtacticalassaultgroup.com/forum/Downloads.php?do=download&downloadid=214

ATAG_Snapper
Sep-13-2019, 18:52
I tried #2 on a very simple Single Player Mission I had made. Works like a charm. :thumbsup: It’s great that there are reminders scripted in (ie complete stop, chocks in, mags off, fuelcock closed). The delay of 2:30 is just right, too. Really good to show a countdown so a player knows his aircraft is being attended to. The damage report is another excellent feature.

Can we get the multiplayer scripts added to the ATAG maps? :-)

Erpr.Gr.210_Mölders
Sep-14-2019, 06:09
Can we get the multiplayer scripts added to the ATAG maps? :-)

This should be a very nice addition to the ATAG server IMHO! This script is a TFS gem indeed!

Marcost
Sep-24-2019, 06:06
Thank you for creating this script, it's a great addition.

I have a question - I'm new to Cliffs of Dover (came from 1946/modding) so please forgive my ignorance:

I've tried this and some other pre-made scripts and got them working in missions. As I understand it, if i want such functionality in all my missions (I'm SP only ATM), I have to add it to every mission.cs file. Is that correct or is there a way to inject such scripts at a 'universal' level so that they become part of default gameplay?

Many thanks ,

M

DD_FT
Sep-24-2019, 14:57
Have added the script into the mission running on the DangerDogz server.
(Should be active in about an hour from now)

Thanks for this script! :thumbsup:

DRock
Sep-24-2019, 16:24
Thank you for this.

G50s have no fuel cock, can they still R&R?

DRock
Sep-24-2019, 18:16
Thank you for this.

G50s have no fuel cock, can they still R&R?

Just answered my own question.

It works great on DangerDogz.

It took 2:30 to rearm, the same to refuel 50%. It gives you the time remaining every 15 seconds.

The damage report is useful, too.



Thanks again to everyone involved with this feature.:party2:

Artist
Sep-25-2019, 03:32
Thank you for this.

G50s have no fuel cock, can they still R&R?

Yes (as you found out yourself, too): There are a few exception for some planes in the script, the G.50 is not checked for fuelcock position (always open), the Spits and Ju-87 have the position reversed (0 is open , 1 is closed)

Artist
Oct-01-2019, 15:58
** Update v3.9: Easier integration into existing missions.

Moved submenu into RearmRefuel class and other changes to make it easier to integrate into existing missions.

nchardon
May-27-2020, 04:45
Eat a (__)(__)ZZZZZZZZD forum, just doing this to get a dl


ATAG_Oskar and me have prepared example mission scripts for the Rearm and Refuel functionality (re)introduced with Patch 4.56


Very Basic Singleplayer Rearm Refuel Example:

No checks for requirements are are made, so rearm and refuel is possible anywhere anytime - Even while flying ;-)

Rearm and refuel are immediate, no messages are shown.

Use the Order Menu aka "TAB Menu" and 4. Mission

4. Mission
- 1. Rearm
- - 1. Rearm all
- - 2. Rearm guns only
- 2. Refuel
- - 1. Refuel 100%
- - 2. Refuel 50%
- - 3. Refuel 25%

Download: https://theairtacticalassaultgroup.com/forum/Downloads.php?do=download&downloadid=212


Rearm/Refuel Example with Requirements and Delay for Singleplayer And Multiplayer

Rearm/Refuel

* checking for
- aircraft must be on the ground at an airfield
- aircraft may not be damaged
- fuel cocks must be closed
- magnetos must be off
- aircraft must not be moving (set chocks)

* Refuel time adjusted for amount of fuel

Bonus: "3. Show damages"

* Shows a detailed list of damages of your aircraft
(Server log info window)

Inserts into Order Menu (aka TAB Menu):

4. Mission
- 1. Rearm
- - 1. Rearm all
- - 2. Rearm guns only
- 2. Refuel
- - 1. Refuel 100%
- - 2. Refuel 75%
- - 3. Refuel 50%
- - 3. Refuel 40%
- - ...
- - 9. Refuel 10%
- 3. Show damages

Download for Singleplayer: https://theairtacticalassaultgroup.com/forum/Downloads.php?do=download&downloadid=213
Download for Multiplayer: https://theairtacticalassaultgroup.com/forum/Downloads.php?do=download&downloadid=214

Maru
May-27-2020, 05:12
Eat a (__)(__)ZZZZZZZZD forum, just doing this to get a dl

Are they tasty? Have you already tried some? :salute:

Karaya
May-27-2020, 05:34
Are they tasty? Have you already tried some? :salute:

Pretty sure he's a connoisseur!

ATAG_Snapper
May-27-2020, 06:12
Eat a (__)(__)ZZZZZZZZD forum, just doing this to get a dl

Friendly PM sent. :D

-----------------------------------------------------

Hi nchardon,

Welcome to the forum. Hope your download was successful and you can utilize the reload/refuel feature in your missions.

Please note that everything here is free. No charge on any of the downloads, the use of this forum, the ATAG server which operates 24/7, the ATAG Teamspeak server: all free of charge. Our only wish is that you enjoy yourself and feel free (there's that word again: FREE!) to come back here and ask any questions you wish.

We do ask for one thing only in return which also happens to be FREE: Respect.

Your post (https://theairtacticalassaultgroup.c...l=1#post354129) was offensive. A lot of people here give up their time willingly to help others (including uploading utilities for others to share). It's only right that they be accorded the same respect that they would show you. I ask that you edit your post at the above link accordingly so that your access to this forum (including the downloads) is not interrupted.

Sincerely,

ATAG_Snapper
Forum Administrator

ITAF_Airone1989
Oct-13-2020, 06:17
I tried to use the "multiplayer RR" script for a new mission but I receive this error:

c:\Users\Stefano\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Single\003AttackDoverPROVARRRRRRR.c s(585,44): warning CS0168: The variable 'e' is declared but has never been used.

c:\Users\Stefano\Documents\1C SoftClub\il-2 sturmovik cliffs of dover\missions\Single\003AttackDoverPROVARRRRRRR.c s(615, [unable to read further]

I just did a copy/paste. It's the script broken or should I do something different?

ITAF_Airone1989
Oct-13-2020, 06:32
My bad. I saw that cause I was trying from FMB test mission.
I did a test on the server and seems to work! Thanks Artist for your work

roqet
Jun-09-2022, 19:17
Looks great.
Can't wait to try it out.

ATAG_Walstein
Jun-11-2022, 12:18
Thank you very much!!!:salute:

ATAG_Walstein
Jun-12-2022, 05:48
I tried #2 on a very simple Single Player Mission I had made. Works like a charm. :thumbsup:

Can we get the multiplayer scripts added to the ATAG maps? :-)

Cheerio, Snapper!:salute:
I would like to try this in a simple Single Player Mission. But I don´t have a clue where I should write the code. Is there any simple instruction at hand for me to use this code?

Thanks!

P.S. I tried it with Fullmissionbuilder there, where you write code, but the Single Player Mission did not react to it.

ATAG_Snapper
Jun-12-2022, 11:55
Hi Walstein,

Actually, Artist and Oskar made this a lot easier than you'd think.

1) Download the RearmRefuel_Level3_ReqAndDelay_Singleplayer-3.9.7z (https://theairtacticalassaultgroup.com/forum/Downloads.php?do=file&fileid=848) to a new folder and extract it into that folder.

2) The file you want is RearmRefuel_Level3_ReqAndDelay_Singleplayer.cs

3) Copy and paste that file to your Missions folder (C:/This PC/Documents/1C SoftClub/Missions

4) Rename this .cs file to the exact name of the Single Mission you wish to play.

That's it!

:)

Addendum: Before posting this I actually gave it a try with the current 5.032 release version - it worked! :D (Also, it’s been 3 years since I last did this, so I had to refresh my memory. LOL)

BTW - if anyone has an easier way of doing this, please jump in! My feelings won’t be hurt!

:)