Results 1 to 4 of 4

Thread: MP Map scripts - where to start?

  1. #1
    ATAG Member ATAG_Flare's Avatar
    Join Date
    Oct 2013
    Location
    Interior BC --> Kingston ON
    Posts
    2,801
    Post Thanks / Like
    Total Downloaded
    383.91 MB

    MP Map scripts - where to start?

    So, I've built what I hope to be an MP map for the server.

    It's got all the spawn points, ships, targets built, tank convoys, tons of flak, and what I think will be an interesting plane matchup (early war!) and uses a part of the Tobruk map not usually visited in the missions we have so far, seige of Tobruk rather than Sollum/Bardia area.

    Now, I am no stranger to programming but I am a complete beginner to CloD scripts.

    I believe I need the following four main components (treat all of the following as pseudocode):

    1. Scripts to count a target as destroyed

    I assume this one is something like

    onObjectDestroyed{
    points_red += 1;
    }

    But how does one make it so multiple objects are needed to destroy a target? Say you need to blow up the Radar mast, the 2 smaller radar mast, and the command trailer, for example, or a platoon of 6 tanks.

    2. Script to keep track of points and roll the map

    This would be a simple loop like this, right?

    if(points_red >= target_points){
    showHudMessage('Red Wins');
    server.restart();
    }

    3. AI raids

    So for this, do I need to create a submission that's just the waypoints of the bombers? And then a script could do something like the following:

    onTab4Select(){
    mission_load('bomb_tobruk_blue.mis');
    }

    4. <rr, <tl

    Not really sure how these would work.


    Now, my question is, surely every mission out there already has these features implemented in one way or another. Would it be possible to get the mission files to some of the missions to look at and with permission, reuse these scripts?

  2. Likes Gingerbread liked this post
  3. #2
    Team Fusion Artist's Avatar
    Join Date
    Mar 2010
    Posts
    2,877
    Post Thanks / Like
    Total Downloaded
    319.97 MB

    Re: MP Map scripts - where to start?

    SampleMission-v1.0.5.7z:

    https://mega.nz/file/IuJlECAQ#GdiQsD...BDR6JYwyv2ioaY

    Mission Builder's (still very incomplete) Manual (Yo-Yo's going to be the better one, anyway ):
    https://personal.onlyoffice.com/Prod..._IjM1NjYzOTQi0

  4. #3
    ATAG Member ATAG_Flare's Avatar
    Join Date
    Oct 2013
    Location
    Interior BC --> Kingston ON
    Posts
    2,801
    Post Thanks / Like
    Total Downloaded
    383.91 MB

    Re: MP Map scripts - where to start?

    Thanks, that sample mission is really useful.

  5. #4
    Supporting Member
    Join Date
    Dec 2019
    Posts
    180
    Post Thanks / Like
    Total Downloaded
    21.76 MB

    Re: MP Map scripts - where to start?

    After being in a similar position to flare, this could be a godsend after weeks where I can knock an airfield out by bomb mass dropped but cant work out how to stop anyone spawning anyway.
    thanks for this

  6. Likes Gingerbread liked this post

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •