void() classpick =
{
if (self.classtype == 0)
{
self.classtype = 1; //the variable is now set to the old guy class
showclass();
self.ammo_rockets == 50;
self.items == self.items |
IT_AXE |
IT_SHOTGUN |
IT_ROCKET_LAUNCHER;
self.weapon == IT_ROCKET_LAUNCHER;
}
else if (self.classtype == 1)
{
self.classtype = 0; //the variable is now set to the Quake guy class
showclass();
self.ammo_cells == 100;
self.items == self.items |
IT_AXE |
IT_SHOTGUN |
IT_LIGHTNING;
self.weapon == IT_LIGHTNING;
}
};