mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix tranquiliser bolt
This commit is contained in:
@@ -257,7 +257,7 @@ class CfgAmmo
|
||||
|
||||
class tranquiliser_bolt : BulletBase
|
||||
{
|
||||
hit = 0.1;
|
||||
hit = 1;
|
||||
indirectHit = 0;
|
||||
indirectHitRange = 0;
|
||||
maxRange = 100;
|
||||
|
||||
@@ -132,14 +132,14 @@ if (_unit == player) then {
|
||||
};
|
||||
|
||||
if ((vehicle player == player) and (!_unconscious)) then {
|
||||
if (_ammo == "tranquiliser_bolt") then {
|
||||
if (_ammo == "tranquiliser_bolt" && !r_player_unconscious) then {
|
||||
[_unit] spawn {
|
||||
private ["_unit"];
|
||||
_unit = _this select 0;
|
||||
localize "str_player_tranquilized" call dayz_rollingMessages;
|
||||
[_unit,0.01] call fnc_usec_damageUnconscious;
|
||||
_unit setVariable ["NORRN_unconscious", true, true];
|
||||
r_player_timeout = round(random 60);
|
||||
r_player_timeout = 20 + round(random 60);
|
||||
r_player_unconscious = true;
|
||||
player setVariable["medForceUpdate",true,true];
|
||||
player setVariable ["unconsciousTime", r_player_timeout, true];
|
||||
@@ -148,7 +148,7 @@ if (_unit == player) then {
|
||||
|
||||
if (_damage > 0.4) then {
|
||||
//Melee knockout system
|
||||
if ((_isHeadHit) and (_ammo in ["Crowbar_Swing_Ammo","Bat_Swing_Ammo","Sledge_Swing_Ammo"])) then {
|
||||
if ((_isHeadHit) && (_ammo in ["Crowbar_Swing_Ammo","Bat_Swing_Ammo","Sledge_Swing_Ammo"]) && (!r_player_unconscious)) then {
|
||||
[_unit] spawn {
|
||||
_unit = _this select 0;
|
||||
localize "str_actions_medical_knocked_out" call dayz_rollingMessages;
|
||||
|
||||
Reference in New Issue
Block a user