1.0.1.2 Release

+ [CHANGED] commented out many diag_logs
+ [CHANGED] bandit status is now at -5000 instead of -2000
This commit is contained in:
vbawol
2013-06-26 09:11:30 -05:00
parent 6abd497261
commit 91b05db8e0
22 changed files with 69 additions and 111 deletions

View File

@@ -447,11 +447,11 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu
_low_high = "low";
_humanity_logic = false;
if((_traderMenu select 2) == "friendly") then {
_humanity_logic = (_humanity < -2000);
_humanity_logic = (_humanity < -5000);
};
if((_traderMenu select 2) == "hostile") then {
_low_high = "high";
_humanity_logic = (_humanity > -2000);
_humanity_logic = (_humanity > -5000);
};
if((_traderMenu select 2) == "hero") then {
_humanity_logic = (_humanity < 5000);

View File

@@ -17,13 +17,13 @@ _tagList = player getVariable ["tagList", []];
// Add sphere to everyone
_position = [0,0,0];
_tag = "Sign_sphere10cm_EP1" createVehicleLocal _position;
_tag attachTo [_x,[0,0,0],"lwrist"];
_tag attachTo [_x,[0,0,0],"lwrist"]; // Pelvis
_tag setVariable ["belongsTo", _rcharID];
// Force white
// _tag setobjecttexture [0,"#(argb,8,8,3)color(1,1,1,0.5,ca)"];
diag_log format["SETUP ORB FOR: %1", _x];
//diag_log format["SETUP ORB FOR: %1", _x];
// Maintenance array
_tagList set [count _tagList, [_x, _tag,"init"]];
@@ -73,7 +73,7 @@ _newTagList = [];
// Get humanity
_humanity = _player getVariable ["humanity",0];
if(_humanity < -2000) then {
if(_humanity < -5000) then {
_statusNew = "red";
_tagColor = "#(argb,8,8,3)color(1,0,0,0.5,ca)";
} else {
@@ -88,7 +88,7 @@ _newTagList = [];
if(_statusNew != _status) then {
diag_log format["STATUS CHANGED: %1 != %2", _statusNew, _status];
//diag_log format["STATUS CHANGED: %1 != %2", _statusNew, _status];
// Set texture based on humanity or friendship status
_tag setobjecttexture [0,_tagColor];
_status = _statusNew;

View File

@@ -42,14 +42,14 @@ if (_vehicle != player) then {
} forEach _openVehicles;
};
diag_log ("Hitpoints " +str(_wound) + "hit points " + str(_hpList));
//diag_log ("Hitpoints " +str(_wound) + "hit points " + str(_hpList));
if (_wound in DZE_vehicleZwounds) then {
_strH = "hit_" + (_wound);
_dam = _vehicle getVariable [_strH,0];
diag_log ("Hitpoints " +str(_wound) +str(_total));
//diag_log ("Hitpoints " +str(_wound) +str(_total));
//["dayzHitV",[_vehicle, _wound,_total, _unit,"zombie"]] call broadcastRpcCallAll;
if (_dam >= 1) then {
@@ -65,7 +65,7 @@ if (_vehicle != player) then {
_wound = (DAYZ_woundHit_ok select 0) select _index;
};
_damage = 0.1 + random (1.2);
diag_log ("START DAM: Player Hit on " + _wound + " for " + str(_damage));
//diag_log ("START DAM: Player Hit on " + _wound + " for " + str(_damage));
[player, _wound, _damage, _unit,"zombie"] call fnc_usec_damageHandler;
//dayzHit = [player,_wound, _damage, _unit,"zombie"];
//publicVariable "dayzHit";
@@ -101,13 +101,13 @@ if (_vehicle != player) then {
};
_damage = 0.1 + random (1.2);
diag_log ("START DAM: Player Hit on " + _wound + " for " + str(_damage));
//diag_log ("START DAM: Player Hit on " + _wound + " for " + str(_damage));
[player, _wound, _damage, _unit,"zombie"] call fnc_usec_damageHandler;
//dayzHit = [player,_wound, _damage, _unit,"zombie"];
//publicVariable "dayzHit";
[_unit,"hit",2,false] call dayz_zombieSpeak;
} else {
diag_log ("NO LOS: Player Hit on " + str(_unit) + " for " + str(_vehicle));
//diag_log ("NO LOS: Player Hit on " + str(_unit) + " for " + str(_vehicle));
/*
_isZombieInside = [_unit,_building] call fnc_isInsideBuilding;
if (_isPlayerInside) then {
@@ -120,16 +120,6 @@ if (_vehicle != player) then {
};
*/
};
} else {
diag_log ("out of angle : tpos " + str(_tPos) + " zpos " + str(_zPos) + " dir" + str(getdir _unit));
};
} else {
if(!((_unit distance player) <= dayz_areaAffect)) then {
_tPos = (getPosASL _vehicle);
_zPos = (getPosASL _unit);
diag_log ("to far to hit player : tpos " + str(_tPos) + " zpos " + str(_zPos));
};
};
};