Skip to content

Commit

Permalink
fix: dont give players invulnerability when they're stabbed by a team…
Browse files Browse the repository at this point in the history
…mate...
  • Loading branch information
ipsvn committed May 14, 2024
1 parent 35688cd commit 5f864e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KnifeCooldownManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ private HookResult CBaseEntity_TakeDamageOldFuncHook(DynamicHook hook)
return HookResult.Continue;
}

// if attacked player is counter-terrorist, ignore damage from knife
if (controller.TeamNum == (byte)CsTeam.CounterTerrorist)
// if attacked player is counter-terrorist or on the same team, ignore damage from knife
if (controller.TeamNum == (byte)CsTeam.CounterTerrorist || controller.TeamNum == attacker.TeamNum)
{
return HookResult.Handled;
}
Expand Down

0 comments on commit 5f864e3

Please sign in to comment.