2006-01-01 00:37:52 +00:00
|
|
|
|
|
2006-01-08 21:40:47 +00:00
|
|
|
|
void(entity to, float iid, float amount) AddNonStackable =
|
2006-01-07 22:28:18 +00:00
|
|
|
|
{
|
|
|
|
|
local float slot;
|
|
|
|
|
|
2006-01-09 02:52:18 +00:00
|
|
|
|
slot = SlotOfItem(to, iid);
|
|
|
|
|
if (!slot)
|
|
|
|
|
slot = FindSuitableEmptySlot(to, iid);
|
2006-01-07 22:28:18 +00:00
|
|
|
|
if (slot)
|
2006-01-08 21:40:47 +00:00
|
|
|
|
SetItemSlot(to, slot, SlotVal(iid, amount));
|
2006-01-07 22:28:18 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-01-08 21:40:47 +00:00
|
|
|
|
void(entity to, float iid, float amount) AddStackable =
|
2006-01-05 00:45:36 +00:00
|
|
|
|
{
|
|
|
|
|
local float slot;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
|
2006-01-09 02:52:18 +00:00
|
|
|
|
slot = FindSuitableEmptySlot(to, iid);
|
2006-01-05 00:45:36 +00:00
|
|
|
|
if (slot)
|
2006-01-08 21:40:47 +00:00
|
|
|
|
SetItemSlot(to, slot, SlotVal(iid, amount + ToStatus(ItemInSlot(to, slot))));
|
2006-01-05 00:45:36 +00:00
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
2006-01-06 01:52:52 +00:00
|
|
|
|
void(float cost, float iid) BuyStackable =
|
2006-01-01 21:33:21 +00:00
|
|
|
|
{
|
2006-01-03 04:02:08 +00:00
|
|
|
|
local string z;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
if (self.ammo_shells < cost)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sound (self, CHAN_BODY, "misc/item1.wav", 1, ATTN_NORM);
|
|
|
|
|
self.ammo_shells = self.ammo_shells - cost;
|
2006-01-03 04:02:08 +00:00
|
|
|
|
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sprint(self, PRINT_HIGH, "you bought a ");
|
2006-01-03 04:02:08 +00:00
|
|
|
|
|
2006-01-06 01:52:52 +00:00
|
|
|
|
z = GetItemName(iid);
|
2006-01-03 04:02:08 +00:00
|
|
|
|
sprint(self, PRINT_HIGH, z);
|
|
|
|
|
sprint(self, PRINT_HIGH, "\n");
|
|
|
|
|
|
|
|
|
|
//put grenade in inventory
|
|
|
|
|
//finds existing grenades, otherwise, empty slot
|
|
|
|
|
|
2006-01-13 03:41:57 +00:00
|
|
|
|
TryGiveStackable(self, iid, 1);
|
2006-01-03 04:02:08 +00:00
|
|
|
|
};
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
void() BuyBandages =
|
|
|
|
|
{
|
|
|
|
|
local string y;
|
|
|
|
|
|
|
|
|
|
if (self.ammo_shells < 2)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.class != 2)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "not a medic.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.bandages >= 50)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "too many bandages.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sound (self, CHAN_BODY, "misc/item1.wav", 1, ATTN_NORM);
|
|
|
|
|
self.bandages = self.bandages + 25;
|
|
|
|
|
self.ammo_shells = self.ammo_shells - 2;
|
|
|
|
|
if (self.bandages > 50)
|
|
|
|
|
self.bandages = 50;
|
|
|
|
|
y = ftos(self.bandages);
|
|
|
|
|
sprint(self, PRINT_HIGH, "you now have ");
|
|
|
|
|
sprint(self, PRINT_HIGH, y);
|
|
|
|
|
sprint(self, PRINT_HIGH, "/50 bandages.\n");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void(float cost, float type) BuyChem =
|
|
|
|
|
{
|
2006-01-05 00:45:36 +00:00
|
|
|
|
local string chemname;
|
|
|
|
|
local float max;
|
|
|
|
|
local float alreadygot;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
if (self.ammo_shells < cost)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-05 00:45:36 +00:00
|
|
|
|
if (type != IID_CHEM_STIMPACK && self.class != 1)
|
2006-01-01 21:33:21 +00:00
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "not a medic.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.equipment == 1)
|
2006-01-05 00:45:36 +00:00
|
|
|
|
max = 4;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
else
|
2006-01-05 00:45:36 +00:00
|
|
|
|
max = 2;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
2006-01-09 02:52:18 +00:00
|
|
|
|
if (type == IID_CHEM_MEDICALBAG)
|
|
|
|
|
max = 50;
|
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
|
alreadygot = TotalQuantity(self, type);
|
|
|
|
|
if (alreadygot >= max)
|
2006-01-01 21:33:21 +00:00
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "you can't hold any more chems.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sound (self, CHAN_BODY, "misc/item1.wav", 1, ATTN_NORM);
|
|
|
|
|
self.ammo_shells = self.ammo_shells - cost;
|
2006-01-05 00:45:36 +00:00
|
|
|
|
chemname = GetItemName(type);
|
|
|
|
|
sprint(self, PRINT_HIGH, chemname);
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sprint(self, PRINT_HIGH, " purchased.\n");
|
2006-01-13 03:41:57 +00:00
|
|
|
|
TryGiveStackable(self, type, 1);
|
2006-01-01 21:33:21 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void(string type) ChangeAmmo =
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (self.ammo_shells < 1)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sprint(self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sound (self, CHAN_BODY, "misc/item1.wav", 1, ATTN_NORM);
|
|
|
|
|
|
|
|
|
|
if (self.current_slot == 1)
|
|
|
|
|
self.ammotype1 = type;
|
|
|
|
|
if (self.current_slot == 2)
|
|
|
|
|
self.ammotype2 = type;
|
|
|
|
|
};
|
|
|
|
|
|
2006-01-12 01:55:21 +00:00
|
|
|
|
void() SetWeaponModel;
|
|
|
|
|
|
2006-01-03 08:05:22 +00:00
|
|
|
|
void (float wt, float cost, float wid) BuyWeapon =
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-05 00:45:36 +00:00
|
|
|
|
local string itname;
|
|
|
|
|
local float ammotype, ammocount;
|
|
|
|
|
local float slotnum;
|
|
|
|
|
local float curweap;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
2006-01-03 08:05:22 +00:00
|
|
|
|
if (self.ammo_shells < cost)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
2006-01-03 08:05:22 +00:00
|
|
|
|
sound (self, CHAN_BODY, "misc/menu3.wav", 1, ATTN_IDLE);
|
|
|
|
|
sprint(self, PRINT_HIGH, "not enough money.\n");
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-03 08:05:22 +00:00
|
|
|
|
|
|
|
|
|
sound (self, CHAN_BODY, "misc/item1.wav", 1, ATTN_NORM);
|
2006-01-01 21:33:21 +00:00
|
|
|
|
self.ammo_shells = self.ammo_shells - cost;
|
2006-01-03 08:05:22 +00:00
|
|
|
|
|
|
|
|
|
sprint(self, PRINT_HIGH, "you bought ");
|
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
|
itname = GetItemName(wid);
|
|
|
|
|
sprint(self, PRINT_HIGH, itname);
|
2006-01-03 08:05:22 +00:00
|
|
|
|
sprint(self, PRINT_HIGH, ".\n");
|
|
|
|
|
|
|
|
|
|
//put new weapon in current slot
|
2006-01-05 00:45:36 +00:00
|
|
|
|
//put old weapon in empty slot (but not armor slot!)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
//otherwise, drop it.
|
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
|
curweap = ItemInSlot(self, self.current_slot);
|
|
|
|
|
slotnum = FindSuitableEmptySlot(self, ToIID(curweap));
|
2006-01-03 08:05:22 +00:00
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
|
if (slotnum == 0)//no more room
|
2006-01-03 08:05:22 +00:00
|
|
|
|
DropFromSlot (self.current_slot, 1, 0);
|
|
|
|
|
else //found a place to stick old weapon
|
2006-01-05 00:45:36 +00:00
|
|
|
|
SetItemSlot(self, slotnum, curweap);
|
2006-01-03 08:05:22 +00:00
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
|
ammocount = WeaponMagQuant(wid);//load weapon with full ammo (may be changed)
|
|
|
|
|
SetItemSlot(self, self.current_slot, SlotVal(wid, ammocount));
|
2006-01-03 08:05:22 +00:00
|
|
|
|
|
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
|
ammotype = WeaponAmmoType(wid);//load weapon with full ammo (may be changed)
|
2006-01-13 03:41:57 +00:00
|
|
|
|
TryGiveStackable(self, ammotype, ammocount*3);
|
2006-01-12 01:55:21 +00:00
|
|
|
|
|
|
|
|
|
SetWeaponModel();
|
2006-01-01 00:37:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-01-03 08:05:22 +00:00
|
|
|
|
|
2006-01-01 21:33:21 +00:00
|
|
|
|
void (float cost, float item) BuyPerk =
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.frags < cost)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
sprint (self, PRINT_HIGH, "not enough kills\n");
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
sprint (self, PRINT_HIGH, "ok, ability gained.\n");
|
|
|
|
|
self.perk = item;
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
};
|
|
|
|
|
|
2006-01-03 04:02:08 +00:00
|
|
|
|
/*
|
2006-01-01 21:33:21 +00:00
|
|
|
|
void (float wt, float cost, float item) BuyArmor =
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-03 04:02:08 +00:00
|
|
|
|
|
2006-01-01 00:37:52 +00:00
|
|
|
|
local float curr;
|
|
|
|
|
local float lbs;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
local string x;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
|
|
|
|
|
lbs = weightx ();
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (((item >= TE_LIGHTNING2) && (self.protect >= SPAWNFLAG_SUPERSPIKE)))
|
|
|
|
|
{
|
|
|
|
|
sprint (self, PRINT_HIGH, "remove your hardware before buying\nany kind of advanced armor!\ntoo much interference otherwise.");
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 00:37:52 +00:00
|
|
|
|
if ((cost > self.ammo_shells))
|
|
|
|
|
{
|
|
|
|
|
sprint (self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-02 03:58:02 +00:00
|
|
|
|
if ((((lbs + wt) - GetItemsWeight(self.islot3)) > self.max_weight))
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
sprint (self, PRINT_HIGH, "you can't carry that much.\n");
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sound (self, CHAN_BODY, "misc/item2.wav", 1, ATTN_NORM);
|
2006-01-01 00:37:52 +00:00
|
|
|
|
self.ammo_shells = (self.ammo_shells - cost);
|
2006-01-02 03:58:02 +00:00
|
|
|
|
// self.armor_weight = wt;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
self.armor = item;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
x = GetArmorName();
|
|
|
|
|
sprint (self, PRINT_HIGH, x);
|
|
|
|
|
sprint (self, PRINT_HIGH, " purchased.\n");
|
|
|
|
|
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
2006-01-03 04:02:08 +00:00
|
|
|
|
|
|
|
|
|
};*/
|
|
|
|
|
|
|
|
|
|
void (float wt, float cost, float item) BuyArmor =
|
|
|
|
|
{
|
|
|
|
|
local string z;
|
2006-01-08 21:40:47 +00:00
|
|
|
|
local float x;
|
2006-01-03 04:02:08 +00:00
|
|
|
|
|
|
|
|
|
if (self.ammo_shells < cost)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
sound (self, CHAN_BODY, "misc/menu3.wav", 1, ATTN_IDLE);
|
|
|
|
|
sprint(self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sound (self, CHAN_BODY, "misc/item1.wav", 1, ATTN_NORM);
|
|
|
|
|
self.ammo_shells = self.ammo_shells - cost;
|
|
|
|
|
|
|
|
|
|
sprint(self, PRINT_HIGH, "you bought ");
|
|
|
|
|
|
|
|
|
|
z = GetItemName(item);
|
|
|
|
|
sprint(self, PRINT_HIGH, z);
|
|
|
|
|
sprint(self, PRINT_HIGH, ".\n");
|
|
|
|
|
|
|
|
|
|
//put new armor in armor slot
|
|
|
|
|
//put old armor in inventory
|
|
|
|
|
|
|
|
|
|
x = FindEmptySlot(self);
|
|
|
|
|
|
|
|
|
|
if (x == 0)
|
|
|
|
|
sprint(self, 2, "no more room. giving armor to merchant.\n");
|
|
|
|
|
|
|
|
|
|
if (x != 0) //found a place to stick old armor
|
|
|
|
|
SetItemSlot(self, x, SlotVal(self.islot3, 1));
|
|
|
|
|
|
|
|
|
|
SetItemSlot(self, 3, SlotVal(item, 1));
|
2006-01-01 00:37:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-01-01 21:33:21 +00:00
|
|
|
|
void (float cost, float item) BuyEquipment =
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
local float lbs;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
local string x;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
|
|
|
|
|
lbs = weightx ();
|
|
|
|
|
if ((cost > self.ammo_shells))
|
|
|
|
|
{
|
|
|
|
|
sprint (self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sound (self, CHAN_BODY, "items/item1.wav", 1, ATTN_NORM);
|
2006-01-01 00:37:52 +00:00
|
|
|
|
self.equipment = item;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
x = GetEquipmentName();
|
|
|
|
|
sprint (self, PRINT_HIGH, x);
|
|
|
|
|
sprint (self, PRINT_HIGH, " purchased.\n");
|
|
|
|
|
self.ammo_shells = (self.ammo_shells - cost);
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
};
|
|
|
|
|
|
2006-01-01 21:33:21 +00:00
|
|
|
|
void (float cost, float item) BuyProtect =
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
local string x;
|
|
|
|
|
|
2006-01-02 03:58:02 +00:00
|
|
|
|
/*
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if ((self.armor >= TE_LIGHTNING2))
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
sprint (self, PRINT_HIGH, "too many electronics in\nyour currently worn armor!");
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-02 03:58:02 +00:00
|
|
|
|
*/
|
2006-01-01 00:37:52 +00:00
|
|
|
|
if ((cost > self.ammo_shells))
|
|
|
|
|
{
|
|
|
|
|
sprint (self, PRINT_HIGH, "not enough money.\n");
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sound (self, CHAN_BODY, "items/item1.wav", 1, ATTN_NORM);
|
2006-01-01 00:37:52 +00:00
|
|
|
|
self.ammo_shells = (self.ammo_shells - cost);
|
|
|
|
|
self.protect = item;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
x = GetProtectName();
|
|
|
|
|
sprint (self, PRINT_HIGH, x);
|
|
|
|
|
sprint (self, PRINT_HIGH, " purchased.\n");
|
|
|
|
|
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
};
|
|
|
|
|
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
2006-01-01 00:37:52 +00:00
|
|
|
|
float (float input) overweight =
|
|
|
|
|
{
|
2006-01-02 03:58:02 +00:00
|
|
|
|
local float tmp;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
local float max;
|
|
|
|
|
|
2006-01-02 03:58:02 +00:00
|
|
|
|
tmp = input + self.weight;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
max = self.max_weight;
|
2006-01-02 03:58:02 +00:00
|
|
|
|
if (self.class == TE_LIGHTNING2)
|
2006-01-01 21:33:21 +00:00
|
|
|
|
{
|
2006-01-02 03:58:02 +00:00
|
|
|
|
max = max + SPAWNFLAG_LASER;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
}
|
2006-01-02 03:58:02 +00:00
|
|
|
|
if (self.perk == TE_LAVASPLASH)
|
2006-01-01 21:33:21 +00:00
|
|
|
|
{
|
|
|
|
|
return (FALSE);
|
|
|
|
|
}
|
2006-01-02 03:58:02 +00:00
|
|
|
|
if (tmp > max)
|
2006-01-01 21:33:21 +00:00
|
|
|
|
{
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return (TRUE);
|
2006-01-01 21:33:21 +00:00
|
|
|
|
}
|
2006-01-01 00:37:52 +00:00
|
|
|
|
else
|
2006-01-01 21:33:21 +00:00
|
|
|
|
{
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return (FALSE);
|
2006-01-01 21:33:21 +00:00
|
|
|
|
}
|
2006-01-01 00:37:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void () W_GetClass =
|
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if ((self.currentmenu == "select_skill"))
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
sound (self, CHAN_WEAPON, "buttons/switch02.wav", TRUE, ATTN_NORM);
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 1)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
self.max_health = 80;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
self.class = 1;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nMedic - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if ((self.impulse == 2))
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
self.max_health = 70;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
self.class = 2;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nAssassin - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
self.max_health = 100;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
self.class = 3;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nSoldiier - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
|
|
|
|
self.max_health = 80;
|
|
|
|
|
self.currentmenu = "none";
|
2006-01-01 21:33:21 +00:00
|
|
|
|
self.class = 4;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nScientist - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse > 4)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
2006-01-01 00:37:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
void() W_PlayerMenu =
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.currentmenu == "none")
|
|
|
|
|
return;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.currentmenu == "shop_list")
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
self.currentmenu = "shop_trait";
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
self.currentmenu = "shop_perk";
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
self.currentmenu = "shop_armor";
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
self.currentmenu = "shop_protect";
|
|
|
|
|
if (self.impulse == 5)
|
|
|
|
|
self.currentmenu = "shop_weapons";
|
|
|
|
|
if (self.impulse == 6)
|
|
|
|
|
self.currentmenu = "shop_equipment";
|
|
|
|
|
if (self.impulse == 7)
|
|
|
|
|
self.currentmenu = "shop_chems";
|
|
|
|
|
if (self.impulse == 8)
|
|
|
|
|
self.currentmenu = "shop_other";
|
|
|
|
|
|
|
|
|
|
DisplayMenu();
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
if (self.currentmenu == "shop_trait")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
self.currentmenu = "shop_trait";
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
self.currentmenu = "shop_perk";
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
self.currentmenu = "shop_armor";
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
self.currentmenu = "shop_protect";
|
|
|
|
|
if (self.impulse == 5)
|
|
|
|
|
self.currentmenu = "shop_weapons";
|
|
|
|
|
if (self.impulse == 6)
|
|
|
|
|
self.currentmenu = "shop_equipment";
|
|
|
|
|
if (self.impulse == 7)
|
|
|
|
|
self.currentmenu = "shop_chems";
|
|
|
|
|
if (self.impulse == 8)
|
|
|
|
|
self.currentmenu = "shop_other";
|
|
|
|
|
|
|
|
|
|
DisplayMenu();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_perk")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
BuyPerk(1, 1);
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
BuyPerk(1, 2);
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
BuyPerk(1, 3);
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
BuyPerk(2, 4);
|
|
|
|
|
if (self.impulse == 5)
|
|
|
|
|
BuyPerk(2, 5);
|
|
|
|
|
if (self.impulse == 6)
|
|
|
|
|
BuyPerk(2, 6);
|
|
|
|
|
if (self.impulse == 7)
|
|
|
|
|
BuyPerk(2, 7);
|
|
|
|
|
if (self.impulse == 8)
|
|
|
|
|
BuyPerk(3, 8);
|
|
|
|
|
if (self.impulse == 9)
|
|
|
|
|
BuyPerk(4, 9);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_armor")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(3, 03, IID_ARM_SHIRT); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(7, 05, IID_ARM_LEATHER); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(9, 10, IID_ARM_KEVLAR); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(15, 12, IID_ARM_METAL); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 5)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(12, 25, IID_ARM_COMBAT); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 6)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(17, 35, IID_ARM_BROTHERHOOD); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 7)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(5, 45, IID_ARM_FORCE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 8)
|
2006-01-03 04:02:08 +00:00
|
|
|
|
BuyArmor(20, 55, IID_ARM_LPOWER); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_protect")
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
BuyProtect(20, 1);
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
BuyProtect(20, 2);
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
BuyProtect(30, 3);
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
BuyProtect(30, 4);
|
|
|
|
|
if (self.impulse == 5)
|
|
|
|
|
BuyProtect(40, 5);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_weapons")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
self.currentmenu = "shop_melee";
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
self.currentmenu = "shop_thrown";
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
self.currentmenu = "shop_pistols";
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
self.currentmenu = "shop_shotguns";
|
|
|
|
|
if (self.impulse == 5)
|
|
|
|
|
self.currentmenu = "shop_rifles";
|
2006-01-12 02:12:31 +00:00
|
|
|
|
if (self.impulse == 6)
|
|
|
|
|
self.currentmenu = "shop_heavy";
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
DisplayMenu();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_melee")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(1, 1, IID_WP_KNIFE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(6, 3, IID_WP_AXE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(3, 10, IID_WP_VIBROBLADE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(10, 15, IID_WP_POWERAXE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_thrown")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-06 01:52:52 +00:00
|
|
|
|
BuyStackable(3, IID_GREN_SMOKE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-06 01:52:52 +00:00
|
|
|
|
BuyStackable(4, IID_GREN_FRAG); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-06 01:52:52 +00:00
|
|
|
|
BuyStackable(5, IID_GREN_EMP); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-06 01:52:52 +00:00
|
|
|
|
BuyStackable(6, IID_GREN_FLASH); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_pistols")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(1, 5, IID_WP_USP); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(2, 7, IID_WP_DEAGLE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(2, 9, IID_WP_NEEDLER); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(3, 14, IID_WP_MP9); //weight, cost, item
|
2006-01-02 00:14:21 +00:00
|
|
|
|
if (self.impulse == 5)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(3, 17, IID_WP_MP7); //weight, cost, item
|
2006-01-02 00:14:21 +00:00
|
|
|
|
if (self.impulse == 6)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(2, 21, IID_WP_ALIENBLASTER); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_shotguns")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-12 01:55:21 +00:00
|
|
|
|
BuyWeapon(3, 4, IID_WP_PIPERIFLE); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-12 01:55:21 +00:00
|
|
|
|
BuyWeapon(4, 8, IID_WP_WINCHESTER); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(5, 12, IID_WP_MOSSBERG); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(7, 34, IID_WP_JACKHAMMER); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.currentmenu == "shop_rifles")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-06 02:54:07 +00:00
|
|
|
|
BuyWeapon(3, 11, IID_WP_RANGEMASTER); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(4, 21, IID_WP_AK112); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(5, 25, IID_WP_AK74); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(6, 28, IID_WP_DKS1); //weight, cost, item
|
2006-01-02 05:40:11 +00:00
|
|
|
|
if (self.impulse == 5)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(5, 30, IID_WP_MOONLIGHT); //weight, cost, item
|
2006-01-02 05:40:11 +00:00
|
|
|
|
if (self.impulse == 6)
|
2006-01-03 08:05:22 +00:00
|
|
|
|
BuyWeapon(4, 32, IID_WP_SA80); //weight, cost, item
|
2006-01-02 05:40:11 +00:00
|
|
|
|
if (self.impulse == 7)
|
2006-01-12 01:55:21 +00:00
|
|
|
|
BuyWeapon(9, 25, IID_WP_FNFAL); //weight, cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-12 02:12:31 +00:00
|
|
|
|
if (self.currentmenu == "shop_heavy")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
BuyWeapon(10, 30, IID_WP_ROCKETLAUNCHER);//weight, cost, item
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
BuyWeapon(7, 32, IID_WP_GAUSERIFLE); //weight, cost, item
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
BuyWeapon(12, 45, IID_WP_PULSERIFLE); //weight, cost, item
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
if (self.currentmenu == "shop_equipment")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
BuyEquipment(20, 1); //cost, item
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
BuyEquipment(20, 2); //cost, item
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
BuyEquipment(20, 3); //cost, item
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
BuyEquipment(20, 4); //cost, item
|
|
|
|
|
if (self.impulse == 5)
|
|
|
|
|
BuyEquipment(20, 5); //cost, item
|
|
|
|
|
if (self.impulse == 6)
|
|
|
|
|
BuyEquipment(20, 6); //cost, item
|
|
|
|
|
if (self.impulse == 7)
|
|
|
|
|
BuyEquipment(20, 7); //cost, item
|
|
|
|
|
if (self.impulse == 8)
|
|
|
|
|
BuyEquipment(20, 8); //cost, item
|
|
|
|
|
if (self.impulse == 9)
|
|
|
|
|
BuyEquipment(20, 9); //cost, item
|
|
|
|
|
if (self.impulse == 10)
|
|
|
|
|
BuyEquipment(20, 10); //cost, item
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (self.currentmenu == "shop_chems")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-05 00:45:36 +00:00
|
|
|
|
BuyChem(3, IID_CHEM_STIMPACK); //cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-05 00:45:36 +00:00
|
|
|
|
BuyChem(5, IID_CHEM_MEDICALBAG); //cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 3)
|
2006-01-05 00:45:36 +00:00
|
|
|
|
BuyChem(10, IID_CHEM_SUPERSTIM); //cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 4)
|
2006-01-05 00:45:36 +00:00
|
|
|
|
BuyChem(12, IID_CHEM_ADRENALINE); //cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 5)
|
2006-01-05 00:45:36 +00:00
|
|
|
|
BuyChem(18, IID_CHEM_PSYCHO); //cost, item
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 6)
|
2006-01-05 00:45:36 +00:00
|
|
|
|
BuyChem(21, IID_CHEM_BESERK); //cost, item
|
2006-01-06 01:52:52 +00:00
|
|
|
|
return;
|
2006-01-01 21:33:21 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (self.currentmenu == "shop_other")
|
2006-01-06 01:52:52 +00:00
|
|
|
|
{
|
2006-01-09 02:52:18 +00:00
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
BuyChem(5, IID_CHEM_MEDICALBAG);
|
2006-01-06 01:52:52 +00:00
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
BuyStackable(20, IID_BUILD_MRAMMO);
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
BuyStackable(20, IID_BUILD_AUTODOC);
|
|
|
|
|
if (self.impulse == 5)
|
|
|
|
|
BuyStackable(20, IID_BUILD_SHIELDGEN);
|
2006-01-15 01:38:45 +00:00
|
|
|
|
if (self.impulse == 6)
|
|
|
|
|
BuyStackable(20, IID_BUILD_TTURRET);
|
2006-01-01 21:33:21 +00:00
|
|
|
|
return;
|
2006-01-06 01:52:52 +00:00
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (self.currentmenu == "select_team")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
bprint(2, self.netname);
|
|
|
|
|
bprint(2, " has joined the rangers.\n");
|
|
|
|
|
self.currentmenu = "confirm_team";
|
|
|
|
|
DisplayMenu();
|
|
|
|
|
self.team = 1;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.impulse == 2)
|
|
|
|
|
{
|
|
|
|
|
bprint(2, self.netname);
|
|
|
|
|
bprint(2, " has joined the raiders.\n");
|
|
|
|
|
self.currentmenu = "confirm_team";
|
|
|
|
|
DisplayMenu();
|
|
|
|
|
self.team = 2;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (self.currentmenu == "select_skill")
|
|
|
|
|
{
|
|
|
|
|
sound (self, CHAN_WEAPON, "buttons/switch02.wav", TRUE, ATTN_NORM);
|
|
|
|
|
|
|
|
|
|
if (self.impulse == 1)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
self.max_health = 80;
|
|
|
|
|
self.class = 1;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nMedic - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if ((self.impulse == 2))
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
self.max_health = 70;
|
|
|
|
|
self.class = 2;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nAssassin - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.impulse == 3)
|
|
|
|
|
{
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
self.max_health = 100;
|
|
|
|
|
self.class = 3;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nSoldiier - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (self.impulse == 4)
|
|
|
|
|
{
|
|
|
|
|
self.max_health = 80;
|
|
|
|
|
self.currentmenu = "none";
|
|
|
|
|
self.class = 4;
|
|
|
|
|
self.currentmenu = "confirm_skill";
|
|
|
|
|
centerprint (self, "<EFBFBD>your class will be<62>\n\nScientist - OK?\n<EFBFBD>1<EFBFBD> Yes \n<EFBFBD>2<EFBFBD> No \n");
|
|
|
|
|
self.ghost = 0;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (self.currentmenu == "confirm_team")
|
|
|
|
|
{
|
|
|
|
|
if (self.impulse == 1)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sound (self, CHAN_WEAPON, "buttons/switch02.wav", TRUE, ATTN_NORM);
|
|
|
|
|
self.currentmenu = "select_skill";
|
|
|
|
|
DisplayMenu();
|
|
|
|
|
self.impulse = 0;
|
|
|
|
|
return;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sound (self, CHAN_WEAPON, "buttons/switch02.wav", TRUE, ATTN_NORM);
|
|
|
|
|
self.currentmenu = "select_team";
|
|
|
|
|
DisplayMenu();
|
|
|
|
|
self.impulse = 0;
|
|
|
|
|
self.team = 0;
|
|
|
|
|
return;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.currentmenu == "confirm_skill")
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 1)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sound (self, CHAN_WEAPON, "buttons/switch02.wav", TRUE, ATTN_NORM);
|
|
|
|
|
self.currentmenu = "none";
|
2006-01-09 02:52:18 +00:00
|
|
|
|
centerprint(self, "");
|
2006-01-01 21:33:21 +00:00
|
|
|
|
PutClientInServer();
|
|
|
|
|
self.impulse = 0;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
if (self.impulse == 2)
|
2006-01-01 00:37:52 +00:00
|
|
|
|
{
|
2006-01-01 21:33:21 +00:00
|
|
|
|
sound (self, CHAN_WEAPON, "buttons/switch02.wav", TRUE, ATTN_NORM);
|
|
|
|
|
self.currentmenu = "select_skill";
|
|
|
|
|
DisplayMenu();
|
|
|
|
|
self.impulse = 0;
|
|
|
|
|
self.class = 0;
|
|
|
|
|
return;
|
2006-01-01 00:37:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2006-01-01 21:33:21 +00:00
|
|
|
|
|
|
|
|
|
};
|