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 > CoD Multiplayer

CoD Multiplayer Everything about multiplayer in IL-2 CoD

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2011, 02:05 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default Full-scale airwar on REPKA server

EDIT 30.07.11:
Status of all Repka servers http://www.game-monitor.com/search.p...ame=all&num=30
or here http://en.stats4game.com/search?subm...p=&country=all

Original post:
---------------------------------
Welcome to a fullscale airwar with more than 10 air missions running simultaneously above frontlines creating the most immersive and action-packed airwar environment.

REPKA Server IP: 84.17.22.14:27016

Hunt enemy bombers.
Bomb shipping convoys.
Escort your bombers.
Strafe enemy airfields.
Protect your ships.
... and much much more to come.

Please note that red airfields are located in France.

Your feedback on the mission would be highly appreciated. Current mission file will be posted in this thread http://forum.1cpublishing.eu/showthr...758#post273758

Please feel free to use or modify the mission.

Let the Battle of France begin!

Last edited by Ataros; 08-27-2011 at 06:41 AM.
Reply With Quote
  #2  
Old 04-27-2011, 01:24 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Updated with version 1.16.11.

Reduced number of bots.
Reply With Quote
  #3  
Old 04-27-2011, 09:50 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Added scripts to remove abandoned and crashlanded planes.

Code:
using System;
using maddox.game;
using maddox.game.world;
using System.Collections.Generic;

public class Mission : AMission
{

    // loads my sub-missions
    public override void OnTickGame()
    {

            if (Time.tickCounter() % 72000 == 18000) // 40-10
            {
            GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/128BoF/128BoFsmGroundv1_0.mis");
            GamePlay.gpHUDLogCenter("Protect friendly shipping in the channel near France!");
            }

            if (Time.tickCounter() % 72000 == 71999) // 40-40 
            {
                GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/128BoF/128BoFsmBombersv1_0.mis");
				GamePlay.gpHUDLogCenter("Intel: Enemy bombers are heading to blue airfields!"); 
			}
        
            if (Time.tickCounter() % 72000 == 45000) // 40-25
			{
                GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/128BoF/128BoFsmBombersv1_0a.mis");
                GamePlay.gpHUDLogCenter("Intel: Enemy bombers are heading to red airfields in France!"); 
			}

         
    }

    // destroys aircraft abandoned by a player
    public void _DespawnEmptyPlane(AiActor actor)
    {
        if (actor == null)
        { return; }

        Player[] Players = GamePlay.gpRemotePlayers();

        bool PlaneIsEmpty = true;

        foreach (Player i in Players)
        {
            if ((i.Place() as AiAircraft) == (actor as AiAircraft))
            {
                PlaneIsEmpty = false;
                break;
            }
        }

        if ((PlaneIsEmpty) && (actor as AiAircraft).IsAirborne())
        {

            (actor as AiAircraft).hitNamed(part.NamedDamageTypes.ControlsElevatorDisabled);
            (actor as AiAircraft).hitNamed(part.NamedDamageTypes.ControlsAileronsDisabled);
            (actor as AiAircraft).hitNamed(part.NamedDamageTypes.ControlsRudderDisabled);
            (actor as AiAircraft).hitNamed(part.NamedDamageTypes.Eng0TotalFailure);
            //for 2mots
            (actor as AiAircraft).hitNamed(part.NamedDamageTypes.Eng1TotalFailure);

            //then wait 10min
            Timeout(600.0, () =>
            {
                (actor as AiAircraft).Destroy();
            });

        }
        else if (PlaneIsEmpty)
        {
            (actor as AiAircraft).Destroy();
        }
    }

    public override void OnPlaceLeave(Player player, AiActor actor, int placeIndex)
    {
        base.OnPlaceLeave(player, actor, placeIndex);
        _DespawnEmptyPlane(actor);
    }
    // destroys crushlanded aircraft in 10 minutes
    public override void OnAircraftCrashLanded(int missionNumber, string shortName, AiAircraft aircraft)
    {
        base.OnAircraftCrashLanded(missionNumber, shortName, aircraft);
        Timeout(600, () =>
        {
            aircraft.Destroy();
        });
    }
}
Reply With Quote
  #4  
Old 04-28-2011, 01:25 AM
Thee_oddball Thee_oddball is offline
Approved Member
 
Join Date: Mar 2011
Posts: 812
Default

your really getting into the C programing Ataros nice job )

where is a list of all the verbage..like gppostmissionload or gameplay.??? or gpHUDlogcenter....

thnx
__________________
Gigabyte Z68
Intel 2500K (@4.3 ghz)212 CM Cooler
8GB Ram
EVGA 660SC (super clocked) 2GB Vram
CORSAIR CMPSU-750TX 750W
64 GB SSD SATA II HD
WIN7 UL 64BIT

Last edited by Thee_oddball; 04-28-2011 at 01:30 AM.
Reply With Quote
  #5  
Old 04-28-2011, 06:55 AM
Jwam Jwam is offline
Approved Member
 
Join Date: Apr 2011
Posts: 51
Default

Very nice job Ataros
Reply With Quote
  #6  
Old 04-28-2011, 07:41 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Sorry, I did not mention that all credits and many thanks go to FG28_Kodiak http://forum.1cpublishing.eu/showpos...8&postcount=41
and ZaltysZ http://forum.1cpublishing.eu/showpos...5&postcount=16 because I assumed everyone interested followed that thread.
The part "// destroys crushlanded aircraft in 10 minutes" came directly from developers at sukhoi.ru forums.

I know nothing on C# besides copy-and-paste to Microsoft Visual C# 2010 Express. Please feel free to use and modify the scripts.

Last edited by Ataros; 04-28-2011 at 09:34 AM.
Reply With Quote
  #7  
Old 04-28-2011, 08:52 AM
MadTommy MadTommy is offline
Approved Member
 
Join Date: Jan 2011
Posts: 493
Default

Thanks for the server, tried it yesterday but had major issues.

Choose red, and every time i spawned my plane would blow up or get turned upside-down. Tried 5 or 6 times, using different spawn points and different planes. I gave up in the end and left the server.
Reply With Quote
  #8  
Old 04-28-2011, 09:33 AM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Quote:
Originally Posted by MadTommy View Post
Thanks for the server, tried it yesterday but had major issues.

Choose red, and every time i spawned my plane would blow up or get turned upside-down. Tried 5 or 6 times, using different spawn points and different planes. I gave up in the end and left the server.
Thank you for your feedback. We probably have to move spawnpoints back to hangars as planes explode if start at runway. Also we will try moving spownpoints to better airfields (which do not have hangars) in future.

This is the map issue which we can not edit and the Devs are working on it.

Do not give up. If I explode I hit create again immediately and spawn at a good location the 2nd time. Try a new version tonight please.
Reply With Quote
  #9  
Old 04-28-2011, 11:16 AM
MadTommy MadTommy is offline
Approved Member
 
Join Date: Jan 2011
Posts: 493
Default

Quote:
Originally Posted by Ataros View Post
Do not give up. If I explode I hit create again immediately and spawn at a good location the 2nd time. Try a new version tonight please.
Didn't want to give up.. but after 6 times in a row i'd had enough.. but it won't put me off trying again. It does need fixing though.. i'm sure it will frustrate other too.

Thanks again for the server.
Reply With Quote
  #10  
Old 04-28-2011, 03:57 PM
Ataros Ataros is offline
Approved Member
 
Join Date: Jun 2010
Location: USSR
Posts: 2,439
Default

Today I had to create a new plane about 10 times in a row, changing airfields sometimes... But it was worth it.

Another busy day in France.

(sorry for large pix, did not find SPOILER code here)















Reply With Quote
Reply


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 01:31 AM.


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