Page 1 of 10 12345 ... LastLast
Results 1 to 10 of 93

Thread: Airlift v1.51b

  1. #1
    Airlift 1.73 -hotfixed!-


    Airlift is a fully dynamic and repeatable chopper pickup service that mission editors can add to their mission with great ease.

    These scripts are designed to be able to work with other scripts and script modifications with no conflict. The download is the template mission and you can add Airlift to your existing missions by copying the directory named TJ72_CPup into your target mission folder, adding the line from the init in the root of the template mission folder, and merging the template mission into your own mission.



    After that your player must be added to a list in the file TJ_Init in the TJ72_CPUp directory as (leader group). NEW the players group must be added to the E_Grouplist array in the same order as the playerlist array. If the player is select 1 position on the playerlist array then they are select 1 on the grouplist array. This is covered in the readme and also commented in the .sqs file. So please read the readme.

    Once your mission has Airlift included the group leader will be able to direct air transport with the UH60 for his group. The UH60 can be switched out with another type but the script is designed to have 1 pilot and two gunners so no littlebird support yet. This script is solely for Infantry transport purposes and is not involved with supply drops or reinforcement missions. Although the player could direct a remote pickup for distant AI to load into somehow and arrive at the players desination of choice. Something like this would be a usage of the dynamic features available in the system.

    The scripts use six choppers and makes use of them dynamically.

    Overall this script should help any SP or MP missions that the mission maker would like some kind of automated pickup service. The benefit being that the player will not have to manage any group AI or cumbersome menu array since the waypoints are set with map click and the rest is handled with the action menu. The advantage of this system over other chopper scripts would probably be the depth in the options to abort and advance takeoffs and to plan special flightplans aside from a normal beeline to the LZ which might put the chopper in danger en route. The system uses waypoints with adjusting calculations to reduce travel time over long distances but still preserve the flight plan. The system is perfectly capable of fast direct pickup as well.



    Airlift is designed to work in MP but it is currently a public BETA state since it has only ben tested on a dedicated server with one player. The system needs to be used by multiple users and have no bugs reported before it moves up from BETA status.....
    It was originally intended to have this script run smoothly for multiple human controlled groups in MP simultaneously.


    I will be updating this thread with more notes and points and I would like to hear any feedback that any of you might have regarding this script/system.


    Notes: There is a Action added during the Airlift to Advance to next LZ or Advance to home base. This is to allow the leaving behind of any one in your group should the script caller need. Due to the actions menu changes while on board vehicles, the caller will have to exit the vehicle to access these actions.
    The transport chopper will takeoff for next position when entire group is loaded/unloaded by default.

    Airlift still only supports one side per mission. This will be updated in the near future!

    -NEW- Respawn friendly with action added back after respawn!
    This is a test version of this mode since it has not ben tested in mulituser MP session but it works in MP dedicated test mode.

    -Fixed- Bug where respawn initial version was broken.

    -NEW- Water Rescue and drop off feature.
    Chopper will spawn a boat if the caller is in the water. Also, chopper will spawn a boat if destination LZ is on the water.

    -NEW- Precision Landing mode. Used for water landings. But by switching a variable in the TJ_Init file, can also be used for land.
    Default is disabled for land as Precision landing is slower than default landing mode.
    Enjoy !

    IMPORTANT NOTE: I forgot to include in the Readme this info:

    If you want more than one base you must update the etar and wtar arrays for that chopper with the correct base number. In the example missions you can see that trnspt03 has an etar03 (or wtar03 for WEST) select 3 value of 2 for ebas02. If you add another base logic ebas03 or wbas03 you must change the array value to 3. These arrays are listed in TJ_Init.
    ---------------------------------------------------------------
    1.71

    -FIXED- Some typos left in code
    -FIXED- Precision Landing over water has been tweaked for better speed


    -------------------------------------------------------------------------
    1.73
    -ADDED-Anti Crashing Code added, chopper will attempt to raise flying height if crash is imminent
    -ADDED- Tweaks for cruising altitude to attempt better flights over hilly terrain and Long Range distance threshold
    -FIXED- Improved Long Range code to avoid heli hanging in air before resuming next Waypoint
    -ADDED- Vector markers are now arrows that point the direction of travel for chopper




  2. #2
    Very Nice Mate.

    MattXR ( MxR )

    Check out my Twitter BIS Fans and Sub!
    -- MRKCCO Twitter --


  3. #3
    All works great except 1 thing

    if you are the leader of a group of players and you are killed and respawn you no longer get the option to call in pick up instead this option goes to the 2nd in command even if this is an AI controled player.

    Have you any idead how to change this so you do not loose this option if respawn.

    One thing i have noticed though is if you go back to your body you can then call in a heli but as soon as you walk away from your body this option is removed again.

    Any ideas what could cause this or maybe a work around?

  4. #4
    There needs to be a script or trigger to give the call Airlift action back to the player after respawning.

    The TJ_Init file runs the loop and adds the action for each player in the player list at the start. The air lift script replaces the Call Airlift action at the end of the cycle.
    A refresh of this process will replace the action. Not sure exactly how to implement it offhand though but Ill work on it. But you can see in that file where Im adding the action to start the process.




  5. #5
    Thanks for that i will also take a look and let you know of any work around i find. ***You can download my beta test version of the mission with your script in at the following URL:
    Morticus Beta Test Missions

    The mission is using the XAM1.3 English Add on.
    Please feel free to take a look. and comment to me via E-mail all enclosed in the readme.txt in the download.
    The mission is still in development and changes daily at the moment.




  6. #6
    I hope to try out your mission soon. I have ben testing it out on Sahrani and trying to find bugs or breaks and there are a couple.
    I have to try combining the script with other script projects out there as well.

    Next version will have a Parachute mode where you can click an LZ position past the drop zone, if the group ejects out during the flight then the BH will return to base instead of landing an empty chopper.


    Please note that Airlift will break if your LZ winds up far over the water and you dont click to reroute before the LZ threshold has ben reached. Once you are onboard the system expects you to click your LZ and reroutes properly.


    For the respawn problem. I was thinking of making a trigger that will add back the action if the player goes to it. Like a marker that says request Airlift. Then the list of leaders from the mission start is checked and if that player is in the original list of players then they get the Airlift option back. Other players would not get the action. But I dont want to add the action back more than once so your action menu gets multiple options, argh. So I have to check if you allready have the action before it is added. Hmm have to figure all that out....

    This would require respawning back to base to get the action and not in the field. If your next in command is not AI then they will get the action in the field if the script is still running which would make sense as if the next in command picked up the radio and now can call Airlift for next time. But I realize if the Airlift is enroute and the leader dies it will ABORT mission so the rest of the team is SOL so I need to rethink this logic damn....
    If Airlift isnt RTB while leader dies then I dont expect the action to be put on the next leader since its added after the current Airlift has landed.




  7. #7
    Looking at the script you have the only thing i can think of is to place a bit of code in that if player not alive then remove the action, then i suppose in the init put reference back to your script? ***not right up on scripting yet.


    Mybe this will work but not tested it or sure about it.


    <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> #Start
    _alive = alive _player
    _player = Playerlist select _i
    if &#40;_alive&#41; then {_Action1 = _player addaction &#91;&#34;call for Airlift&#34;, &#34;TJ72_CPUp&#92;SET_AR_VAR.sqs&#34;&#93;}
    if&#40;&#33;_alive&#41; then goto &#34;1&#34;
    ? _i &#62;= _countplayers - 1&#58; goto &#34;End&#34;
    _i = _i + 1
    goto &#34;Start&#34;
    #END

    #1
    _player removeaction _Action1
    goto &#34;Start&#34;
    [/QUOTE]

    Then is suppose you could call the script in the player init field, Dont get me wrong i am no expert at scripting so if this wrong then it will not work.




  8. #8
    Warrant Officer ck-claw's Avatar
    Join Date
    Oct 29 2005
    Location
    On The End Of A Bottle Of Cider-Somerset - UK
    Posts
    2,241
    Looks great indeed,yet to test but will do soon&#33;


    How Ppl Treat Me Is Their Path, How I Respond Is Mine...

  9. #9
    I tested the scrip does not work I have tried the trigger calling th script again, that does not work either and i have tried to put some code in the init of the player and that does not work. I will keep looking though. Its a strange one indeed. maybe if we tied the menu up with a obj(player) maybe then would get the menu all time just all the players would have the option.

    So did you like the mission so far ? needs a lot of refining but its bloody hard to do sector 1 never mind the rest of the island. need to iron out some bugs though but gettig there.

  10. #10
    I just had an idea you may be able to put in your airlift script. I was thinking that maybe the call airlift is done through a item, that the players can pick up from a body in order to call the airlift? as i noticed in the grouplink2 mod you get a first aid kit and you can carry this about even though it is not physicly seen in your pack. Maybe make it a radio of types, so when dead it stays on the players boby until it is removed then you have to get another from a ammo dump.

    Not sure how to do this though but would work like the medikits except not heal you of coarse

Page 1 of 10 12345 ... LastLast

Posting Permissions

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