forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust recall parameters (FAForever#4244)
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
|
||
-- ticks before a player can start the first recall vote (5 minutes) | ||
--- ticks before a player can start the first recall vote (5 minutes) | ||
PlayerGateCooldown = 5 * 60 * 10 | ||
-- ticks before a player can request another recall (3 minutes) | ||
|
||
--- ticks before a player can request another recall (3 minutes) | ||
PlayerRequestCooldown = 3 * 60 * 10 | ||
-- ticks before a team can have another recall vote (1 minute) | ||
|
||
--- ticks before a team can have another recall vote (1 minute) | ||
TeamVoteCooldown = 1 * 60 * 10 | ||
-- ticks that the recall vote is open (30 seconds) | ||
VoteTime = 30 * 10 | ||
|
||
--- ticks that the recall vote is open (30 seconds) | ||
VoteTime = 30 * 10 | ||
|
||
function RecallRequestAccepted(acceptanceVotes, totalVotes) | ||
return acceptanceVotes >= totalVotes | ||
if totalVotes <= 2 then | ||
return acceptanceVotes >= totalVotes | ||
else | ||
return acceptanceVotes >= (totalVotes - 1) | ||
end | ||
end |