Created 2 years ago2022-01-23 13:36:37 UTC by JacksBestGaming
CHalfLifeMultiplay::FPlayerCanTakeDamage
.
//=========================================================
//=========================================================
bool CHalfLifeMultiplay::FPlayerCanTakeDamage(CBasePlayer* pPlayer, CBaseEntity* pAttacker)
{
return true;
}
Simply replace return true;
with this:
return !pAttacker->IsPlayer();
This will affect the deathmatch gamemode.