return W_FixWeaponOrder(order, 1);
}
-void W_RandomWeapons(entity e, int n)
+WepSet W_RandomWeapons(entity e, WepSet remaining, int n)
{
-#ifdef SVQC
- WepSet remaining = STAT(WEAPONS, e);
-#else
- WepSet remaining = e.weapons;
-#endif
WepSet result = '0 0 0';
for (int j = 0; j < n; ++j)
{
result |= WepSet_FromWeapon(w);
remaining &= ~WepSet_FromWeapon(w);
}
-#ifdef SVQC
- STAT(WEAPONS, e) = result;
-#else
- e.weapons = result;
-#endif
+ return result;
}
string GetAmmoPicture(int ammotype)