Added random start weapons.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / client.qc
index b0eb75a..43fd0be 100644 (file)
@@ -546,6 +546,10 @@ void PutPlayerInServer(entity this)
                this.health = start_health;
                this.armorvalue = start_armorvalue;
                this.weapons = start_weapons;
+               GivePlayerRandomWeapons(this, num_random_start_weapons,
+                       cvar_string("g_random_start_weapons"), random_start_shells,
+                       random_start_bullets, random_start_rockets, random_start_cells,
+                       random_start_plasma);
        }
        SetSpectatee_status(this, 0);