mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
player_wearclothes changes, string changes and maintain area moving (#1783)
* player_wearclothes changes, string changes and maintain area moving Adds 2 toggles for admins to modify: DZE_backpackRemove forces the player to drop his/her backpack when they change gear. DZE_maintainCurrencyRate modifies the amount of worth each item is worth to maintain. Changes the error message in player_wearClothes to tell the player why they can't change gear yet Remove some debug lines that spam RPT * Rework Rework as per @ebaydayz * Rework Rework
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
/*
|
||||
|
||||
Examples for config variable DZE_maintainCurrencyRate:
|
||||
|
||||
Now that we have gem based currency, maintaining is priced via a "worth".
|
||||
|
||||
If you want the price per item to be 1 gold, DZE_maintainCurrencyRate needs to be 100.
|
||||
600 items * 100 would be worth 6 briefcases or 60k coins on a single currency server.
|
||||
600 items * 150 would be worth 9 briefcases or 90k coins on a single currency server.
|
||||
|
||||
1 10oz silver = 10 worth
|
||||
1 gold = 100 worth
|
||||
1 10oz gold = 1,000 worth
|
||||
1 briefcase = 10,000 worth
|
||||
|
||||
Please see configVariables.sqf for the value of gems (DZE_GemWorthArray) and their relevant worth.
|
||||
|
||||
*/
|
||||
|
||||
private ["_objectID","_objectUID","_target","_objects","_requirements","_count","_objects_filtered","_ctrl","_itemText","_type","_amount","_success","_wealth","_message1","_message2","_option"];
|
||||
disableSerialization;
|
||||
|
||||
@@ -22,7 +41,7 @@ _req = {
|
||||
private ["_count","_amount","_itemText"];
|
||||
|
||||
_count = _this;
|
||||
_amount = _count * 100;
|
||||
_amount = _count * DZE_maintainCurrencyRate;
|
||||
_itemText = if (Z_SingleCurrency) then { CurrencyName } else { _amount call z_calcDefaultCurrencyNoImg };
|
||||
|
||||
[_amount,_itemText]
|
||||
@@ -45,7 +45,7 @@ if (_classname isKindOf "Bag_Base_EP1") exitWith {
|
||||
_PlayerNear = {isPlayer _x} count ((getPosATL _holder) nearEntities ["CAManBase", 10]) > 1;
|
||||
if (_PlayerNear) exitWith {localize "str_pickup_limit_4" call dayz_rollingMessages;};
|
||||
|
||||
diag_log("Picked up a bag: " + _classname);
|
||||
//diag_log("Picked up a bag: " + _classname);
|
||||
|
||||
_hasBag = unitBackpack player;
|
||||
|
||||
@@ -88,4 +88,4 @@ _wpn = primaryWeapon player;
|
||||
_ismelee = (getNumber (configFile >> "CfgWeapons" >> _wpn >> "melee") == 1);
|
||||
if (_ismelee) then {
|
||||
call dayz_meleeMagazineCheck;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
if (dayz_lastClothesChange + 5 > diag_tickTime) exitWith {localize "str_player_actionslimit" call dayz_rollingMessages;};
|
||||
if (dayz_lastClothesChange + 5 > diag_tickTime) exitWith {format [localize "str_player_clotheslimit",dayz_lastClothesChange + 5 - diag_tickTime] call dayz_rollingMessages;};
|
||||
dayz_lastClothesChange = diag_tickTime;
|
||||
|
||||
if (_this in DZE_RestrictSkins) exitWith { format[localize "str_epoch_player_315",_this] call dayz_rollingMessages; };
|
||||
|
||||
Reference in New Issue
Block a user