From 71cf36a56c77ac5cb5745b85fb684e7ee1a1f583 Mon Sep 17 00:00:00 2001 From: vbawol Date: Mon, 24 Jun 2013 07:31:24 -0500 Subject: [PATCH] remove zeds damage vehicles one more readme --- README.md | 2 ++ SQF/dayz_code/compile/player_zombieAttack.sqf | 20 +++---------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index b780f296c..52c14b508 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Included Custom Addons * SUV Colors by Python.au http://www.armaholic.com/page.php?id=17176 * R3F Realism by http://www.team-r3f.org/ * Modern Civilian vehicles by vilas http://www.armaholic.com/page.php?id=17447 +* ASC EU Lights Mod http://www.armaholic.com/page.php?id=12076 +* MAP Editorupgrade (EU) http://www.armaholic.com/page.php?id=6194 * st_movement by ShackTac https://dev-heaven.net/projects/shacktac/files -------------------------- diff --git a/SQF/dayz_code/compile/player_zombieAttack.sqf b/SQF/dayz_code/compile/player_zombieAttack.sqf index bc6f0fc64..abccbdba4 100644 --- a/SQF/dayz_code/compile/player_zombieAttack.sqf +++ b/SQF/dayz_code/compile/player_zombieAttack.sqf @@ -1,11 +1,11 @@ -private ["_unit","_targets","_move","_damage","_wound","_index","_cnt","_dir","_hpList","_hp","_strH","_dam","_total","_vehicle","_tPos","_zPos","_cantSee","_inAngle","_rnd","_openVehicles","_chance","_attackanimations","_type"]; +private ["_unit","_move","_damage","_wound","_index","_cnt","_dir","_hpList","_hp","_strH","_dam","_total","_vehicle","_tPos","_zPos","_cantSee","_inAngle","_rnd","_openVehicles","_chance","_attackanimations","_type","_targets"]; _unit = _this select 0; _type = _this select 1; _vehicle = (vehicle player); _targets = _unit getVariable ["targets",[]]; -// if (!dayz_zedsAttackVehicles and !(_vehicle in _targets)) exitWith {}; +if (!dayz_zedsAttackVehicles and !(_vehicle in _targets)) exitWith {}; //Do the attack if (r_player_unconscious && _vehicle == player && _type == "zombie") then { @@ -48,16 +48,11 @@ if (_vehicle != player) then { _strH = "hit_" + (_wound); _dam = _vehicle getVariable [_strH,0]; - _total = (_dam + _damage); - - 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 { + if (_dam >= 1) then { if (r_player_blood < (r_player_bloodTotal * 0.8)) then { _cnt = count (DAYZ_woundHit select 1); _index = floor (random _cnt); @@ -75,15 +70,6 @@ if (_vehicle != player) then { //dayzHit = [player,_wound, _damage, _unit,"zombie"]; //publicVariable "dayzHit"; [_unit,"hit",2,false] call dayz_zombieSpeak; - } else { - //["dayzHitV",[_vehicle, _wound, _total, _unit,"zombie"]] call broadcastRpcCallAll; - - dayzSetFix = [_vehicle,_strH,_total]; - if (local _vehicle) then { - dayzSetFix call object_setFixServer; - } else { - publicVariable "dayzSetFix"; - }; }; }; } else {