This commit is the equivalent of a atomic bomb
This commit is contained in:
27
braf_sar/Braf_Scripts/DRS.sqf
Normal file
27
braf_sar/Braf_Scripts/DRS.sqf
Normal file
@@ -0,0 +1,27 @@
|
||||
// Declaração de variáveis:
|
||||
params ["_heli"];
|
||||
|
||||
// Criação e posicionamento do assento:
|
||||
|
||||
// Espera de 1 segundo
|
||||
sleep 1;
|
||||
|
||||
// Texto que aparece no side channel
|
||||
_heli vehicleChat "Deploying Rescue Seat";
|
||||
|
||||
// Criação do veículo _rescueseat
|
||||
private _rescueseat = "BRAF_Rescue_Seat" createvehicle[0,0,0];
|
||||
|
||||
// Mudança de Orientação do _rescueseat
|
||||
_rescueseat setDir (getDir _heli);
|
||||
|
||||
// Mudança de posição do _rescueseat
|
||||
_rescueseat setPosASL (_heli ModelToWorld [0,0,-1.5]);
|
||||
|
||||
// Criação do Cabo
|
||||
private _hoistrope = ropeCreate [_heli, "rope_start", _rescueseat, "hoist_point", 0.25];
|
||||
|
||||
_heli setVariable ["rescueseat", _rescueseat];
|
||||
_heli setVariable ["hoistrope", _hoistrope];
|
||||
|
||||
_heli;
|
||||
6
braf_sar/Braf_Scripts/Delete_EFS.sqf
Normal file
6
braf_sar/Braf_Scripts/Delete_EFS.sqf
Normal file
@@ -0,0 +1,6 @@
|
||||
// Declaração de variáveis
|
||||
params ["_heli"];
|
||||
|
||||
// Desatachar e apagar EFS
|
||||
private _EFS = _heli getVariable ["efs", ObjNull];
|
||||
deleteVehicle _EFS;
|
||||
14
braf_sar/Braf_Scripts/EFS_Esquilo.sqf
Normal file
14
braf_sar/Braf_Scripts/EFS_Esquilo.sqf
Normal file
@@ -0,0 +1,14 @@
|
||||
// Declaração de variáveis:
|
||||
params ["_heli"];
|
||||
|
||||
// Criação e posicionamento do EFS:
|
||||
sleep 1;
|
||||
_heli vehicleChat "Deploying Emergency Floating System!";
|
||||
private _efs = "BRAF_Esquilo_EFS" createvehicle[0,0,0];
|
||||
_efs setDir (getDir _heli);
|
||||
_efs setPosASL (_heli ModelToWorld [0,0,0]);
|
||||
_efs attachTo [_heli, [0,0,0], "efs_spawn"];
|
||||
|
||||
_heli setVariable ["efs", _efs];
|
||||
|
||||
_heli;
|
||||
14
braf_sar/Braf_Scripts/EFS_Pantera.sqf
Normal file
14
braf_sar/Braf_Scripts/EFS_Pantera.sqf
Normal file
@@ -0,0 +1,14 @@
|
||||
// Declaração de variáveis:
|
||||
params ["_heli"];
|
||||
|
||||
// Criação e posicionamento do EFS:
|
||||
sleep 1;
|
||||
_heli vehicleChat "Deploying Emergency Floating System!";
|
||||
private _efs = "BRAF_Pantera_EFS" createvehicle[0,0,0];
|
||||
_efs setDir (getDir _heli);
|
||||
_efs setPosASL (_heli ModelToWorld [0,0,0]);
|
||||
_efs attachTo [_heli, [0,0,0], "efs_spawn"];
|
||||
|
||||
_heli setVariable ["efs", _efs];
|
||||
|
||||
_heli;
|
||||
10
braf_sar/Braf_Scripts/hoist_cut.sqf
Normal file
10
braf_sar/Braf_Scripts/hoist_cut.sqf
Normal file
@@ -0,0 +1,10 @@
|
||||
// Declaração de variáveis
|
||||
params ["_panther"];
|
||||
// Corte do Cabo
|
||||
private _rope = _panther getVariable ["hoistrope", ObjNull];
|
||||
if (isNull _rope) then {
|
||||
_panther vehicleChat "no rope!";
|
||||
};
|
||||
ropeCut [_rope, 0];
|
||||
ropeDestroy _rope;
|
||||
_panther setVariable ["hoistrope", nil];
|
||||
5
braf_sar/Braf_Scripts/hoist_down.sqf
Normal file
5
braf_sar/Braf_Scripts/hoist_down.sqf
Normal file
@@ -0,0 +1,5 @@
|
||||
// Declaração de variáveis:
|
||||
params ["_panther"];
|
||||
|
||||
// Extensão do Cabo
|
||||
ropeUnwind [_panther getVariable "hoistrope", 1.15, 25, false];
|
||||
5
braf_sar/Braf_Scripts/hoist_up.sqf
Normal file
5
braf_sar/Braf_Scripts/hoist_up.sqf
Normal file
@@ -0,0 +1,5 @@
|
||||
// Declaração de variáveis
|
||||
params ["_panther"];
|
||||
|
||||
// Recuperação do Cabo
|
||||
ropeUnwind [_panther getVariable "hoistrope", 1.15, 0.25, false];
|
||||
35
braf_sar/Braf_Scripts/recover_seat.sqf
Normal file
35
braf_sar/Braf_Scripts/recover_seat.sqf
Normal file
@@ -0,0 +1,35 @@
|
||||
// Declaração de variáveis
|
||||
params ["_heli","_player"];
|
||||
|
||||
// Récupération des victimes (thx to Tetet)
|
||||
private _basket = _heli getVariable ["rescueseat", ObjNull];
|
||||
private _rope = _heli getVariable ["hoistrope", ObjNull];
|
||||
private _length = ropeLength _rope;
|
||||
|
||||
if (isNull _rope) then {
|
||||
_heli vehicleChat "no rope!";
|
||||
};
|
||||
if (_length <= 3.1) then {
|
||||
{
|
||||
if (!isNil "_x") then {
|
||||
_x leaveVehicle _basket;
|
||||
_x action["GetOut", _basket];
|
||||
sleep 0.1;
|
||||
_basket lock 0;
|
||||
[_x, _heli] remoteExec ["moveInCargo", _x];
|
||||
_x assignAsCargo _heli;
|
||||
};
|
||||
} foreach crew _basket;
|
||||
ropeDestroy _rope;
|
||||
deleteVehicle _basket;
|
||||
_heli setVariable ["rescueseat", nil];
|
||||
_heli setVariable ["hoistrope", nil];
|
||||
_heli vehicleChat "Basket In Cabin";
|
||||
|
||||
} else {
|
||||
_heli vehicleChat "First Raise The Basket To Cabin Door";
|
||||
};
|
||||
|
||||
// Corte do Cabo
|
||||
//ropeCut [_heli getVariable "hoistrope", 0];
|
||||
//deleteVehicle (_heli getVariable "rescueseat");
|
||||
Reference in New Issue
Block a user