From 4a7a63533c27a3c07aa18dd7f6bb2c2e6460df9e Mon Sep 17 00:00:00 2001 From: Unreal Karaulov Date: Fri, 31 Mar 2023 20:57:16 +0300 Subject: [PATCH] Missing friendlyfire after previous commit (#805) * Missing friendlyfire after previous commit Fixes https://github.com/s1lentq/ReGameDLL_CS/pull/798 issue. --- regamedll/dlls/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/dlls/vehicle.cpp b/regamedll/dlls/vehicle.cpp index 3089c916..3ff84b94 100644 --- a/regamedll/dlls/vehicle.cpp +++ b/regamedll/dlls/vehicle.cpp @@ -150,7 +150,7 @@ void CFuncVehicle::Blocked(CBaseEntity *pOther) if (pOther->Classify() == CLASS_PLAYER) { CBasePlayer* playerOther = static_cast(pOther); - if (!playerDriver || g_pGameRules->PlayerRelationship(playerDriver, playerOther) == GR_TEAMMATE) + if (!playerDriver || !g_pGameRules->FPlayerCanTakeDamage(playerOther, playerDriver)) { // Just kick player return;