feat(sar): unify hoist payload handling

This commit is contained in:
2026-06-24 17:45:06 -03:00
parent 4c70125409
commit f101781838
12 changed files with 211 additions and 149 deletions
@@ -1685,33 +1685,33 @@ class BRAF_Fennec_SAR_base: BRAF_Fennec_Base
radius=20;
priority=1;
onlyForPlayer=0;
condition="this animationphase 'Hoist_Hide' > 0.9 AND (player in crew this) AND this animationphase 'door_L_2' > 0.9";
statement="this animate ['Winch_Rot',1]; this execVM ""braf\braf_sar\Braf_Scripts\DRS.sqf""; this animate ['Hoist_Hide',-0.5]";
condition="this animationphase 'Hoist_Hide' > 0.9 AND (player in crew this) AND this animationphase 'door_L_2' > 0.9 AND !(""BRAF_Rescue_Seat"" in (this getVariable ['braf_hoist_spent_payloads', []]))";
statement="this animate ['Winch_Rot',1]; [this, ""deploy"", ""BRAF_Rescue_Seat""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Hoist_Hide',-0.5]";
};
class Hoist_Down: Deploy_Rescue_Seat
{
displayname="<t color='#ffaa00'> Extend Cable Hook </t>";
condition="this animationphase 'Hoist_Hide' < -0.4 AND this animationphase 'Hoist_Hide' > -0.6 AND (player in crew this) AND this animationphase 'door_L_2' > 0.9";
statement="this execVM ""braf\braf_sar\Braf_Scripts\hoist_down.sqf""; this animate ['Hoist_Hide',-1]; this say3d ""Winch""";
statement="[this, ""down""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Hoist_Hide',-1]; this say3d ""Winch""";
};
class Hoist_Up: Deploy_Rescue_Seat
{
displayname="<t color='#ffaa00'> Recover Hoist Hook </t>";
condition="this animationphase 'Hoist_Hide' < -0.9 AND (player in crew this) AND this animationphase 'door_L_2' > 0.9";
statement="this execVM ""braf\braf_sar\Braf_Scripts\hoist_up.sqf""; this animate ['Hoist_Hide',-0.5]; this say3d ""Winch""";
statement="[this, ""up""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Hoist_Hide',-0.5]; this say3d ""Winch""";
};
class Recover_Rescue_Seat: Deploy_Rescue_Seat
{
displayname="<t color='#ffaa00'> Retrieve Rescue Seat </t>";
displayname="<t color='#ffaa00'> Retrieve Rescue Payload </t>";
condition="(player in crew this) AND this animationphase 'door_L_2' > 0.9 AND this animationphase 'Hoist_Hide' < -0.4 AND this animationphase 'Hoist_Hide' > -0.6";
statement="this execVM ""braf\braf_sar\Braf_Scripts\recover_seat.sqf""; this animate ['Winch_Rot',0]; this animate ['Hoist_Hide',1]";
statement="[this, ""recover""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Winch_Rot',0]; this animate ['Hoist_Hide',1]";
};
class Hoist_Cut: Deploy_Rescue_Seat
{
displayname="<t color='#b31d00'> Cut Hoist Hook Cable </t>";
condition="(player in crew this) AND this animationphase 'Hoist_Hide' < 0 AND this animationphase 'door_L_2' > 0.9";
statement="this execVM ""braf\braf_sar\Braf_Scripts\hoist_cut.sqf""; this animate ['Winch_Rot',0]; this animate ['Hoist_Hide',1]";
statement="[this, ""cut""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Winch_Rot',0]; this animate ['Hoist_Hide',1]";
};
class NVG_ON
{