Merge pull request #10 from MGTDB/patch-1

Update Exile_RevivePlayer.sqf
This commit is contained in:
happydayz-enigma 2016-12-16 09:29:58 +11:00 committed by GitHub
commit 948098e0d2

View File

@ -14,7 +14,7 @@ private["_handguntype","_handgunammo","_player","_playerID","_playerPos",
"_itemqtys", "_goggles", "_headgear", "_vest", "_backpack", "_uniform", "_itemqtys", "_goggles", "_headgear", "_vest", "_backpack", "_uniform",
"_weapons", "_magazinesAmmo", "_itemsplayer", "_weaponsplayer", "_group", "_weapons", "_magazinesAmmo", "_itemsplayer", "_weaponsplayer", "_group",
"_primaryWeapon", "_secondaryWeapon", "_attachment", "_equipped", "_wMags", "_primaryWeapon", "_secondaryWeapon", "_attachment", "_equipped", "_wMags",
"_requestingPlayerGroup", "_droppedWeapons", "_bambiPlayer", "_ownerID", "_reviver","_playerUID"]; "_requestingPlayerGroup", "_droppedWeapons", "_bambiPlayer", "_ownerID", "_reviver","_playerUID","_locationTABS"];
_bambiPlayer = objNull; _bambiPlayer = objNull;
_requestingPlayer = _this select 0; _requestingPlayer = _this select 0;
@ -76,8 +76,8 @@ if (!local _requestingPlayer) then
if (_requestingPlayer getVariable["REVIVE", true]) then if (_requestingPlayer getVariable["REVIVE", true]) then
{ {
_location = _requestingPlayer modelToWorldVisual [0,0,0.2];
_location = getPosATL _requestingPlayer; _locationTABS = _requestingPlayer modelToWorldVisual [0,0,0];
_dir = getDir _requestingPlayer; _dir = getDir _requestingPlayer;
_requestingPlayerGroup = _requestingPlayer getVariable["GROUP", ""]; _requestingPlayerGroup = _requestingPlayer getVariable["GROUP", ""];
_goggles = goggles _requestingPlayer; _goggles = goggles _requestingPlayer;
@ -118,7 +118,7 @@ if (!local _requestingPlayer) then
_requestingPlayer call _clear; _requestingPlayer call _clear;
// If player has poptabs, drop poptab bag // If player has poptabs, drop poptab bag
if (_money > 0) then { 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]; _moneyHolder setVariable ["ExileMoney", _money, true];
}; };
@ -380,4 +380,4 @@ if (!local _requestingPlayer) then
}; };
}; };
}; };