From d1a15870b1a32b5be963eae50d0379d49371ad79 Mon Sep 17 00:00:00 2001 From: Skaronator Date: Fri, 20 Dec 2013 13:40:31 +0100 Subject: [PATCH] Add Notice for PV improvements (Also a performance plus would be PVC instead of PV) --- SQF/dayz_code/actions/player_tagFriendly.sqf | 3 ++- SQF/dayz_code/medical/bandage.sqf | 2 +- SQF/dayz_code/medical/carry.sqf | 6 ++---- SQF/dayz_code/medical/epinephrine.sqf | 1 + SQF/dayz_code/medical/load_wounded.sqf | 1 + SQF/dayz_code/medical/morphine.sqf | 1 + SQF/dayz_code/medical/publicEH/medBreakLegs.sqf | 10 ---------- 7 files changed, 8 insertions(+), 16 deletions(-) diff --git a/SQF/dayz_code/actions/player_tagFriendly.sqf b/SQF/dayz_code/actions/player_tagFriendly.sqf index 9f2c04dc5..d08a6edb1 100644 --- a/SQF/dayz_code/actions/player_tagFriendly.sqf +++ b/SQF/dayz_code/actions/player_tagFriendly.sqf @@ -18,6 +18,7 @@ if !(_callerID in _rfriendlies) then { // caller titleText ["You have tagged a player as friendly. Waiting for other player to accept.", "PLAIN DOWN"]; // TODO: localize // target + //Could be changed to PVC via server_sendToClient.sqf (From DayZCE) - Commit by Skaronator PVDZE_plr_FriendRQ = _target; publicVariable "PVDZE_plr_FriendRQ"; -}; +}; \ No newline at end of file diff --git a/SQF/dayz_code/medical/bandage.sqf b/SQF/dayz_code/medical/bandage.sqf index 729b2c73a..488ba6b8f 100644 --- a/SQF/dayz_code/medical/bandage.sqf +++ b/SQF/dayz_code/medical/bandage.sqf @@ -49,7 +49,7 @@ if (_finished) then { _display closeDisplay 0; }; - //["usecBandage",[_unit,player]] call broadcastRpcCallAll; + //DayZ CE: Has been changed to PVC via server_sendToClient.sqf -> Could we also do here - Commit by Skaronator usecBandage = [_unit,player]; publicVariable "usecBandage"; diff --git a/SQF/dayz_code/medical/carry.sqf b/SQF/dayz_code/medical/carry.sqf index 0265de751..5ee717bf7 100644 --- a/SQF/dayz_code/medical/carry.sqf +++ b/SQF/dayz_code/medical/carry.sqf @@ -1,9 +1,6 @@ /* - CARRY BODY SCRIPT - Allows players to carry unconscious bodies - JULY 2010 - norrin ***************************************************************************************************************************** Start carry.sqf @@ -23,6 +20,7 @@ _dragee setVariable ["NORRN_unit_dragged", true, true]; detach _dragee; sleep 1.5; // public EH +//DayZ CE: PublicVariables are removed in DayZ CE -> Could we also do here - Commit by Skaronator norrnRACarUp = _dragee; publicVariable "norrnRACarUp"; _dragee switchMove "ainjpfalmstpsnonwrfldnon_carried_up"; @@ -35,7 +33,7 @@ _dragee attachto [_unit,[-0.2, 0.2, 0]]; while {r_carry_sqf} do -{ +{ _anim_name = animationstate _unit; if (!(_dragee getVariable "NORRN_unconscious")) exitWith { diff --git a/SQF/dayz_code/medical/epinephrine.sqf b/SQF/dayz_code/medical/epinephrine.sqf index 8673e0961..c39faaea8 100644 --- a/SQF/dayz_code/medical/epinephrine.sqf +++ b/SQF/dayz_code/medical/epinephrine.sqf @@ -15,6 +15,7 @@ if (!_isDead) then { _unit setVariable ["USEC_isCardiac",false,true]; sleep 5; //["usecEpi",[_unit,player,"ItemEpinephrine"]] call broadcastRpcCallAll; + //DayZ CE: Has been changed to PVC via server_sendToClient.sqf -> Could we also do here - Commit by Skaronator usecEpi = [_unit,player,"ItemEpinephrine"]; publicVariable "usecEpi"; }; diff --git a/SQF/dayz_code/medical/load_wounded.sqf b/SQF/dayz_code/medical/load_wounded.sqf index 965ee339b..32c16666b 100644 --- a/SQF/dayz_code/medical/load_wounded.sqf +++ b/SQF/dayz_code/medical/load_wounded.sqf @@ -35,6 +35,7 @@ if (local _wounded) then _wounded action ["EJECT", _vcl]; sleep 1; }; + //DayZ CE: PublicVariables are removed in DayZ CE -> Could we also do here - Commit by Skaronator norrinRAlie = _wounded; publicVariable "norrinRAlie"; _wounded switchMove "ainjppnemstpsnonwrfldnon"; diff --git a/SQF/dayz_code/medical/morphine.sqf b/SQF/dayz_code/medical/morphine.sqf index 11e6c0480..052d16bd9 100644 --- a/SQF/dayz_code/medical/morphine.sqf +++ b/SQF/dayz_code/medical/morphine.sqf @@ -56,6 +56,7 @@ if (_finished) then { }; //["usecMorphine",[_unit,player]] call broadcastRpcCallAll; + //DayZ CE: PublicVariables are removed in DayZ CE -> Could we also do here - Commit by Skaronator usecMorphine = [_unit,player]; publicVariable "usecMorphine"; }; diff --git a/SQF/dayz_code/medical/publicEH/medBreakLegs.sqf b/SQF/dayz_code/medical/publicEH/medBreakLegs.sqf index a57bc740b..ab07192c2 100644 --- a/SQF/dayz_code/medical/publicEH/medBreakLegs.sqf +++ b/SQF/dayz_code/medical/publicEH/medBreakLegs.sqf @@ -6,12 +6,9 @@ _unit = _array select 0; _attacker = _array select 1; if (_unit == player && player distance _attacker < 5) then { - player setVariable["startcombattimer", 1, false]; - // Make bleed if (random 2 < 1) then { - // Find hit _cnt = count (DAYZ_woundHit_ok select 1); _index = floor (random _cnt); @@ -61,11 +58,4 @@ if (_unit == player && player distance _attacker < 5) then { }; [_unit,"hit",2,false] call dayz_zombieSpeak; - - - - - - - }; \ No newline at end of file