This commit is contained in:
2026-07-12 17:45:29 -03:00
parent 9cd0cb33fd
commit 69974856ed
24 changed files with 375 additions and 23 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+8 -6
View File
@@ -1,8 +1,10 @@
// Declaração de variáveis
params ["_heli"];
// Desatachar e apagar EFS
private _EFS = _heli getVariable ["efs", objNull];
if (!isNull _EFS) then {
deleteVehicle _EFS;
};
private _efs = _heli getVariable ["efs", objNull];
if (!isNull _efs) then {
deleteVehicle _efs;
};
_heli animate ["EFS_Hide", 0];
_heli setVariable ["efs", objNull, true];
_heli setVariable ["braf_efs_deployed", false, true];
+62 -4
View File
@@ -1,14 +1,72 @@
// Declaração de variáveis:
params ["_heli"];
// Criação e posicionamento do EFS:
private _currentEfs = _heli getVariable ["efs", objNull];
if (!isNull _currentEfs) exitWith {
_heli vehicleChat "Emergency Floating System already deployed.";
};
sleep 1;
_heli vehicleChat "Deploying Emergency Floating System!";
_heli say3D "EFS";
_heli animate ["EFS_Cover_Hide", 1];
_heli animate ["EFS_Hide", 1];
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 setVariable ["efs", _efs, true];
_heli setVariable ["braf_efs_deployed", true, true];
_heli;
if ((_heli getVariable ["braf_efs_engine_lock_eh", -1]) < 0) then {
private _engineLockEh = _heli addEventHandler ["Engine", {
params ["_vehicle", "_engineState"];
if (_engineState && {_vehicle getVariable ["braf_efs_water_landed", false]}) then {
_vehicle engineOn false;
_vehicle vehicleChat "Engine restart disabled after EFS water landing.";
};
}];
_heli setVariable ["braf_efs_engine_lock_eh", _engineLockEh];
};
if (!(_heli getVariable ["braf_efs_water_monitor", false])) then {
_heli setVariable ["braf_efs_water_monitor", true, true];
[_heli] spawn {
params ["_heli"];
private _waterContact = false;
while {
!isNull _heli
&& {_heli getVariable ["braf_efs_deployed", false]}
&& {!(_heli getVariable ["braf_efs_water_landed", false])}
&& {!_waterContact}
} do {
private _efsProbe = _heli getVariable ["efs", objNull];
private _waterProbeASL = if (isNull _efsProbe) then {getPosASL _heli} else {getPosASL _efsProbe};
_waterContact = (surfaceIsWater (getPosWorld _heli))
&& {(isTouchingGround _heli) || {(_waterProbeASL select 2) < 0.75}};
sleep 0.25;
};
_heli setVariable ["braf_efs_water_monitor", false, true];
if (isNull _heli || {!_waterContact}) exitWith {};
_heli setVariable ["braf_efs_water_landed", true, true];
_heli engineOn false;
_heli vehicleChat "EFS water landing complete. Engine restart disabled.";
while {!isNull _heli && {_heli getVariable ["braf_efs_water_landed", false]}} do {
if (isEngineOn _heli) then {
_heli engineOn false;
};
sleep 0.5;
};
};
};
+2 -1
View File
@@ -17,7 +17,8 @@ class CfgPatches
{
"BRAF_Rescue_Seat",
"BRAF_Rescue_Basket",
"BRAF_Rescue_Stretcher"
"BRAF_Rescue_Stretcher",
"BRAF_Esquilo_EFS"
};
weapons[] = {};
};
+51
View File
@@ -0,0 +1,51 @@
ambient[]={0.75,0.75,0.75,1.0};
diffuse[]={0.75,0.75,0.75,1.0};
forcedDiffuse[]={0.0,0.0,0.0,1.0};
emmisive[]={0.0,0.0,0.0,1.0};
specular[]={0.15,0.15,0.15,1.0};
specularPower=25;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
texture="braf\braf_sar\data\BRAF_rescue_nohq.paa";
uvSource="tex";
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)";
uvSource="tex";
class uvTransform
{
aside[]={10,0,0};
up[]={0,10,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
uvSource="tex";
};
class Stage4
{
texture="braf\braf_sar\data\BRAF_rescue_as.paa";
uvSource="tex";
};
class Stage5
{
texture="braf\braf_sar\data\BRAF_rescue_smdi.paa";
uvSource="tex";
};
class Stage6
{
texture="#(ai,64,64,1)fresnel(4.7,1.2)";
uvSource="tex";
};
class Stage7
{
texture="a3\data_f\env_land_co.paa";
useWorldEnvMap="true";
uvSource="tex";
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+92
View File
@@ -0,0 +1,92 @@
ambient[]={1,1,1,1};
diffuse[]={0.2,0.2,0.2,1};
forcedDiffuse[]={0,0,0,1};
emmisive[]={0,0,0,0};
specular[]={0.89999998,0.89999998,0.89999998,1};
specularPower=100;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
texture="braf\braf_sar\data\BRAF_rescue_nohq.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage2
{
texture="#(argb,8,8,3)color(0.5,0.5,0.5,0.5,DT)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage3
{
texture="#(argb,8,8,3)color(0,0,0,0,MC)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage4
{
texture="braf\braf_sar\data\BRAF_rescue_as.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage5
{
texture="braf\braf_sar\data\BRAF_rescue_smdi.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage6
{
texture="#(ai,64,64,1)fresnel(4.6,6.5)";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,10,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
class Stage7
{
texture="a3\data_f\env_land_sea_co.paa";
uvSource="tex";
class uvTransform
{
aside[]={1,0,0};
up[]={0,1,0};
dir[]={0,0,0};
pos[]={0,0,0};
};
};
+32
View File
@@ -52,4 +52,36 @@ class CfgModels
};
};
};
class BRAF_Rescue_Stretcher
{
htMin=60;
htMax=1800;
afMax=200;
mfMax=100;
mFact=0;
tBody=0;
skeletonName="SAR_SEAT_Skeleton";
sectionsInherit="";
sections[]=
{
};
class Animations
{};
};
class BRAF_Rescue_Basket
{
htMin=60;
htMax=1800;
afMax=200;
mfMax=100;
mFact=0;
tBody=0;
skeletonName="SAR_SEAT_Skeleton";
sectionsInherit="";
sections[]=
{
};
class Animations
{};
};
};