mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-29 20:50:38 +00:00
Voting fakeouts
The voting cursor can land early, or go up a position, on vote end. Not only is this hilarious and makes it more unpredicatable, it also makes it easier for the game to pick a vote and move on to the next level . (I bet people will mistake this for a bug on release :V)
This commit is contained in:
parent
d1e206072a
commit
d5f311681f
1 changed files with 3 additions and 1 deletions
|
@ -2403,7 +2403,9 @@ void Y_VoteTicker(void)
|
|||
{
|
||||
if (voteclient.rendoff == 0)
|
||||
{
|
||||
if (tempvotes[((pickedvote + voteclient.roffset + 4) % numvotes)] == pickedvote
|
||||
if ((tempvotes[((pickedvote + voteclient.roffset + 4) % numvotes)] == pickedvote // Pick normally
|
||||
|| tempvotes[((pickedvote + voteclient.roffset + 3) % numvotes)] == pickedvote // Fake out: land early
|
||||
|| tempvotes[((pickedvote + voteclient.roffset + 2) % numvotes)] == pickedvote) // Fake out: cheat and move
|
||||
&& voteclient.rsynctime % 51 == 0) // Song is 1.45 seconds long (sorry @ whoever wants to replace it in a music wad :V)
|
||||
{
|
||||
voteclient.rendoff = voteclient.roffset+4;
|
||||
|
|
Loading…
Reference in a new issue