mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
Missing friendlyfire after previous commit (#805)
* Missing friendlyfire after previous commit Fixes https://github.com/s1lentq/ReGameDLL_CS/pull/798 issue.
This commit is contained in:
parent
dce06e91c2
commit
4a7a63533c
@ -150,7 +150,7 @@ void CFuncVehicle::Blocked(CBaseEntity *pOther)
|
||||
if (pOther->Classify() == CLASS_PLAYER)
|
||||
{
|
||||
CBasePlayer* playerOther = static_cast<CBasePlayer*>(pOther);
|
||||
if (!playerDriver || g_pGameRules->PlayerRelationship(playerDriver, playerOther) == GR_TEAMMATE)
|
||||
if (!playerDriver || !g_pGameRules->FPlayerCanTakeDamage(playerOther, playerDriver))
|
||||
{
|
||||
// Just kick player
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user