Skip to content

Commit

Permalink
Adjust recall parameters (FAForever#4244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Sep 24, 2022
1 parent ebd2206 commit 613a1db
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lua/shared/RecallParams.lua
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

0 comments on commit 613a1db

Please sign in to comment.