]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/mutator/mutator_weaponarena_random.qc
5c821007785c99d1fe66199ebc69f1e4b317d3f1
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / mutator_weaponarena_random.qc
1 #ifdef IMPLEMENTATION
2 // WEAPONTODO: rename the cvars
3 REGISTER_MUTATOR(weaponarena_random, true);
4
5 MUTATOR_HOOKFUNCTION(weaponarena_random, PlayerSpawn) {
6     SELFPARAM();
7     if (!g_weaponarena_random) return;
8     if (g_weaponarena_random_with_blaster) this.weapons &= ~WEPSET(BLASTER);
9     W_RandomWeapons(this, g_weaponarena_random);
10     if (g_weaponarena_random_with_blaster) this.weapons |= WEPSET(BLASTER);
11 }
12
13 #endif