Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oqyh authored Jan 17, 2024
1 parent 1bf0f1c commit df196fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions knife_round.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public void OnTick()
if(TWINNER == true || CTWINNER == true)
{
var playerEntities = Utilities.FindAllEntitiesByDesignerName<CCSPlayerController>("cs_player_controller");
var countct = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.CounterTerrorist);
var countt = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.Terrorist);
var countct = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.CounterTerrorist && !p.IsHLTV);
var countt = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.Terrorist && !p.IsHLTV);
string Close = "</font>";
string Red = "<font color='Red'>";
string Cyan = "<font color='cyan'>";
Expand Down Expand Up @@ -538,7 +538,7 @@ public void ChangeToCTTeamCommand(CCSPlayerController? player, CommandInfo cmd)
_rtvCountCT.Add(player.SteamID);


var councT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.Terrorist);
var councT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.Terrorist && !p.IsHLTV);
var required = (int)Math.Ceiling(councT * 0.6);
currentVotesCT = _rtvCountCT.Count;

Expand Down Expand Up @@ -602,7 +602,7 @@ public void ChangeToCTTeamCommand(CCSPlayerController? player, CommandInfo cmd)
if (_rtvCountCT.Contains(player!.SteamID))return;
_rtvCountCT.Add(player.SteamID);

var councCT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.CounterTerrorist);
var councCT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.CounterTerrorist && !p.IsHLTV);
var required = (int)Math.Ceiling(councCT * 0.6);
currentVotesCT = _rtvCountCT.Count;

Expand Down Expand Up @@ -670,7 +670,7 @@ public void ChangeToTTeamCommand(CCSPlayerController? player, CommandInfo cmd)
if (_rtvCountT.Contains(player!.SteamID))return;
_rtvCountT.Add(player.SteamID);

var councCT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.CounterTerrorist);
var councCT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.CounterTerrorist && !p.IsHLTV);
var required = (int)Math.Ceiling(councCT * 0.6);
currentVotesT = _rtvCountT.Count;

Expand Down Expand Up @@ -736,7 +736,7 @@ public void ChangeToTTeamCommand(CCSPlayerController? player, CommandInfo cmd)
if (_rtvCountT.Contains(player!.SteamID))return;
_rtvCountT.Add(player.SteamID);

var councT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.Terrorist);
var councT = Utilities.GetPlayers().Count(p => p.TeamNum == (int)CsTeam.Terrorist && !p.IsHLTV);
var required = (int)Math.Ceiling(councT * 0.6);
currentVotesT = _rtvCountT.Count;

Expand Down

0 comments on commit df196fb

Please sign in to comment.