removed sources that are not allowed

This commit is contained in:
vbawol
2013-06-24 06:13:39 -05:00
parent 5959096790
commit 7c72a48e89
446 changed files with 57 additions and 73285 deletions

View File

@@ -42,13 +42,19 @@ if (_vehicle != player) then {
} forEach _openVehicles;
};
if ((_wound == "Glass1") or (_wound == "Glass2") or (_wound == "Glass3") or (_wound == "Glass4") or (_wound == "Glass5") or (_wound == "Glass6")) then {
[_unit,"hit",4,false] call dayz_zombieSpeak;
diag_log ("Hitpoints " +str(_wound) + "hit points " + str(_hpList));
if (_wound in DZE_vehicleZwounds) then {
_strH = "hit_" + (_wound);
_dam = _vehicle getVariable [_strH,0];
_total = (_dam + _damage);
//diag_log ("Hitpoints " +str(_wound) +str(_total));
if(_total < 1) then {
[_unit,"hit",4,false] call dayz_zombieSpeak;
};
diag_log ("Hitpoints " +str(_wound) +str(_total));
//["dayzHitV",[_vehicle, _wound,_total, _unit,"zombie"]] call broadcastRpcCallAll;
if (_total >= 1) then {
@@ -64,15 +70,20 @@ 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";
[_unit,"hit",2,false] call dayz_zombieSpeak;
} else {
//["dayzHitV",[_vehicle, _wound, _total, _unit,"zombie"]] call broadcastRpcCallAll;
dayzHitV = [_vehicle, _wound, _total, _unit,"zombie"];
publicVariable "dayzHitV";
dayzSetFix = [_vehicle,_strH,_total];
if (local _vehicle) then {
dayzSetFix call object_setFixServer;
} else {
publicVariable "dayzSetFix";
};
};
};
} else {
@@ -81,7 +92,7 @@ if (_vehicle != player) then {
//diag_log ("Animation state: " +(_currentAnim));
//"amovpercmstpsnonwnondnon",
_attackanimations = ["zombiestandingattack1","zombiestandingattack2","zombiestandingattack3","zombiestandingattack4","zombiestandingattack5","zombiestandingattack6","zombiestandingattack7","zombiestandingattack8","zombiestandingattack9","zombiestandingattack10","zombiefeed1","zombiefeed2","zombiefeed3","zombiefeed4","zombiefeed5"];
if (((_unit distance player) <= 3) and ((animationState _unit) in _attackanimations)) then {
if (((_unit distance player) <= dayz_areaAffect) and ((animationState _unit) in _attackanimations)) then {
//check LOS
private[];
_tPos = (getPosASL _vehicle);
@@ -104,17 +115,18 @@ 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));
/*
_isZombieInside = [_unit,_building] call fnc_isInsideBuilding;
if (_isPlayerInside) 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";
@@ -122,6 +134,16 @@ 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));
};
};
};

View File

@@ -347,6 +347,21 @@ USEC_typeOfWounds = [
"neck","pilot"
];
DZE_vehicleZwounds = [
"sklo predni L",
"sklo predni P",
"sklo zadni",
"sklo zadni L",
"sklo zadni P",
"sklo P",
"Glass1",
"Glass2",
"Glass3",
"Glass4",
"Glass5",
"Glass6"
];
//Initialize Zombie Variables
dayz_zombieTargetList = [
["SoldierWB",50],
@@ -406,9 +421,11 @@ if(isNil "dayz_minpos") then {
if(isNil "dayz_maxpos") then {
dayz_maxpos = 20000;
};
/*
if(isNil "dayz_canBuildInCity") then {
dayz_canBuildInCity = false;
};
*/
if(isNil "dayz_zedSpawnVehCount") then {
dayz_zedSpawnVehCount = dayz_maxLocalZombies / 2;

View File

@@ -18,7 +18,13 @@ dayz_myLoad = (((count dayz_myBackpackMags) * 0.2) + (count dayz_myBackpackWpns)
while {true} do {
//Initialize
_refObj = vehicle player;
_size = (sizeOf typeOf _refObj) * 0.6;
_factor = 0.6;
_inVehicle = (_refObj != player);
if(_inVehicle) then {
_factor = 1;
};
_size = (sizeOf typeOf _refObj) * _factor;
_vel = velocity player;
_speed = round((_vel distance [0,0,0]) * 3.5);
_saveTime = (playersNumber west * 2) + 10;