From 9a5096620858ee56937913106dd4d7f0cd023f35 Mon Sep 17 00:00:00 2001 From: Skibbo <71838397+Skibbo@users.noreply.github.com> Date: Thu, 4 Jan 2024 23:46:20 +0100 Subject: [PATCH] Fixed the achievement "No Perk? No Problem" The achievement should trigger at round 16 at the earliest after the description "Survive an entire Round without Perks past Round 15 or higher". The achievement triggers at the end of round 12, regardless if you bought perks or not. I added a line to check if it's after round 15 and removed the line "players.ach_tracker_npnp = 0;" which reset the count of drank perks, so it triggers correctly. --- source/server/rounds.qc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/server/rounds.qc b/source/server/rounds.qc index df3ef6f..15be6f7 100644 --- a/source/server/rounds.qc +++ b/source/server/rounds.qc @@ -155,13 +155,14 @@ void() EndRound = players = find(world, classname, "player"); while(players != world) { - if (players.ach_tracker_npnp == 0) { - GiveAchievement(5, players); - } if (players.ach_tracker_abst == 0) { GiveAchievement(8, players); } - players.ach_tracker_npnp = 0; + if (rounds >= 16) { + if (players.ach_tracker_npnp == 0) { + GiveAchievement(5, players); + } + } players = find(players, classname, "player"); } }