1 #include "sv_weaponarena_random.qh"
3 // WEAPONTODO: rename the cvars
4 REGISTER_MUTATOR(weaponarena_random, true);
6 MUTATOR_HOOKFUNCTION(weaponarena_random, PlayerSpawn)
8 if (!g_weaponarena_random) return;
9 entity player = M_ARGV(0, entity);
11 if (g_weaponarena_random_with_blaster) STAT(WEAPONS, player) &= ~WEPSET(BLASTER);
12 STAT(WEAPONS, player) = W_RandomWeapons(player, STAT(WEAPONS, player), g_weaponarena_random);
13 if (g_weaponarena_random_with_blaster) STAT(WEAPONS, player) |= WEPSET(BLASTER);