mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
remove zeds damage vehicles one more readme
This commit is contained in:
@@ -18,6 +18,8 @@ Included Custom Addons
|
|||||||
* SUV Colors by Python.au http://www.armaholic.com/page.php?id=17176
|
* SUV Colors by Python.au http://www.armaholic.com/page.php?id=17176
|
||||||
* R3F Realism by http://www.team-r3f.org/
|
* R3F Realism by http://www.team-r3f.org/
|
||||||
* Modern Civilian vehicles by vilas http://www.armaholic.com/page.php?id=17447
|
* 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
|
* st_movement by ShackTac https://dev-heaven.net/projects/shacktac/files
|
||||||
|
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|||||||
@@ -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;
|
_unit = _this select 0;
|
||||||
_type = _this select 1;
|
_type = _this select 1;
|
||||||
_vehicle = (vehicle player);
|
_vehicle = (vehicle player);
|
||||||
|
|
||||||
_targets = _unit getVariable ["targets",[]];
|
_targets = _unit getVariable ["targets",[]];
|
||||||
|
|
||||||
// if (!dayz_zedsAttackVehicles and !(_vehicle in _targets)) exitWith {};
|
if (!dayz_zedsAttackVehicles and !(_vehicle in _targets)) exitWith {};
|
||||||
|
|
||||||
//Do the attack
|
//Do the attack
|
||||||
if (r_player_unconscious && _vehicle == player && _type == "zombie") then {
|
if (r_player_unconscious && _vehicle == player && _type == "zombie") then {
|
||||||
@@ -48,16 +48,11 @@ if (_vehicle != player) then {
|
|||||||
|
|
||||||
_strH = "hit_" + (_wound);
|
_strH = "hit_" + (_wound);
|
||||||
_dam = _vehicle getVariable [_strH,0];
|
_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));
|
diag_log ("Hitpoints " +str(_wound) +str(_total));
|
||||||
|
|
||||||
//["dayzHitV",[_vehicle, _wound,_total, _unit,"zombie"]] call broadcastRpcCallAll;
|
//["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 {
|
if (r_player_blood < (r_player_bloodTotal * 0.8)) then {
|
||||||
_cnt = count (DAYZ_woundHit select 1);
|
_cnt = count (DAYZ_woundHit select 1);
|
||||||
_index = floor (random _cnt);
|
_index = floor (random _cnt);
|
||||||
@@ -75,15 +70,6 @@ if (_vehicle != player) then {
|
|||||||
//dayzHit = [player,_wound, _damage, _unit,"zombie"];
|
//dayzHit = [player,_wound, _damage, _unit,"zombie"];
|
||||||
//publicVariable "dayzHit";
|
//publicVariable "dayzHit";
|
||||||
[_unit,"hit",2,false] call dayz_zombieSpeak;
|
[_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 {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user