Jump to content

Question

Hi guys,

 

I can't seem to find the heli fast rope / rappell script, I know it was active on the 1.0.5.1 and for arma 2 but not seen anything for recent.

 

If anyone has a working plugin I would be much obliged! 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Ok, found this. 

Would it work?!

 

addaction.sqf

Spoiler

_array = _this select 3;
_param = _array select 0;
_code  = _array select 1;
_spawn = _param spawn _code;

 

fastropeinit.sqf

Spoiler

#include "functions.sqf"
BTC_fast_rope_h = 10;
BTC_AI_fast_rope_on_deploy = 1;
BTC_roping_chopper = ["MH60S","UH60M_EP1","CH_47F_EP1_DZE","MH60S_DZE","Mi17_DZE","UH1H_DZE","UH1Y_DZE","UH60M_EP1_DZE"];
{
    _rope = _x addaction [("<t color=""#ED2744"">") + ("Deploy Rope") + "</t>","addAction.sqf",[[],BTC_deploy_rope],7,true,false,"","player == driver _target && format [""%1"",_target getVariable ""BTC_rope""] != ""1"" && ((getPos _target) select 2) < BTC_fast_rope_h && speed _target < 2"];
    _rope = _x addaction [("<t color=""#ED2744"">") + ("Cut Rope") + "</t>","addAction.sqf",[[],BTC_cut_rope],7,true,false,"","player == driver _target && format [""%1"",_target getVariable ""BTC_rope""] == ""1"""];
    _out  = _x addaction [("<t color=""#ED2744"">") + ("Fast Rope") + "</t>","addAction.sqf",[[player],BTC_fast_rope],7,true,false,"","player in (assignedCargo _target) && format [""%1"",_target getVariable ""BTC_rope""] == ""1"""];
} foreach (nearestObjects [player, BTC_roping_chopper, 50000]);

 

functions.sqf

Spoiler

BTC_deploy_rope =
{
    hint "Rope deployed";
    _veh = vehicle player;
    _veh setVariable ["BTC_rope",1,true];
    if (BTC_AI_fast_rope_on_deploy == 1) then {_fast_rope = [_veh] spawn BTC_AI_fast_rope};
    WaitUntil {!Alive _veh || !Alive player || (((getPos player) select 2) > BTC_fast_rope_h) || format ["%1",_veh getVariable "BTC_rope"] != "1"};
    _veh setVariable ["BTC_rope",0,true];
};
BTC_cut_rope =
{
    hint "Rope cut";
    _veh = vehicle player;
    _veh setVariable ["BTC_rope",0,true];
};
BTC_fast_rope =
{
    hint "fast roping";
    _unit = _this select 0;
    _veh = vehicle _unit;
    _unit action ["EJECT",_veh];
    _unit setPos (_veh modelToWorld [2,1,-2]);
    unassignVehicle _unit;
    _unit switchMove "LadderRifleStatic";
    _unit setDir (getDir _veh - 90);
    WaitUntil {!Alive _unit || (((getPos _unit) select 2) < 1.5)};
    if (Alive _unit && (((getPos _veh) select 2) < BTC_fast_rope_h) && speed _veh < 5) then
    {
        _unit setVelocity [0,0,0];
        _unit playMove "LadderRifleDownOff";
        if !(isPlayer _unit) then {_unit move [((getPos _unit) select 0) + 3,((getPos _unit) select 1) + 3,0];};
    };
    if (((getPos _veh) select 2) > BTC_fast_rope_h) then {hint "The chopper flew away! The rope has been cut!";};
};
BTC_AI_fast_rope = 
{
    _veh = _this select 0;
    _veh flyInHeight (BTC_fast_rope_h - 2);
    _time = time + 60;
    WaitUntil {!Alive _veh || !Alive driver _veh || (((getPos _veh) select 2) <= BTC_fast_rope_h) || _time < time};
    doStop _veh;
    if (Alive _veh && Alive driver _veh && (((getPos _veh) select 2) <= (BTC_fast_rope_h + 1))) then
    {
        {
            if !(isPlayer _x) then {_fast_rope = [_x] spawn BTC_fast_rope;sleep 3;};
        } foreach assignedCargo _veh;
    };
    sleep 3;
    _veh move position _veh;
};

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By 2DayZ2Retirement
      -PROBLEM SOLVED-
       
      G'day, Survivors.
      I am having an issue on my server where vehicles which spawn randomly around the map repair themselves upon server restart.
      I use this config in my init.sqf which successfully spawns the vehicles in damaged and with low fuel...
      DynamicVehicleDamageLow = 75;
      DynamicVehicleDamageHigh = 100;
      DynamicVehicleFuelLow = 0;
      DynamicVehicleFuelHigh = 25;
      ...However upon each server restart the vehicles repair themselves (the fuel remains low however) and for the life of me I can't figure out why this is happening. 
      DayZ Version -DayZ Epoch 1.0.6.2
      Scripts Used -DZAI | -DZMS | -Right Click Actions (Suicide, Smoke Drugs, GPS Scan)
      AntiHack - InfiSTAR
      Server Host - GTXGaming
      My HiveEXT.log and arma2oaserver.RPT logs are not showing anything out of the ordinary.
      I'm not sure if it matter, but all Planes/Helicopters and Boats have been removed from the server via the dynamic_vehicle.sqf.
      In addition, all of the traders and trader cities being removed by removing the call for the CfgServerTrader.hpp in the description.ext.
      If there is any other info I can show to assist in fixing this problem please let me know, any help would be greatly appreciated.
      Cheers.
    • By rocalpha
      Bonjour, j’écris aujourd’hui parce que j’aimerais savoir si vous ne pourrez pas m'aider. Je loue un serveur via gportal et j’aimerais pouvoir être mon serveur en PvE, mais aussi créer des éléments de base pour la connexion et des choses simples comme . J'ai un autre problème lorsque j'achète une voiture chère à pied cela me met une flèche rouge puis rien non aucun véhicule il apparait qu'après un redémarrage du serveur
    • By Warburgg
      I installed the dynamic climate script and it happens that it rains on the server but only lasts 10 seconds and stops. Is it because I use the script that speeds server time? I currently use Control Time which allows the server to have 2 hours of day and 1 hour night.
      The other climates such as overcast and fog last the forecast time 5-20 minutes but the rain does not.
      In my logs show: 16:52:30 "39:2 Debug: Rain set to 0.92421 for 10.6582 minutes". It rains until it rains but soon stops.
    • By Tanita-Corp
      Hello guys)
      Tell me please how to make 
      spawned veh. unused 4 day deleted
      with key veh. unused 14 day deleted
       
      I broke my head
    • By Hanse
      Hello i am knew to this and i need someone to show me the ropes
      Steam
      IGN:Hanse
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...