mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Prevent humanity hit to driver when crash damages passengers
I forgot to account for this when allowing humanity hit to players in a
vehicle:
15e923fb19
This commit is contained in:
@@ -84,7 +84,7 @@ if (_unit == player) then {
|
|||||||
|
|
||||||
if (_hit == "") exitWith //Ignore none part dmg. Exit after processing humanity hit
|
if (_hit == "") exitWith //Ignore none part dmg. Exit after processing humanity hit
|
||||||
{
|
{
|
||||||
if (_source != player && _isPlayer && alive player) then
|
if (_source != driver (vehicle player) && _isPlayer && alive player) then
|
||||||
{
|
{
|
||||||
_isBandit = (player getVariable["humanity",0]) <= -5000;
|
_isBandit = (player getVariable["humanity",0]) <= -5000;
|
||||||
//_isBandit = (_model in ["Bandit1_DZ","BanditW1_DZ"]);
|
//_isBandit = (_model in ["Bandit1_DZ","BanditW1_DZ"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user