mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Rope break fix
This commit is contained in:
parent
abf225a68c
commit
6d36f5dcd3
@ -16,3 +16,15 @@ _this addMPEventHandler["MPKilled", { _this call EPOCH_server_save_killedVehicle
|
|||||||
_this addMPEventHandler["MPHit", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }];
|
_this addMPEventHandler["MPHit", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }];
|
||||||
_this addEventHandler["Local", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }];
|
_this addEventHandler["Local", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }];
|
||||||
_this addEventHandler["GetOut", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }];
|
_this addEventHandler["GetOut", { EPOCH_saveVehQueue pushBackUnique (_this select 0) }];
|
||||||
|
|
||||||
|
// fix to prevent rope break
|
||||||
|
if (_this iskindof "AIR") then {
|
||||||
|
_this addEventHandler ["RopeAttach", {
|
||||||
|
params ["_object1", "_rope", "_object2"];
|
||||||
|
if (isnull (driver _object2)) then {
|
||||||
|
if !(owner _object1 == owner _object2) then {
|
||||||
|
_object2 setowner (owner _object1);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user