Jump to content

[Alpha Release] MV22-Suv-UH1Y Fold up's


(AOW)Recon

Recommended Posts

Animated Vehicles

 

You Can Put This In Any Arma Sever

 

You Need "compiles.sqf" and "variables.sqf"

 

Here's My Tut on how to make them.

http://epochmod.com/forum/index.php?/topic/32560-how-to-make-a-custom-folder-with-the-needs/?p=209213 

Put this in your "custom\compiles.sqf"

in the "if (!isDedicated) then {"

mv22_pack = compile preprocessFileLineNumbers "\ca\air2\mv22\scripts\pack.sqf";
UH1Y_pack = compile preprocessFileLineNumbers "\ca\air2\UH1Y\scripts\fold.sqf";
  • Then in your "variables.sqf" find this:
s_player_lockUnlock_crtl = -1;
  • After that put:
mv22_fold = -1;
mv22_unfold = -1;
mv22_open = -1;
mv22_close = -1;
suv_close = -1;
suv_open = -1;
UH1Y_fold = -1;
UH1Y_unfold = -1;

  • In "fn_selfActions.sqf" find this:
} else {
   player removeAction s_player_grabflare;
   player removeAction s_player_removeflare;
   s_player_grabflare = -1;
   s_player_removeflare = -1;
};
  • After that then put: 
if (_inVehicle && {_vehicle isKindOf "MV22","MV22_DZ"}) then {
   if (isEngineOn _vehicle) then {[_vehicle,0] call mv22_pack;};
   if (mv22_fold < 0) then {
	 themv22 = _vehicle;
	 if !(isEngineOn themv22) then {
	   mv22_fold = themv22 addAction ["Fold","scripts\animate\mv22_fold.sqf","",5,false,true];
	   mv22_unfold = themv22 addAction ["UnFold","scripts\animate\mv22_unfold.sqf","",5,false,true];
	   mv22_open = themv22 addAction ["Open Ramp","scripts\animate\mv22_open.sqf","",5,false,true];
	   mv22_close = themv22 addAction ["Close Ramp","scripts\animate\mv22_close.sqf","",5,false,true];
	 };
   };
   if (isEngineOn themv22) then {
	 themv22 removeAction mv22_fold;
	 mv22_fold = -1;
	 themv22 removeAction mv22_unfold;
	 mv22_unfold = -1;
	 themv22 removeAction mv22_open;
	 mv22_open = -1;
	 themv22 removeAction mv22_close;
	 mv22_close = -1;
   };
} else {
	if (!isNil "themv22") then {
	   themv22 removeAction mv22_fold;
	   mv22_fold = -1;
	   themv22 removeAction mv22_unfold;
	   mv22_unfold = -1;
	   themv22 removeAction mv22_open;
	   mv22_open = -1;
	   themv22 removeAction mv22_close;
	   mv22_close = -1;
   };
};

if (_inVehicle && {_vehicle isKindOf "ArmoredSUV_Base_PMC"}) then {
   if ((_vehicle animationPhase "HideGun_01") == 1) then {
	 _unit = _vehicle turretUnit [0];
	 if (!(isNull _unit)) then {
	   _unit action ["moveToCargo",_vehicle,2];
	   titleText ["\n\nYou must open the hatch first.","PLAIN DOWN"];titleFadeOut 4;
	 };
   };
   if (suv_close < 0) then {
	 thesuv = _vehicle;
	 suv_close = thesuv addAction ["Close Hatch","scripts\animate\suv_close.sqf","",5,false,true];
	 suv_open = thesuv addAction ["Open Hatch","scripts\animate\suv_open.sqf","",5,false,true];
   };
} else {
	if (!isNil "thesuv") then {
		thesuv removeAction suv_close;
		suv_close = -1;
		thesuv removeAction suv_open;
		suv_open = -1;
	};
};

if (_inVehicle && {_vehicle isKindOf "UH1Y","UH1Y_DZ","UH1Y_DZE"}) then {
   if (isEngineOn _vehicle) then {[_vehicle,0] call UH1Y_pack;};
   if (UH1Y_fold < 0) then {
	 theuh1y = _vehicle;
	 if !(isEngineOn theuh1y) then {
	   UH1Y_fold = theuh1y addAction ["Fold","Script\animate\UH1Y_fold.sqf","",5,false,true];
	   UH1Y_unfold = theuh1y addAction ["UnFold","Script\animate\UH1Y_unfold.sqf","",5,false,true];
	 };
   };
   if (isEngineOn theuh1y) then {
	 theuh1y removeAction UH1Y_fold;
	 UH1Y_fold = -1;
	 theuh1y removeAction UH1Y_unfold;
	 UH1Y_unfold = -1;
   };
} else {
	if (!isNil "theuh1y") then {
	   theuh1y removeAction UH1Y_fold;
	   UH1Y_fold = -1;
	   theuh1y removeAction UH1Y_unfold;
	   UH1Y_unfold = -1;
   };
};
  • Put the Foldable's in you scripts folder

 

If you have antihack Like (InfaStar)

 

  • Find:
_dayzActions =
  • After that put:
mv22_fold,mv22_unfold,mv22_open,mv22_close,suv_close,suv_open,UH1Y_fold,UH1Y_unfold

well do the AH1z Later :) maybe

 

Here Are The Were You Can Get The File's:

 

https://github.com/AOWGaming/Foldable

 

 

Credits:

http://opendayz.net/threads/release-animated-vehicles.20108/

ebaydayz

Layout of code and also the MV22 and SUV

 

 

Known Issue's

 

Take's Away Upgrade Menu For building

Link to comment
Share on other sites

Not meaning to look a gift horse in the mouth mate, but is there anyway to make their current state (folded/unfolded) persist through server restart?

hmm i dont think soo but you might be able to but your going to just alot of changing the way they spawn in

 

ill look in to it if i have time

Link to comment
Share on other sites

This is what i use,  has the pack-able SUV gun, MV-22 Fold-able blades and rotors, rear and side door+ guns/gunner positions for them, UH1Y fold-able blades, Cessna rainbow smoke, Tower lighting, and C-130 side door + rear ramp.

 

I wish i knew who made the script so i could give credit but i found these a couple years a go in  a PBO that someone released.  If it was you Ebaydayz then Credit goes to Ebaydayz.  

 

The only known issue i have seen is the rear gun you need to move seats before getting out or it will glitch you into the floor of the MV-22.  Im sure someone can/has a fix.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...