Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   CoD Multiplayer (http://forum.fulqrumpublishing.com/forumdisplay.php?f=192)
-   -   Full-scale airwar on REPKA server (http://forum.fulqrumpublishing.com/showthread.php?t=22185)

Ataros 04-26-2011 02:05 PM

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!

Ataros 04-27-2011 01:24 PM

Updated with version 1.16.11.

Reduced number of bots.

Ataros 04-27-2011 09:50 PM

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();
        });
    }
}


Thee_oddball 04-28-2011 01:25 AM

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

Jwam 04-28-2011 06:55 AM

Very nice job Ataros :)

Ataros 04-28-2011 07:41 AM

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.

MadTommy 04-28-2011 08:52 AM

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.

Ataros 04-28-2011 09:33 AM

Quote:

Originally Posted by MadTommy (Post 275011)
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.

MadTommy 04-28-2011 11:16 AM

Quote:

Originally Posted by Ataros (Post 275029)
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. :)

Ataros 04-28-2011 03:57 PM

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)

http://cloud.steampowered.com/ugc/55...410AC1209E52C/

http://cloud.steampowered.com/ugc/55...75E8BEA899CC0/

http://cloud.steampowered.com/ugc/55...759A16F789AE9/

http://cloud.steampowered.com/ugc/55...833DFC72A19E8/

http://cloud.steampowered.com/ugc/55...03E14FBBDF721/

http://cloud.steampowered.com/ugc/55...E1E11815287BE/

http://cloud.steampowered.com/ugc/55...A55663CCB0744/

http://cloud.steampowered.com/ugc/55...886758F824203/


All times are GMT. The time now is 11:21 AM.

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