This commit is the equivalent of a atomic bomb

This commit is contained in:
2026-02-15 08:08:56 -03:00
commit e4ac56b038
6934 changed files with 916278 additions and 0 deletions

BIN
braf_sar/BRAF_Esquilo_EFS.p3d LFS Normal file

Binary file not shown.

BIN
braf_sar/BRAF_Pantera_EFS.p3d LFS Normal file

Binary file not shown.

BIN
braf_sar/BRAF_Rescue_Seat.p3d LFS Normal file

Binary file not shown.

View 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;

View File

@@ -0,0 +1,6 @@
// Declaração de variáveis
params ["_heli"];
// Desatachar e apagar EFS
private _EFS = _heli getVariable ["efs", ObjNull];
deleteVehicle _EFS;

View 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;

View 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;

View 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];

View File

@@ -0,0 +1,5 @@
// Declaração de variáveis:
params ["_panther"];
// Extensão do Cabo
ropeUnwind [_panther getVariable "hoistrope", 1.15, 25, false];

View 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];

View 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");

217
braf_sar/SAR_Base.hpp Normal file
View File

@@ -0,0 +1,217 @@
class BRAF_Rescue_Seat: Items_base_F
{
author="BRAF Team";
displayName="Rescue Seat";
_generalMacro="BRAF_Rescue_Seat";
model="braf\braf_sar\BRAF_rescue_seat.p3d";
editorSubcategory="EdSubcat_Storage";
scope=1;
side=0;
scopeCurator=0;
scopeArsenal=0;
cost=500;
vehicleClass="Container";
simulation="shipX";
transportSoldier=2;
preciseGetInOut=0;
cargoPreciseGetInOut[]={0};
cargoProxyIndexes[]={1,2};
getInProxyOrder[]={1,2};
canFloat=1;
leftDustEffect="";
rightDustEffect="";
leftDustEffects[]={};
rightDustEffects[]={};
leftWaterEffect="";
rightWaterEffect="";
selectionBackLights="";
selectionBrakeLights="";
selectionClan="";
selectionDashboard="";
selectionFireAnim="";
selectionLeftOffset="";
selectionRightOffset="";
tracksSpeed=0;
damperDamping=0;
damperForce=0;
damperSize=0;
alphaTracks=0;
turnCoef=1;
terrainCoef=1;
gearBox[]={-1,0,1,2,3,4};
scudModel="";
armor=75;
armorStructural=1;
damageResistance=0.004;
damageEffect="";
crewCrashProtection=1;
crewVulnerable=1;
leftEngineEffect="";
rightEngineEffect="";
driverLeftHandAnimName="";
driverLeftLegAnimName="";
driverRightHandAnimName="";
driverRightLegAnimName="";
memoryPointLMissile="";
memoryPointRMissile="";
memoryPointMissile="";
memoryPointMissileDir="";
memoryPointLRocket="";
memoryPointRRocket="";
memoryPointsGetInDriver="";
memoryPointsGetInDriverDir="";
memoryPointDriverOptics[]={};
memoryPointsGetInCoDriver="";
memoryPointsGetInCoDriverDir="";
memoryPointsLeftEngineEffect="";
memoryPointsLeftWaterEffect="";
memoryPointsRightEngineEffect="";
memoryPointsRightWaterEffect="";
memoryPointTrackFLL="";
memoryPointTrackFLR="";
memoryPointTrackBLL="";
memoryPointTrackBLR="";
memoryPointTrackFRL="";
memoryPointTrackFRR="";
memoryPointTrackBRL="";
memoryPointTrackBRR="";
driverDoor="";
cargoDoors[]={};
pointPilot="";
pointCommander="";
class SquadTitles
{
color[]={0,0,0,0};
name="";
};
memoryPointsGetInCargo="seat_pos";
getInRadius=5;
memoryPointsGetInCargoDir="seat_dir";
memoryPointsGetInCargoPrecise[]={"seat_pos"};
cargoAction[]={"passenger_apc_narrow_generic03","passenger_apc_narrow_generic03"};
class AnimationSources
{
class seat1
{
source="user";
animPeriod=1;
initPhase=0;
};
class seat2
{
source="user";
animPeriod=1;
initPhase=0;
};
};
emptySound[]={"",0,1};
soundGeneralCollision1[]={"emptySound",0};
soundGeneralCollision2[]={"emptySound",0};
soundGeneralCollision3[]={"emptySound",0};
soundCrashes[]={"emptySound",0};
soundLandCrashes[]={"emptySound",0};
soundBuildingCrash[]={"emptySound",0};
soundArmorCrash[]={"emptySound",0};
soundWoodCrash[]={"emptySound",0};
soundBushCollision1[]={"emptySound",0};
soundBushCollision2[]={"emptySound",0};
soundBushCollision3[]={"emptySound",0};
soundBushCrash[]={"emptySound",0};
soundWaterCollision1[]={"emptySound",0};
soundWaterCollision2[]={"emptySound",0};
soundWaterCrashes[]={"emptySound",0};
soundDammage[]={"emptySound",0};
soundGetIn[]={"emptySound",0};
soundGetOut[]={"emptySound",0};
soundEngineOnInt[]={"emptySound",0};
soundEngineOnExt[]={"emptySound",0};
soundEngineOffInt[]={"emptySound",0};
soundEngineOffExt[]={"emptySound",0};
soundLocked[]={"emptySound",0};
soundIncommingMissile[]={"emptySound",0};
class TransportWeapons{};
class TransportMagazines{};
class Exhausts{};
class Reflectors{};
soundGear[]={"",0.000177828,1};
class Sounds{};
class MFD{};
class RenderTargets{};
class UserActions
{
class Seat_1_Open
{
displayname="<t color='#007209'> Open Seat 01 </t>";
position="seat_01_pos";
showWindow=1;
radius=2;
priority=1;
onlyForPlayer=0;
condition="this animationphase 'seat_01' < 0.5";
statement="this animate ['seat_01',1]";
};
class Seat_2_Open: Seat_1_Open
{
displayname="<t color='#007209'> Open Seat 02 </t>";
position="seat_02_pos";
condition="this animationphase 'seat_02' < 0.5";
statement="this animate ['seat_02',1]";
};
class Seat_1_Close: Seat_1_Open
{
displayname="<t color='#9b0000'> Close Seat 01 </t>";
position="seat_01_pos";
condition="this animationphase 'seat_01' > 0.5";
statement="this animate ['seat_01',0]";
};
class Seat_2_Close: Seat_1_Open
{
displayname="<t color='#9b0000'> Close Seat 02 </t>";
position="seat_02_pos";
condition="this animationphase 'seat_02' > 0.5";
statement="this animate ['seat_02',0]";
};
};
};
class BRAF_Esquilo_EFS: BRAF_Rescue_Seat
{
author="BRAF Team";
displayName="Esquilo EFS";
_generalMacro="BRAF_Esquilo_EFS";
model="braf\braf_sar\BRAF_Esquilo_EFS.p3d";
editorSubcategory="EdSubcat_Storage";
scope=1;
side=0;
scopeCurator=0;
scopeArsenal=0;
cost=500;
vehicleClass="Container";
simulation="shipX";
memoryPointsGetInCargo="";
memoryPointsGetInCargoDir="";
memoryPointsGetInCargoPrecise[]={""};
cargoAction[]={""};
class UserActions
{};
};
class BRAF_Pantera_EFS: BRAF_Rescue_Seat
{
author="BRAF Team";
displayName="Pantera EFS";
_generalMacro="BRAF_Pantera_EFS";
model="braf\braf_sar\BRAF_Pantera_EFS.p3d";
editorSubcategory="EdSubcat_Storage";
scope=1;
side=0;
scopeCurator=0;
scopeArsenal=0;
cost=500;
vehicleClass="Container";
simulation="shipX";
memoryPointsGetInCargo="";
memoryPointsGetInCargoDir="";
memoryPointsGetInCargoPrecise[]={""};
cargoAction[]={""};
class UserActions
{};
};

26
braf_sar/config.cpp Normal file
View File

@@ -0,0 +1,26 @@
class CfgPatches
{
class Braf_SAR
{
author = "BRAF Team";
addonRootClass = "A3_Air_F";
requiredAddons[] =
{
"A3_Air_F",
"A3_Data_F",
"A3_Armor_F_Beta_APC_Tracked_01",
"A3_Weapons_F",
"braf_main"
};
requiredVersion = 0.1;
units[] =
{
"BRAF_Rescue_Seat"};
weapons[] = {};
};
};
class CfgVehicles
{
class Items_base_F;
#include "SAR_Base.hpp"
};

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_seat_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_seat_as.paa";
uvSource="tex";
};
class Stage5
{
texture="braf\braf_sar\data\BRAF_seat_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";
};

BIN
braf_sar/data/BRAF_seat_as.paa LFS Normal file

Binary file not shown.

BIN
braf_sar/data/BRAF_seat_co.paa LFS Normal file

Binary file not shown.

BIN
braf_sar/data/BRAF_seat_nohq.paa LFS Normal file

Binary file not shown.

BIN
braf_sar/data/BRAF_seat_smdi.paa LFS Normal file

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.

View File

@@ -0,0 +1,55 @@
class StageTI
{
texture="braf\braf_sar\data\Esquilo_EFS\camo3_ti_ca.paa";
};
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\Esquilo_EFS\camo3_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\Esquilo_EFS\camo3_as.paa";
uvSource="tex";
};
class Stage5
{
texture="braf\braf_sar\data\Esquilo_EFS\camo3_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";
};

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_seat_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_seat_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_seat_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};
};
};

55
braf_sar/model.cfg Normal file
View File

@@ -0,0 +1,55 @@
class CfgSkeletons
{
class SAR_SEAT_Skeleton
{
isDiscrete=1;
skeletonInherit="";
skeletonBones[]=
{
"seat_01","",
"seat_02",""
};
};
};
class CfgModels
{
class BRAF_Rescue_Seat
{
htMin=60;
htMax=1800;
afMax=200;
mfMax=100;
mFact=0;
tBody=0;
skeletonName="SAR_SEAT_Skeleton";
sectionsInherit="";
sections[]=
{
};
class Animations
{
class seat_01
{
type="rotation";
source="seat1";
selection="seat_01";
sourceAddress="clamp";
axis="seat_axis";
minPhase=0;
maxPhase=1;
minValue=0;
maxValue=1;
memory=0;
angle0="rad 90";
angle1="rad 0";
};
class seat_02: seat_01
{
selection="seat_02";
source="seat2";
angle0="rad -90";
angle1="rad 0";
};
};
};
};