Jump to content

[Tutorial] Clean Vehicle Flip (Right click Version)


Recommended Posts

Alot of my players have been asking for Flip vehicle options and i always hated the action menu for it.

Here's a good alternative!

Clean Vehicle Flip (Right click Version)

"I am asuming you already have some scripts set up using the right click option. If not follow this link: http://epochservers.com/viewtopic.php?f=14&t=13"
or Alternatively: 


Firstly download: https://www.dropbox.com/s/jwo7mup5chfhond/Vehicle%20Flip.rar?dl=0

and extract it to the root of your mission file / .pbo

Then navigate to your file: extra_rc.hpp, which for me is located:

Mission Pbo > Custom

Once you have opened that file, in between these lines:

class ExtraRc {

};

add this:

	class ItemETool {
        class usefilp {
            text = "Flip Vehicle";
            script = "execVM 'custom\flip\flipvehicle.sqf'";
        };
    };

So it should look like this:

class ExtraRc {
	class ItemETool {
        class usefilp {
            text = "Flip Vehicle";
            script = "execVM 'custom\flip\flipvehicle.sqf'";
        };
    };
};

once you've done this save, repack and upload!

Configuration


if you want change the Item you have to right click then, change this value in your extra_rc.hpp file:
class ItemETool

to:

class ItemToolbox

^ (Example)



Images


oPHh_a.gif


 


new_zps215f8344.jpg

Link to comment
Share on other sites

would it not be better (and easier) to instead of add another flip script but to instead just change the amount of people needed to flip?

 

In fn_selfActions.sqf look for

		// CURSOR TARGET VEHICLE
		if(_isVehicle) then {
			
			//flip vehicle small vehicles by your self && all other vehicles with help nearby
			if (!(canmove _cursorTarget) && (player distance _cursorTarget >= 2) && (count (crew _cursorTarget))== 0 && ((vectorUp _cursorTarget) select 2) < 0.5) then {
				_playersNear = {isPlayer _x} count (player nearEntities ["CAManBase", 6]);
				if(_isVehicletype || (_playersNear >= 2)) then {
					_player_flipveh = true;	
				};
			};

change the 2 after "playersNear >=" to a 1 should mean 1 person can flip all vehicles

Link to comment
Share on other sites

would it not be better (and easier) to instead of add another flip script but to instead just change the amount of people needed to flip?

 

In fn_selfActions.sqf look for

		// CURSOR TARGET VEHICLE
		if(_isVehicle) then {
			
			//flip vehicle small vehicles by your self && all other vehicles with help nearby
			if (!(canmove _cursorTarget) && (player distance _cursorTarget >= 2) && (count (crew _cursorTarget))== 0 && ((vectorUp _cursorTarget) select 2) < 0.5) then {
				_playersNear = {isPlayer _x} count (player nearEntities ["CAManBase", 6]);
				if(_isVehicletype || (_playersNear >= 2)) then {
					_player_flipveh = true;	
				};
			};

change the 2 after "playersNear >=" to a 1 should mean 1 person can flip all vehicles

I didn't think of that. But I've done it in my server now and it seems to work good. So yeah, i guess its just preference.

 

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...