mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
private array + one fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
private ["_hasKnife","_qty","_item","_text","_string","_type","_started","_finished","_animState","_isMedic","_array","_hasHarvested","_hasKnifeBlunt"];
|
private ["_hasKnife","_qty","_item","_text","_string","_type","_started","_finished","_animState","_isMedic","_array","_hasHarvested","_hasKnifeBlunt","_humanity"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText ["Gutting zombie already in progress." , "PLAIN DOWN"]; };
|
if(TradeInprogress) exitWith { cutText ["Gutting zombie already in progress." , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
TradeInprogress = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
private ["_part_out","_part_in","_qty_out","_qty_in","_textPartIn","_textPartOut","_qty","_needed","_started","_finished","_animState","_isMedic","_abort","_removed","_tradeCounter","_total_trades"];
|
private ["_part_out","_part_in","_qty_out","_qty_in","_textPartIn","_textPartOut","_qty","_needed","_started","_finished","_animState","_isMedic","_abort","_removed","_tradeCounter","_total_trades","_humanityGain","_humanity"];
|
||||||
// [part_out,part_in, qty_out, qty_in,];
|
// [part_out,part_in, qty_out, qty_in,];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; };
|
if(TradeInprogress) exitWith { cutText ["Trade already in progress." , "PLAIN DOWN"]; };
|
||||||
@@ -93,7 +93,7 @@ for "_x" from 1 to _total_trades do {
|
|||||||
if(_humanityGain > 0) then {
|
if(_humanityGain > 0) then {
|
||||||
// Increase humanity for turning in bio meat
|
// Increase humanity for turning in bio meat
|
||||||
_humanity = player getVariable["humanity",0];
|
_humanity = player getVariable["humanity",0];
|
||||||
_humanity = _humanity + 20;
|
_humanity = _humanity + _humanityGain;
|
||||||
player setVariable["humanity",_humanity,true];
|
player setVariable["humanity",_humanity,true];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
//[unit, selectionName, damage, source, projectile]
|
//[unit, selectionName, damage, source, projectile]
|
||||||
//will only run when local to the created object
|
//will only run when local to the created object
|
||||||
//record any key hits to the required selection
|
//record any key hits to the required selection
|
||||||
private["_zed","_killer","_kills","_array","_type"];
|
private ["_zed","_killer","_kills","_array","_type","_humanity"];
|
||||||
|
|
||||||
_array = _this select 0;
|
_array = _this select 0;
|
||||||
_zed = _array select 0;
|
_zed = _array select 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user