diff --git a/SQF/dayz_code/actions/gather_zparts.sqf b/SQF/dayz_code/actions/gather_zparts.sqf index 96952704e..53c3c7248 100644 --- a/SQF/dayz_code/actions/gather_zparts.sqf +++ b/SQF/dayz_code/actions/gather_zparts.sqf @@ -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"]; }; TradeInprogress = true; diff --git a/SQF/dayz_code/actions/trade_items_wo_db.sqf b/SQF/dayz_code/actions/trade_items_wo_db.sqf index 8dc244381..e5ed7f505 100644 --- a/SQF/dayz_code/actions/trade_items_wo_db.sqf +++ b/SQF/dayz_code/actions/trade_items_wo_db.sqf @@ -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,]; 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 { // Increase humanity for turning in bio meat _humanity = player getVariable["humanity",0]; - _humanity = _humanity + 20; + _humanity = _humanity + _humanityGain; player setVariable["humanity",_humanity,true]; }; diff --git a/SQF/dayz_code/compile/local_eventKill.sqf b/SQF/dayz_code/compile/local_eventKill.sqf index d37503130..b4da3c93a 100644 --- a/SQF/dayz_code/compile/local_eventKill.sqf +++ b/SQF/dayz_code/compile/local_eventKill.sqf @@ -1,7 +1,7 @@ //[unit, selectionName, damage, source, projectile] //will only run when local to the created object //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; _zed = _array select 0;