feat(sar): unify hoist payload handling
This commit is contained in:
@@ -1234,32 +1234,44 @@ class BRAF_Caracal_2: BRAF_Caracal_Base
|
||||
radius=20;
|
||||
priority=1;
|
||||
onlyForPlayer=0;
|
||||
condition="this animationphase 'Hoist_Hide' > 0.9 AND (player in crew this) AND this animationphase 'Door_R_1' > 0.9";
|
||||
statement="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_R_1' > 0.9 AND !(""BRAF_Rescue_Seat"" in (this getVariable ['braf_hoist_spent_payloads', []]))";
|
||||
statement="[this, ""deploy"", ""BRAF_Rescue_Seat""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Hoist_Hide',-0.5]";
|
||||
};
|
||||
class Deploy_Rescue_Basket: Deploy_Rescue_Seat
|
||||
{
|
||||
displayname="<t color='#ffaa00'> Deploy Rescue Basket </t>";
|
||||
condition="this animationphase 'Hoist_Hide' > 0.9 AND (player in crew this) AND this animationphase 'Door_R_1' > 0.9 AND !(""BRAF_Rescue_Basket"" in (this getVariable ['braf_hoist_spent_payloads', []]))";
|
||||
statement="[this, ""deploy"", ""BRAF_Rescue_Basket""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Hoist_Hide',-0.5]";
|
||||
};
|
||||
class Deploy_Rescue_Stretcher: Deploy_Rescue_Seat
|
||||
{
|
||||
displayname="<t color='#ffaa00'> Deploy Rescue Stretcher </t>";
|
||||
condition="this animationphase 'Hoist_Hide' > 0.9 AND (player in crew this) AND this animationphase 'Door_R_1' > 0.9 AND !(""BRAF_Rescue_Stretcher"" in (this getVariable ['braf_hoist_spent_payloads', []]))";
|
||||
statement="[this, ""deploy"", ""BRAF_Rescue_Stretcher""] 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_R_1' > 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 Cable Hook </t>";
|
||||
condition="this animationphase 'Hoist_Hide' < -0.9 AND (player in crew this) AND this animationphase 'Door_R_1' > 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_R_1' > 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 ['Hoist_Hide',1]";
|
||||
statement="[this, ""recover""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; 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 'Door_R_1' > 0.9 AND this animationphase 'Hoist_Hide' < 0";
|
||||
statement="this execVM ""braf\braf_sar\BRAF_Scripts\hoist_cut.sqf""; this animate ['Hoist_Hide',1]";
|
||||
statement="[this, ""cut""] execVM ""braf\braf_sar\Braf_Scripts\hoist_controller.sqf""; this animate ['Hoist_Hide',1]";
|
||||
};
|
||||
class Open_Door_Left
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user