mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 05:11:35 +00:00
ec52b59f7b
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1759 fc73d0e0-1445-4013-8a0c-d673dee63da5
118 lines
No EOL
2 KiB
C++
118 lines
No EOL
2 KiB
C++
|
|
|
|
|
|
|
|
string () GetEquipmentName =
|
|
{
|
|
local string name;
|
|
local float slot;
|
|
|
|
slot = self.equipment;
|
|
|
|
if (slot == 0)
|
|
name = "none";
|
|
else if (slot == 1)
|
|
name = "medic's bag";
|
|
else if (slot == 2)
|
|
name = "security alarm";
|
|
else if (slot == 3)
|
|
name = "remote camera";
|
|
else if (slot == 4)
|
|
name = "belt pouch";
|
|
else if (slot == 5)
|
|
name = "backpack";
|
|
else if (slot == 6)
|
|
name = "toolkit mark ii";
|
|
else if (slot == 7)
|
|
name = "climbing gear";
|
|
else if (slot == 8)
|
|
name = "enhanced battery";
|
|
else if (slot == 9)
|
|
name = "stealth-boy";
|
|
|
|
return name;
|
|
};
|
|
|
|
string () GetProtectName =
|
|
{
|
|
local string name;
|
|
local float slot;
|
|
|
|
slot = self.protect;
|
|
|
|
if (slot == 0)
|
|
name = "none";
|
|
if (slot == 1)
|
|
name = "";
|
|
else if (slot == 2)
|
|
name = "sacred talisman";
|
|
else if (slot == 3)
|
|
name = "forcefield ring";
|
|
else if (slot == 4)
|
|
name = "";
|
|
else if (slot == 5)
|
|
name = "";
|
|
|
|
return name;
|
|
};
|
|
|
|
string () GetPerkName =
|
|
{
|
|
local string name;
|
|
local float slot;
|
|
|
|
slot = self.perk;
|
|
|
|
if (slot == 0)
|
|
name = "none";
|
|
if (slot == 1)
|
|
name = "medic's bag";
|
|
else if (slot == 2)
|
|
name = "security alarm";
|
|
else if (slot == 3)
|
|
name = "remote camera";
|
|
else if (slot == 4)
|
|
name = "belt pouch";
|
|
else if (slot == 5)
|
|
name = "backpack";
|
|
else if (slot == 6)
|
|
name = "toolkit mark ii";
|
|
else if (slot == 7)
|
|
name = "climbing gear";
|
|
else if (slot == 8)
|
|
name = "enhanced battery";
|
|
else if (slot == 9)
|
|
name = "stealth-boy";
|
|
return name;
|
|
};
|
|
|
|
string () GetTraitName =
|
|
{
|
|
local string name;
|
|
local float slot;
|
|
|
|
slot = self.trait;
|
|
|
|
if (slot == 0)
|
|
name = "none";
|
|
else if (slot == 1)
|
|
name = "medic's bag";
|
|
else if (slot == 2)
|
|
name = "security alarm";
|
|
else if (slot == 3)
|
|
name = "remote camera";
|
|
else if (slot == 4)
|
|
name = "belt pouch";
|
|
else if (slot == 5)
|
|
name = "backpack";
|
|
else if (slot == 6)
|
|
name = "toolkit mark ii";
|
|
else if (slot == 7)
|
|
name = "climbing gear";
|
|
else if (slot == 8)
|
|
name = "enhanced battery";
|
|
else if (slot == 9)
|
|
name = "stealth-boy";
|
|
|
|
return name;
|
|
}; |