From 7c4ce49f9a60cf35c460589d4ddcedf554108939 Mon Sep 17 00:00:00 2001 From: MGT Date: Thu, 15 Dec 2016 21:22:00 +0000 Subject: [PATCH] Update Exile_RevivePlayer.sqf Using _location = _requestingPlayer modelToWorldVisual [0,0,0.2]; to get requesting player feet location and adding 0.2m to the height, as the current method enables glitching. Dead player on the roof of a base, gets revived and falls through the floor Also added a separate location for the poptab bag without the additional height --- .../compile/Enigma/Exile_RevivePlayer.sqf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf b/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf index 19c9105..b4adb5e 100644 --- a/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf +++ b/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf @@ -14,7 +14,7 @@ private["_handguntype","_handgunammo","_player","_playerID","_playerPos", "_itemqtys", "_goggles", "_headgear", "_vest", "_backpack", "_uniform", "_weapons", "_magazinesAmmo", "_itemsplayer", "_weaponsplayer", "_group", "_primaryWeapon", "_secondaryWeapon", "_attachment", "_equipped", "_wMags", - "_requestingPlayerGroup", "_droppedWeapons", "_bambiPlayer", "_ownerID", "_reviver","_playerUID"]; + "_requestingPlayerGroup", "_droppedWeapons", "_bambiPlayer", "_ownerID", "_reviver","_playerUID","_locationTABS"]; _bambiPlayer = objNull; _requestingPlayer = _this select 0; @@ -76,8 +76,8 @@ if (!local _requestingPlayer) then if (_requestingPlayer getVariable["REVIVE", true]) then { - - _location = getPosATL _requestingPlayer; + _location = _requestingPlayer modelToWorldVisual [0,0,0.2]; + _locationTABS = _requestingPlayer modelToWorldVisual [0,0,0]; _dir = getDir _requestingPlayer; _requestingPlayerGroup = _requestingPlayer getVariable["GROUP", ""]; _goggles = goggles _requestingPlayer; @@ -118,7 +118,7 @@ if (!local _requestingPlayer) then _requestingPlayer call _clear; // If player has poptabs, drop poptab bag if (_money > 0) then { - _moneyHolder = createVehicle ["Exile_PopTabs",_location,[], 0, "can_collide"]; + _moneyHolder = createVehicle ["Exile_PopTabs",_locationTABS,[], 0, "CAN_COLLIDE"]; _moneyHolder setVariable ["ExileMoney", _money, true]; }; @@ -380,4 +380,4 @@ if (!local _requestingPlayer) then }; }; -}; \ No newline at end of file +};