mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +03:00
Update scripts.txt
- Updated exceptions, added new filters and removed some which were not useful - Removed exceptions for testkit because it is not part of the mod - Added notes to clarify for now, will move this info to BI wiki later - Removed two unused files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private ["_canDo","_iPos","_inVehicle","_item","_onLadder","_pistol","_primary","_removed"];
|
||||
private ["_canDo","_inVehicle","_onLadder","_pistol","_primary","_removed"];
|
||||
|
||||
_inVehicle = (vehicle player != player);
|
||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||
@@ -17,27 +17,24 @@ if (_canDo && !DZE_Surrender && !(player isKindOf "PZombie_VB")) then {
|
||||
|
||||
if (_primary != "" or _pistol != "" or dayz_onBack != "") then {
|
||||
player playActionNow "PutDown";
|
||||
_iPos = getPosATL player;
|
||||
_item = createVehicle ["WeaponHolder", _iPos, [], 1, "CAN_COLLIDE"];
|
||||
_item setposATL _iPos;
|
||||
if (_primary != "") then {
|
||||
_removed = ([player,_primary,1] call BIS_fnc_invRemove);
|
||||
if (_removed == 1) then {
|
||||
_item addWeaponCargoGlobal [_primary,1];
|
||||
[_primary,2,1] call fn_dropItem;
|
||||
};
|
||||
};
|
||||
if (_pistol != "") then {
|
||||
_removed = ([player,_pistol,1] call BIS_fnc_invRemove);
|
||||
if (_removed == 1) then {
|
||||
_item addWeaponCargoGlobal [_pistol,1];
|
||||
[_pistol,2,1] call fn_dropItem;
|
||||
};
|
||||
};
|
||||
if (dayz_onBack != "") then {
|
||||
_item addWeaponCargoGlobal [dayz_onBack,1];
|
||||
[dayz_onBack,2,1] call fn_dropItem;
|
||||
dayz_onBack = ""; // Remove from back
|
||||
if (!isNull findDisplay 106) then {findDisplay 106 displayCtrl 1209 ctrlSetText "";};
|
||||
};
|
||||
player reveal _item;
|
||||
call player_forceSave;
|
||||
};
|
||||
|
||||
// set publicvariable that allows other player to access gear
|
||||
|
||||
Reference in New Issue
Block a user