mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-06-28 12:41:56 +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: https://github.com/DayZMod/DayZ/commit/15e923fb19ce0f52ae0c994269b56eb3aab6249b
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