]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mutators/mutator/weaponarena_random/weaponarena_random.qc
Merge branch 'terencehill/quickmenu_file_example' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / weaponarena_random / 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