From d5f311681f964ce1c9b675a77a9f3510b2896318 Mon Sep 17 00:00:00 2001 From: TehRealSalt Date: Tue, 12 Jun 2018 22:10:26 -0400 Subject: [PATCH] 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) --- src/y_inter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/y_inter.c b/src/y_inter.c index 11fefe72..5f17c16e 100644 --- a/src/y_inter.c +++ b/src/y_inter.c @@ -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;