Jump to content
Sign in to follow this  
El' Rabito

Vehicle flip tweaks/exploit fix

Recommended Posts

Description: You can now flip vehicles even if the engine is still running (as last driver) and the vehicle flips a bit higher to avoid clipping into the ground. The Safezone Wastedump exploit should be fixed aswell with these changes.
 

################################################################################
Installation: Make two CfgExileCustomCode overrides for the following files with the code below.
################################################################################
 

ExileClient_object_vehicle_interaction_show.sqf

/**
 * ExileClient_object_vehicle_interaction_show
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
(alive ExileClientInteractionObject) && !(locked ExileClientInteractionObject isEqualTo 2)

 

ExileClient_object_vehicle_flip.sqf

/**
 * ExileClient_object_vehicle_flip
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
private["_vehicle","_pos"];
_vehicle = _this select 0;
if !(local _vehicle) exitWith {["ErrorTitleOnly", ["Only the last driver can flip!"]] call ExileClient_gui_toaster_addTemplateToast; false;};
if ((locked _vehicle) isEqualTo 2) exitWith {false};
if (local _vehicle) then
{
    _pos = getPosATL _vehicle;
    _pos set [2,(_pos select 2) + 2];
    _vehicle setPosATL _pos;
    _vehicle setVectorUp [0, 0, 1];

}
else
{
    ["flipVehRequest",[netId _vehicle]] call ExileClient_system_network_send;
};
true 

 

 

  • Like 4

Share this post


Link to post
Share on other sites
Sign in to follow this  

×