mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Prevent fastroping teleport serverside (#5629)
This commit is contained in:
@ -23,6 +23,12 @@ _rope params ["_attachmentPoint", "_ropeTop", "_ropeBottom", "_dummy", "_hook"];
|
|||||||
//Wait until the unit is actually outside of the helicopter
|
//Wait until the unit is actually outside of the helicopter
|
||||||
if (vehicle _unit != _unit) exitWith {};
|
if (vehicle _unit != _unit) exitWith {};
|
||||||
|
|
||||||
|
//Prevent teleport if hook has been deleted due to rope cut
|
||||||
|
if (isNull _hook) exitWith {
|
||||||
|
detach _unit; //Does not matter if unit was not attached yet
|
||||||
|
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
|
||||||
|
};
|
||||||
|
|
||||||
//Start fast roping
|
//Start fast roping
|
||||||
if (getMass _dummy != 80) exitWith {
|
if (getMass _dummy != 80) exitWith {
|
||||||
//Fix for twitchyness
|
//Fix for twitchyness
|
||||||
|
Reference in New Issue
Block a user