Permalink
Browse files

Modify traitor chance

  • Loading branch information...
Bara committed Dec 9, 2017
1 parent dce810d commit c2e9a8e06e733fd976bade21b1dfe87c9d9e5288
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/sourcemod/scripting/ttt/ttt.sp
@@ -858,7 +858,7 @@ public Action Timer_Selection(Handle hTimer)
iRand = GetRandomInt(0, aPlayers.Length - 1);
client = aPlayers.Get(iRand);
if (TTT_IsClientValid(client) && (g_iLastRole[client] != TTT_TEAM_TRAITOR || GetRandomInt(1, 6) == 4))
if (TTT_IsClientValid(client) && (g_iLastRole[client] != TTT_TEAM_TRAITOR && GetRandomInt(1, 6) == 4))
{
g_iRole[client] = TTT_TEAM_TRAITOR;
g_iLastRole[client] = TTT_TEAM_TRAITOR;

2 comments on commit c2e9a8e

@good-live

This comment has been minimized.

Show comment
Hide comment
@good-live

good-live Dec 9, 2017

Collaborator

That doesn't make sense. Like this you can't become traitor again. That could cause infinite loops.

Collaborator

good-live replied Dec 9, 2017

That doesn't make sense. Like this you can't become traitor again. That could cause infinite loops.

@Bara

This comment has been minimized.

Show comment
Hide comment
@Bara

Bara Dec 9, 2017

Owner

Had the same thought after push.

Owner

Bara replied Dec 9, 2017

Had the same thought after push.

Please sign in to comment.