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:
ebaydayz
2016-10-11 19:57:14 -04:00
parent 05fa3e6a9a
commit 22b2a3a79f

View File

@@ -84,7 +84,7 @@ if (_unit == player) then {
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 = (_model in ["Bandit1_DZ","BanditW1_DZ"]);