2006-01-02 02:45:34 +00:00
|
|
|
float IID_NONE = 0;
|
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
#define IsMelee(iid) (iid == IID_NONE || (iid >= IID_WP_WRENCH && iid <= IID_WP_POWERAXE))
|
|
|
|
#define IsGrenade(iid) (iid >= IID_GREN_FRAG && iid <= IID_GREN_STUN)
|
|
|
|
#define IsRanged(iid) (iid >= IID_WP_GLOCK && iid <= IID_WP_ACR)
|
2006-01-02 02:45:34 +00:00
|
|
|
|
2009-11-07 10:41:46 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
//weapons with ammo, things with a toggle state
|
|
|
|
#define NotStackable(iid) (IsRanged(iid))
|
|
|
|
|
|
|
|
//the ammoless weapons
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_WP_WRENCH = 399;
|
|
|
|
float IID_WP_KNIFE = 400;
|
2009-11-09 04:48:58 +00:00
|
|
|
float IID_WP_SLEDGE = 401;
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_WP_SPEAR = 402;
|
|
|
|
float IID_WP_POWERAXE = 403;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
//the ammoed weapons
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_WP_GLOCK = 404;
|
2006-01-02 02:45:34 +00:00
|
|
|
float IID_WP_USP = 405;
|
|
|
|
float IID_WP_DEAGLE = 406;
|
|
|
|
float IID_WP_NEEDLER = 407;
|
|
|
|
float IID_WP_ALIENBLASTER = 408;
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_WP_WINCHESTER = 409;
|
|
|
|
float IID_WP_MOSSBERG = 410;
|
|
|
|
float IID_WP_JACKHAMMER = 411;
|
2009-11-09 04:48:58 +00:00
|
|
|
float IID_WP_GREASEGUN = 412;
|
|
|
|
float IID_WP_MP9 = 413;
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_WP_RANGEMASTER = 414;
|
|
|
|
float IID_WP_AK112 = 415;
|
|
|
|
float IID_WP_AK74 = 416;
|
|
|
|
float IID_WP_DKS1 = 417;
|
|
|
|
float IID_WP_MOONLIGHT = 418;
|
|
|
|
float IID_WP_G11 = 419;
|
|
|
|
float IID_WP_GLOCK_S = 420;
|
|
|
|
float IID_WP_USP_S = 421;
|
2009-11-09 04:48:58 +00:00
|
|
|
float IID_WP_GREASEGUN_S = 422;
|
|
|
|
float IID_WP_MP9_S = 423;
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_WP_PIPERIFLE = 424;
|
|
|
|
float IID_WP_PIPERIFLE_R = 425;
|
|
|
|
float IID_WP_PIPERIFLE_S = 426;
|
|
|
|
float IID_WP_PIPERIFLE_SCOPE = 427;
|
|
|
|
float IID_WP_PIPERIFLE_SCOPE_S = 428;
|
|
|
|
float IID_WP_PIPERIFLE_SCOPE_R = 429;
|
|
|
|
float IID_WP_PIPERIFLE_SCOPE_S_R = 430;
|
|
|
|
float IID_WP_PIPERIFLE_S_R = 431;
|
|
|
|
float IID_WP_DEAGLE_M = 432;
|
|
|
|
float IID_WP_AK112_M = 433;
|
|
|
|
|
|
|
|
float IID_WP_GAUSERIFLE = 434; //2mm EC
|
|
|
|
float IID_WP_PULSERIFLE = 435;
|
|
|
|
float IID_WP_PLASMACARBINE = 436;
|
|
|
|
float IID_WP_TURBOPLASMA = 437;
|
|
|
|
float IID_WP_FNFAL = 438; //.308 AP
|
|
|
|
float IID_WP_ROCKETLAUNCHER = 439;
|
|
|
|
float IID_WP_LASERGATLING = 440;
|
|
|
|
float IID_WP_DKS1_S = 441;
|
|
|
|
float IID_WP_RANGEMASTER_SCOPE = 442;
|
|
|
|
float IID_WP_AK47 = 443;
|
|
|
|
float IID_WP_ACR = 444;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
//and ammo for those guns
|
|
|
|
float IID_AM_NEEDLER = 507;
|
2006-01-06 02:54:07 +00:00
|
|
|
float IID_AM_10MM = 508; //10mm ammo";
|
|
|
|
float IID_AM_556MM = 509; //"5.56mm ammo";
|
|
|
|
float IID_AM_5MMHIGHVEL = 510; //"5mm high-velocity ammo";
|
|
|
|
float IID_AM_12GAUGESHELLS = 511; //"12-guage shotgun shells";
|
|
|
|
float IID_AM_ENERGYCELL = 512; //"small energy cell";
|
|
|
|
float IID_AM_2MMEC = 513; //12mmec ammo";
|
|
|
|
float IID_AM_762MM = 514; //"7.62mm ammo";
|
|
|
|
float IID_AM_44MAGNUM = 515; //".44 magnum ammo";
|
|
|
|
float IID_AM_45ACP = 516; //".45 ACP ammo";
|
2006-01-12 02:12:31 +00:00
|
|
|
float IID_AM_ROCKET = 517; //"explosive rocket"
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_AM_CASELESS = 518; //caseless
|
|
|
|
float IID_AM_WARSAW = 519; //ak-47 ammo
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
//grenade items
|
|
|
|
float IID_GREN_FRAG = 101;
|
|
|
|
float IID_GREN_EMP = 102;
|
|
|
|
float IID_GREN_SMOKE = 103;
|
|
|
|
float IID_GREN_FLASH = 104;
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_GREN_STUN = 105;
|
|
|
|
float IID_GREN_FLARE = 106;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
//armour
|
2009-11-05 03:40:39 +00:00
|
|
|
#define IsArmor(iid) (iid >= IID_ARM_DESERT && iid <= IID_ARM_LPOWER)
|
|
|
|
float IID_ARM_DESERT = 200;
|
2009-11-09 04:48:58 +00:00
|
|
|
float IID_ARM_LEATHER = 201;
|
|
|
|
float IID_ARM_VANDAL = 202;
|
|
|
|
float IID_ARM_METAL = 203;
|
|
|
|
float IID_ARM_TESLA = 204;
|
2006-01-02 02:45:34 +00:00
|
|
|
float IID_ARM_COMBAT = 205;
|
2009-11-09 04:48:58 +00:00
|
|
|
float IID_ARM_SEVA = 206;
|
2006-01-02 02:45:34 +00:00
|
|
|
float IID_ARM_FORCE = 207;
|
|
|
|
float IID_ARM_LPOWER = 208;
|
|
|
|
|
|
|
|
//stims
|
2006-01-02 22:04:05 +00:00
|
|
|
#define IsChem(iid) (iid >= IID_CHEM_STIMPACK && iid <= IID_CHEM_BESERK)
|
2006-01-02 02:45:34 +00:00
|
|
|
float IID_CHEM_STIMPACK = 301;
|
|
|
|
float IID_CHEM_MEDICALBAG = 302;
|
|
|
|
float IID_CHEM_SUPERSTIM = 303;
|
|
|
|
float IID_CHEM_ADRENALINE = 304;
|
|
|
|
float IID_CHEM_PSYCHO = 305;
|
|
|
|
float IID_CHEM_BESERK = 306;
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_CHEM_RADX = 307;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
float IID_BUILD_MRAMMO = 350;
|
|
|
|
float IID_BUILD_SHIELDGEN = 351;
|
|
|
|
float IID_BUILD_AUTODOC = 352;
|
|
|
|
float IID_BUILD_ROBOFANG = 353;
|
2006-01-15 01:38:45 +00:00
|
|
|
float IID_BUILD_TTURRET = 354;
|
|
|
|
float IID_BUILD_TELEPAD = 355;
|
|
|
|
float IID_BUILD_RTURRET = 356;
|
|
|
|
float IID_BUILD_GTURRET = 357;
|
2006-01-09 02:52:18 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
#define IsEquip(iid) (iid >= IID_EQUIP_MEDIC_BAG && iid <= IID_EQUIP_EXTENDER)
|
|
|
|
#define IsJunk(iid) (iid >= IID_MISC_JUNK && iid <= IID_MISC_XRAYTUBE)
|
|
|
|
|
|
|
|
float IID_EQUIP_MEDIC_BAG = 375;
|
|
|
|
float IID_EQUIP_GOGGLES = 376;
|
2009-11-05 05:16:43 +00:00
|
|
|
float IID_EQUIP_SILENCER = 377;
|
2009-11-05 03:40:39 +00:00
|
|
|
float IID_EQUIP_BELTPOUCH = 378;
|
|
|
|
float IID_EQUIP_BACKPACK = 379;
|
|
|
|
float IID_EQUIP_TOOLKIT = 380;
|
|
|
|
float IID_EQUIP_CLIMBINGGEAR = 381;
|
|
|
|
float IID_EQUIP_BATTERY = 382;
|
|
|
|
float IID_EQUIP_STEALTHBOY = 383;
|
|
|
|
float IID_EQUIP_SPRINTKIT = 384;
|
|
|
|
float IID_EQUIP_HOVERBOOTS = 385;
|
|
|
|
float IID_EQUIP_XRAY = 386;
|
|
|
|
float IID_EQUIP_EXTENDER = 387;
|
|
|
|
|
|
|
|
float IID_MISC_JUNK = 310;
|
|
|
|
float IID_MISC_NUKACOLA = 311;
|
|
|
|
float IID_MISC_CHEMICALS = 312;
|
|
|
|
float IID_MISC_AEROSOL = 313;
|
|
|
|
float IID_MISC_RDXCRYSTAL = 314;
|
|
|
|
float IID_MISC_STEELPIPE = 315;
|
|
|
|
float IID_MISC_DUCKTAPE = 316;
|
|
|
|
float IID_MISC_LCD = 317;
|
|
|
|
float IID_MISC_CIRCUITBOARD = 318;
|
|
|
|
float IID_MISC_COPPERWIRE = 319;
|
|
|
|
float IID_MISC_HMXCOMPOUND = 320;
|
|
|
|
float IID_MISC_GUM = 321;
|
|
|
|
float IID_MISC_XRAYTUBE = 322;
|
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
#define IsShootable(iid) (IsMelee(iid) || IsRanged(iid) || IsGrenade(iid))
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
float(float slotno, float iid) FitsInSlot;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
//slot1 and slot2 are the two hand slots
|
|
|
|
//slot3 is the armour slot.
|
|
|
|
//the other slots are for misilaneous things.
|
|
|
|
|
|
|
|
.float islot1;
|
|
|
|
.float islot2;
|
|
|
|
.float islot3;
|
|
|
|
.float islot4;
|
|
|
|
.float islot5;
|
|
|
|
.float islot6;
|
|
|
|
.float islot7;
|
|
|
|
.float islot8;
|
|
|
|
.float islot9;
|
|
|
|
.float islot10;
|
|
|
|
.float islot11;
|
|
|
|
.float islot12;
|
|
|
|
.float islot13;
|
|
|
|
.float islot14;
|
|
|
|
.float islot15;
|
|
|
|
.float islot16;
|
2009-11-05 03:40:39 +00:00
|
|
|
.float islot17;
|
|
|
|
.float islot18;
|
|
|
|
.float islot19;
|
|
|
|
.float islot20;
|
|
|
|
.float islot21;
|
|
|
|
.float islot22;
|
|
|
|
.float islot23;
|
|
|
|
.float islot24;
|
2009-11-07 10:41:46 +00:00
|
|
|
.float mixslot1;
|
|
|
|
.float mixslot2;
|
2009-11-05 03:40:39 +00:00
|
|
|
.float xslot1;
|
|
|
|
.float xslot2;
|
|
|
|
.float xslot3;
|
|
|
|
.float xslot4;
|
|
|
|
.float xslot5;
|
|
|
|
.float xslot6;
|
|
|
|
.float xslot7;
|
|
|
|
.float xslot8;
|
2009-11-07 03:43:48 +00:00
|
|
|
.float xslot9;
|
|
|
|
.float xslot10;
|
|
|
|
.float xslot11;
|
|
|
|
.float xslot12;
|
|
|
|
.float xslot13;
|
|
|
|
.float xslot14;
|
|
|
|
.float xslot15;
|
|
|
|
.float xslot16;
|
|
|
|
.float xslot17;
|
|
|
|
.float xslot18;
|
|
|
|
.float xslot19;
|
|
|
|
.float xslot20;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
2009-11-07 10:41:46 +00:00
|
|
|
#define MAXSLOTS 26
|
2009-11-05 03:40:39 +00:00
|
|
|
|
2009-11-05 04:20:47 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
#define ToIID(it) floor(it/512)
|
|
|
|
#define ToStatus(it) (it&511)
|
|
|
|
#define SlotVal(iid,st) ((iid*512) | (st&511))
|
|
|
|
|
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
float(entity e, float slotno) ItemInSlot =
|
|
|
|
{
|
|
|
|
if (slotno == 1)
|
|
|
|
return e.islot1;
|
|
|
|
if (slotno == 2)
|
|
|
|
return e.islot2;
|
|
|
|
if (slotno == 3)
|
|
|
|
return e.islot3;
|
|
|
|
if (slotno == 4)
|
|
|
|
return e.islot4;
|
|
|
|
if (slotno == 5)
|
|
|
|
return e.islot5;
|
|
|
|
if (slotno == 6)
|
|
|
|
return e.islot6;
|
|
|
|
if (slotno == 7)
|
|
|
|
return e.islot7;
|
|
|
|
if (slotno == 8)
|
|
|
|
return e.islot8;
|
|
|
|
if (slotno == 9)
|
|
|
|
return e.islot9;
|
|
|
|
if (slotno == 10)
|
|
|
|
return e.islot10;
|
|
|
|
if (slotno == 11)
|
|
|
|
return e.islot11;
|
|
|
|
if (slotno == 12)
|
|
|
|
return e.islot12;
|
|
|
|
if (slotno == 13)
|
|
|
|
return e.islot13;
|
|
|
|
if (slotno == 14)
|
|
|
|
return e.islot14;
|
|
|
|
if (slotno == 15)
|
|
|
|
return e.islot15;
|
|
|
|
if (slotno == 16)
|
|
|
|
return e.islot16;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (slotno == 17)
|
|
|
|
return e.islot17;
|
|
|
|
if (slotno == 18)
|
|
|
|
return e.islot18;
|
|
|
|
if (slotno == 19)
|
|
|
|
return e.islot19;
|
|
|
|
if (slotno == 20)
|
|
|
|
return e.islot20;
|
|
|
|
if (slotno == 21)
|
|
|
|
return e.islot21;
|
|
|
|
if (slotno == 22)
|
|
|
|
return e.islot22;
|
|
|
|
if (slotno == 23)
|
|
|
|
return e.islot23;
|
|
|
|
if (slotno == 24)
|
|
|
|
return e.islot24;
|
2009-11-07 10:41:46 +00:00
|
|
|
if (slotno == 25)
|
|
|
|
return e.mixslot1;
|
|
|
|
if (slotno == 26)
|
|
|
|
return e.mixslot2;
|
2006-01-02 02:45:34 +00:00
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
void(entity e, float slotno, float item) SetItemSlot =
|
|
|
|
{
|
|
|
|
if (slotno == 1)
|
|
|
|
e.islot1 = item;
|
|
|
|
else if (slotno == 2)
|
|
|
|
e.islot2 = item;
|
|
|
|
else if (slotno == 3)
|
|
|
|
e.islot3 = item;
|
|
|
|
else if (slotno == 4)
|
|
|
|
e.islot4 = item;
|
|
|
|
else if (slotno == 5)
|
|
|
|
e.islot5 = item;
|
|
|
|
else if (slotno == 6)
|
|
|
|
e.islot6 = item;
|
|
|
|
else if (slotno == 7)
|
|
|
|
e.islot7 = item;
|
|
|
|
else if (slotno == 8)
|
|
|
|
e.islot8 = item;
|
|
|
|
else if (slotno == 9)
|
|
|
|
e.islot9 = item;
|
|
|
|
else if (slotno == 10)
|
|
|
|
e.islot10 = item;
|
|
|
|
else if (slotno == 11)
|
|
|
|
e.islot11 = item;
|
|
|
|
else if (slotno == 12)
|
|
|
|
e.islot12 = item;
|
|
|
|
else if (slotno == 13)
|
|
|
|
e.islot13 = item;
|
|
|
|
else if (slotno == 14)
|
|
|
|
e.islot14 = item;
|
|
|
|
else if (slotno == 15)
|
|
|
|
e.islot15 = item;
|
|
|
|
else if (slotno == 16)
|
|
|
|
e.islot16 = item;
|
2009-11-05 03:40:39 +00:00
|
|
|
else if (slotno == 17)
|
|
|
|
e.islot17 = item;
|
|
|
|
else if (slotno == 18)
|
|
|
|
e.islot18 = item;
|
|
|
|
else if (slotno == 19)
|
|
|
|
e.islot19 = item;
|
|
|
|
else if (slotno == 20)
|
|
|
|
e.islot20 = item;
|
|
|
|
else if (slotno == 21)
|
|
|
|
e.islot21 = item;
|
|
|
|
else if (slotno == 22)
|
|
|
|
e.islot22 = item;
|
|
|
|
else if (slotno == 23)
|
|
|
|
e.islot23 = item;
|
|
|
|
else if (slotno == 24)
|
|
|
|
e.islot24 = item;
|
2009-11-07 10:41:46 +00:00
|
|
|
else if (slotno == 25)
|
|
|
|
e.mixslot1 = item;
|
|
|
|
else if (slotno == 26)
|
|
|
|
e.mixslot2 = item;
|
2006-01-02 02:45:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
float(entity e, float iid) SlotOfItem =
|
|
|
|
{
|
|
|
|
if (ToIID(e.islot1) == iid)
|
|
|
|
return 1;
|
|
|
|
if (ToIID(e.islot2) == iid)
|
|
|
|
return 2;
|
|
|
|
if (ToIID(e.islot3) == iid)
|
|
|
|
return 3;
|
|
|
|
if (ToIID(e.islot4) == iid)
|
|
|
|
return 4;
|
|
|
|
if (ToIID(e.islot5) == iid)
|
|
|
|
return 5;
|
|
|
|
if (ToIID(e.islot6) == iid)
|
|
|
|
return 6;
|
|
|
|
if (ToIID(e.islot7) == iid)
|
|
|
|
return 7;
|
|
|
|
if (ToIID(e.islot8) == iid)
|
|
|
|
return 8;
|
|
|
|
if (ToIID(e.islot9) == iid)
|
|
|
|
return 9;
|
|
|
|
if (ToIID(e.islot10) == iid)
|
|
|
|
return 10;
|
|
|
|
if (ToIID(e.islot11) == iid)
|
|
|
|
return 11;
|
|
|
|
if (ToIID(e.islot12) == iid)
|
|
|
|
return 12;
|
|
|
|
if (ToIID(e.islot13) == iid)
|
|
|
|
return 13;
|
|
|
|
if (ToIID(e.islot14) == iid)
|
|
|
|
return 14;
|
|
|
|
if (ToIID(e.islot15) == iid)
|
|
|
|
return 15;
|
|
|
|
if (ToIID(e.islot16) == iid)
|
|
|
|
return 16;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (ToIID(e.islot17) == iid)
|
|
|
|
return 17;
|
|
|
|
if (ToIID(e.islot18) == iid)
|
|
|
|
return 18;
|
|
|
|
if (ToIID(e.islot19) == iid)
|
|
|
|
return 19;
|
|
|
|
if (ToIID(e.islot20) == iid)
|
|
|
|
return 20;
|
|
|
|
if (ToIID(e.islot21) == iid)
|
|
|
|
return 21;
|
|
|
|
if (ToIID(e.islot22) == iid)
|
|
|
|
return 22;
|
|
|
|
if (ToIID(e.islot23) == iid)
|
|
|
|
return 23;
|
|
|
|
if (ToIID(e.islot24) == iid)
|
|
|
|
return 24;
|
2009-11-07 10:41:46 +00:00
|
|
|
if (ToIID(e.islot23) == iid)
|
|
|
|
return 25;
|
|
|
|
if (ToIID(e.islot24) == iid)
|
|
|
|
return 26;
|
2009-11-05 03:40:39 +00:00
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
float(entity e, float iid) ShadowSlotOfItem =
|
|
|
|
{
|
|
|
|
if (ToIID(getstati(32)) == iid)
|
|
|
|
return 1;
|
|
|
|
if (ToIID(getstati(33)) == iid)
|
|
|
|
return 2;
|
|
|
|
if (ToIID(getstati(34)) == iid)
|
|
|
|
return 3;
|
|
|
|
if (ToIID(getstati(35)) == iid)
|
|
|
|
return 4;
|
|
|
|
if (ToIID(getstati(36)) == iid)
|
|
|
|
return 5;
|
|
|
|
if (ToIID(getstati(37)) == iid)
|
|
|
|
return 6;
|
|
|
|
if (ToIID(getstati(38)) == iid)
|
|
|
|
return 7;
|
|
|
|
if (ToIID(getstati(39)) == iid)
|
|
|
|
return 8;
|
|
|
|
if (ToIID(getstati(40)) == iid)
|
|
|
|
return 9;
|
|
|
|
if (ToIID(getstati(41)) == iid)
|
|
|
|
return 10;
|
|
|
|
if (ToIID(getstati(42)) == iid)
|
|
|
|
return 11;
|
|
|
|
if (ToIID(getstati(43)) == iid)
|
|
|
|
return 12;
|
|
|
|
if (ToIID(getstati(44)) == iid)
|
|
|
|
return 13;
|
|
|
|
if (ToIID(getstati(45)) == iid)
|
|
|
|
return 14;
|
|
|
|
if (ToIID(getstati(46)) == iid)
|
|
|
|
return 15;
|
|
|
|
if (ToIID(getstati(47)) == iid)
|
|
|
|
return 16;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (ToIID(getstati(91)) == iid)
|
|
|
|
return 17;
|
|
|
|
if (ToIID(getstati(92)) == iid)
|
|
|
|
return 18;
|
|
|
|
if (ToIID(getstati(93)) == iid)
|
|
|
|
return 19;
|
|
|
|
if (ToIID(getstati(94)) == iid)
|
|
|
|
return 20;
|
|
|
|
if (ToIID(getstati(95)) == iid)
|
|
|
|
return 21;
|
|
|
|
if (ToIID(getstati(96)) == iid)
|
|
|
|
return 22;
|
|
|
|
if (ToIID(getstati(97)) == iid)
|
|
|
|
return 23;
|
|
|
|
if (ToIID(getstati(98)) == iid)
|
|
|
|
return 24;
|
2009-11-07 10:41:46 +00:00
|
|
|
if (ToIID(getstati(104)) == iid)
|
|
|
|
return 25;
|
|
|
|
if (ToIID(getstati(105)) == iid)
|
|
|
|
return 26;
|
2006-01-02 02:45:34 +00:00
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
2006-01-04 20:45:08 +00:00
|
|
|
float(entity e, float iid) TotalQuantity =
|
|
|
|
{ //iid must be stackable.
|
|
|
|
local float ret;
|
|
|
|
if (ToIID(e.islot1) == iid)
|
|
|
|
ret += ToStatus(e.islot1);
|
|
|
|
if (ToIID(e.islot2) == iid)
|
|
|
|
ret += ToStatus(e.islot2);
|
|
|
|
if (ToIID(e.islot3) == iid)
|
|
|
|
ret += ToStatus(e.islot3);
|
|
|
|
if (ToIID(e.islot4) == iid)
|
|
|
|
ret += ToStatus(e.islot4);
|
|
|
|
if (ToIID(e.islot5) == iid)
|
|
|
|
ret += ToStatus(e.islot5);
|
|
|
|
if (ToIID(e.islot6) == iid)
|
|
|
|
ret += ToStatus(e.islot6);
|
|
|
|
if (ToIID(e.islot7) == iid)
|
|
|
|
ret += ToStatus(e.islot7);
|
|
|
|
if (ToIID(e.islot8) == iid)
|
|
|
|
ret += ToStatus(e.islot8);
|
|
|
|
if (ToIID(e.islot9) == iid)
|
|
|
|
ret += ToStatus(e.islot9);
|
|
|
|
if (ToIID(e.islot10) == iid)
|
|
|
|
ret += ToStatus(e.islot10);
|
|
|
|
if (ToIID(e.islot11) == iid)
|
|
|
|
ret += ToStatus(e.islot11);
|
|
|
|
if (ToIID(e.islot12) == iid)
|
|
|
|
ret += ToStatus(e.islot12);
|
|
|
|
if (ToIID(e.islot13) == iid)
|
|
|
|
ret += ToStatus(e.islot13);
|
|
|
|
if (ToIID(e.islot14) == iid)
|
|
|
|
ret += ToStatus(e.islot14);
|
|
|
|
if (ToIID(e.islot15) == iid)
|
|
|
|
ret += ToStatus(e.islot15);
|
|
|
|
if (ToIID(e.islot16) == iid)
|
|
|
|
ret += ToStatus(e.islot16);
|
2009-11-05 03:40:39 +00:00
|
|
|
if (ToIID(e.islot17) == iid)
|
|
|
|
ret += ToStatus(e.islot17);
|
|
|
|
if (ToIID(e.islot18) == iid)
|
|
|
|
ret += ToStatus(e.islot18);
|
|
|
|
if (ToIID(e.islot19) == iid)
|
|
|
|
ret += ToStatus(e.islot19);
|
|
|
|
if (ToIID(e.islot20) == iid)
|
|
|
|
ret += ToStatus(e.islot20);
|
|
|
|
if (ToIID(e.islot21) == iid)
|
|
|
|
ret += ToStatus(e.islot21);
|
|
|
|
if (ToIID(e.islot22) == iid)
|
|
|
|
ret += ToStatus(e.islot22);
|
|
|
|
if (ToIID(e.islot23) == iid)
|
|
|
|
ret += ToStatus(e.islot23);
|
|
|
|
if (ToIID(e.islot24) == iid)
|
|
|
|
ret += ToStatus(e.islot24);
|
2009-11-07 10:41:46 +00:00
|
|
|
if (ToIID(e.mixslot1) == iid)
|
|
|
|
ret += ToStatus(e.mixslot1);
|
|
|
|
if (ToIID(e.mixslot2) == iid)
|
|
|
|
ret += ToStatus(e.mixslot2);
|
2006-01-04 20:45:08 +00:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
};
|
|
|
|
|
2006-01-03 04:02:08 +00:00
|
|
|
float(entity e) FindEmptySlot =
|
|
|
|
{
|
2009-11-07 10:41:46 +00:00
|
|
|
|
2006-01-03 04:02:08 +00:00
|
|
|
if (ToIID(e.islot5) == IID_NONE)
|
|
|
|
return 5;
|
|
|
|
if (ToIID(e.islot6) == IID_NONE)
|
|
|
|
return 6;
|
|
|
|
if (ToIID(e.islot7) == IID_NONE)
|
|
|
|
return 7;
|
|
|
|
if (ToIID(e.islot8) == IID_NONE)
|
|
|
|
return 8;
|
|
|
|
if (ToIID(e.islot9) == IID_NONE)
|
|
|
|
return 9;
|
|
|
|
if (ToIID(e.islot10) == IID_NONE)
|
|
|
|
return 10;
|
|
|
|
if (ToIID(e.islot11) == IID_NONE)
|
|
|
|
return 11;
|
|
|
|
if (ToIID(e.islot12) == IID_NONE)
|
|
|
|
return 12;
|
|
|
|
if (ToIID(e.islot13) == IID_NONE)
|
|
|
|
return 13;
|
|
|
|
if (ToIID(e.islot14) == IID_NONE)
|
|
|
|
return 14;
|
|
|
|
if (ToIID(e.islot15) == IID_NONE)
|
|
|
|
return 15;
|
2009-11-07 10:41:46 +00:00
|
|
|
if (ToIID(e.islot16) == IID_NONE)
|
|
|
|
return 16;
|
2006-01-03 04:02:08 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
2006-01-05 00:45:36 +00:00
|
|
|
float(entity e, float iid) FindSuitableEmptySlot =
|
|
|
|
{
|
2009-11-05 03:40:39 +00:00
|
|
|
if (!IsJunk(iid))
|
|
|
|
{
|
2006-01-05 00:45:36 +00:00
|
|
|
if (ToIID(e.islot7) == IID_NONE)
|
|
|
|
if (FitsInSlot(7, iid))
|
|
|
|
return 7;
|
|
|
|
if (ToIID(e.islot8) == IID_NONE)
|
|
|
|
if (FitsInSlot(8, iid))
|
|
|
|
return 8;
|
|
|
|
if (ToIID(e.islot9) == IID_NONE)
|
|
|
|
if (FitsInSlot(9, iid))
|
|
|
|
return 9;
|
|
|
|
if (ToIID(e.islot10) == IID_NONE)
|
|
|
|
if (FitsInSlot(10, iid))
|
|
|
|
return 10;
|
|
|
|
if (ToIID(e.islot11) == IID_NONE)
|
|
|
|
if (FitsInSlot(11, iid))
|
|
|
|
return 11;
|
|
|
|
if (ToIID(e.islot12) == IID_NONE)
|
|
|
|
if (FitsInSlot(12, iid))
|
|
|
|
return 12;
|
|
|
|
if (ToIID(e.islot13) == IID_NONE)
|
|
|
|
if (FitsInSlot(13, iid))
|
|
|
|
return 13;
|
|
|
|
if (ToIID(e.islot14) == IID_NONE)
|
|
|
|
if (FitsInSlot(14, iid))
|
|
|
|
return 14;
|
|
|
|
if (ToIID(e.islot15) == IID_NONE)
|
|
|
|
if (FitsInSlot(15, iid))
|
|
|
|
return 15;
|
|
|
|
if (ToIID(e.islot16) == IID_NONE)
|
|
|
|
if (FitsInSlot(16, iid))
|
|
|
|
return 16;
|
2009-11-07 13:28:20 +00:00
|
|
|
if (ToIID(e.islot15) == IID_NONE)
|
|
|
|
if (FitsInSlot(23, iid))
|
|
|
|
return 23;
|
|
|
|
if (ToIID(e.islot16) == IID_NONE)
|
|
|
|
if (FitsInSlot(24, iid))
|
|
|
|
return 24;
|
2009-11-05 03:40:39 +00:00
|
|
|
}
|
|
|
|
else if (IsJunk(iid))
|
|
|
|
{
|
|
|
|
if (ToIID(e.islot17) == IID_NONE)
|
|
|
|
return 17;
|
|
|
|
if (ToIID(e.islot18) == IID_NONE)
|
|
|
|
return 18;
|
|
|
|
if (ToIID(e.islot19) == IID_NONE)
|
|
|
|
return 19;
|
|
|
|
if (ToIID(e.islot20) == IID_NONE)
|
|
|
|
return 20;
|
|
|
|
if (ToIID(e.islot21) == IID_NONE)
|
|
|
|
return 21;
|
|
|
|
if (ToIID(e.islot22) == IID_NONE)
|
|
|
|
return 22;
|
|
|
|
}
|
2006-01-05 00:45:36 +00:00
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
typedef .float slot_t;
|
|
|
|
slot_t(float slot) SlotField =
|
|
|
|
{
|
|
|
|
if (slot == 1)
|
|
|
|
return islot1;
|
|
|
|
if (slot == 2)
|
|
|
|
return islot2;
|
|
|
|
if (slot == 3)
|
|
|
|
return islot3;
|
|
|
|
if (slot == 4)
|
|
|
|
return islot4;
|
|
|
|
if (slot == 5)
|
|
|
|
return islot5;
|
|
|
|
if (slot == 6)
|
|
|
|
return islot6;
|
|
|
|
if (slot == 7)
|
|
|
|
return islot7;
|
|
|
|
if (slot == 8)
|
|
|
|
return islot8;
|
|
|
|
if (slot == 9)
|
|
|
|
return islot9;
|
|
|
|
if (slot == 10)
|
|
|
|
return islot10;
|
|
|
|
if (slot == 11)
|
|
|
|
return islot11;
|
|
|
|
if (slot == 12)
|
|
|
|
return islot12;
|
|
|
|
if (slot == 13)
|
|
|
|
return islot13;
|
|
|
|
if (slot == 14)
|
|
|
|
return islot14;
|
|
|
|
if (slot == 15)
|
|
|
|
return islot15;
|
|
|
|
if (slot == 16)
|
|
|
|
return islot16;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (slot == 17)
|
|
|
|
return islot17;
|
|
|
|
if (slot == 18)
|
|
|
|
return islot18;
|
|
|
|
if (slot == 19)
|
|
|
|
return islot19;
|
|
|
|
if (slot == 20)
|
|
|
|
return islot20;
|
|
|
|
if (slot == 21)
|
|
|
|
return islot21;
|
|
|
|
if (slot == 22)
|
|
|
|
return islot22;
|
|
|
|
if (slot == 23)
|
|
|
|
return islot23;
|
|
|
|
if (slot == 24)
|
|
|
|
return islot24;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
2009-11-07 03:43:48 +00:00
|
|
|
//bprint(PRINT_MEDIUM, "ERROR: Invalid slot number (", ftos(slot), ")\n");
|
2006-01-02 02:45:34 +00:00
|
|
|
return islot1;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
string(float iid) GetItemVModel =
|
|
|
|
{
|
|
|
|
if (iid == IID_NONE)
|
|
|
|
return "progs/v_fist.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_WRENCH)
|
2006-01-04 20:45:08 +00:00
|
|
|
return "progs/v_span.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_KNIFE)
|
|
|
|
return "progs/v_knife.mdl";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_SLEDGE)
|
2006-01-02 02:45:34 +00:00
|
|
|
return "progs/v_axe.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_SPEAR)
|
|
|
|
return "progs/v_spear.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_POWERAXE)
|
|
|
|
return "progs/v_axe.mdl";
|
|
|
|
if (iid == IID_WP_USP)
|
|
|
|
return "progs/v_1911.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return "progs/v_1911.mdl";
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return "progs/v_glock.mdl";
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return "progs/v_glock.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
2006-01-02 05:40:11 +00:00
|
|
|
return "progs/v_deagle.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/v_needler.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/v_blaster.mdl";
|
|
|
|
if (iid >= IID_WP_PIPERIFLE && iid <= IID_WP_PIPERIFLE_S_R)
|
2009-11-10 13:57:08 +00:00
|
|
|
return "progs/v_pipe.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_WINCHESTER)
|
2006-01-02 05:40:11 +00:00
|
|
|
return "progs/v_double.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOSSBERG)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/v_combat.mdl";
|
2006-01-03 08:05:22 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
|
|
|
return "progs/v_jackhammer.mdl";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2006-01-02 05:40:11 +00:00
|
|
|
return "progs/v_smg.mdl";
|
2009-11-11 07:31:51 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2009-11-07 03:43:48 +00:00
|
|
|
return "progs/v_mp9.mdl";
|
2009-11-11 07:31:51 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/v_smg.mdl";
|
2009-11-11 07:31:51 +00:00
|
|
|
if (iid == IID_WP_MP9_S)
|
|
|
|
return "progs/v_mp9.mdl";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
2006-01-02 05:40:11 +00:00
|
|
|
return "progs/v_rangem.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return "progs/v_rangem_s.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
2006-01-02 05:40:11 +00:00
|
|
|
return "progs/v_ak47.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
|
|
|
return "progs/v_ak47.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return "progs/v_bozar.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
2006-01-02 05:40:11 +00:00
|
|
|
return "progs/v_srifle.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return "progs/v_srifle.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
|
|
|
return "progs/v_night.mdl";
|
2006-01-12 01:55:21 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/v_fnfal.mdl";
|
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "progs/v_lsw.mdl";
|
2006-01-09 02:52:18 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return "progs/v_g11.mdl";
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
|
|
|
return "progs/v_gauss.mdl";
|
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/v_plasma.mdl";
|
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return "progs/v_plasma.mdl";
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
2006-01-09 02:52:18 +00:00
|
|
|
return "progs/v_carbine.mdl";
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return "progs/v_rocket.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return "progs/v_chain.mdl";
|
2006-01-12 02:12:31 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_GREN_FRAG)
|
|
|
|
return "progs/v_handgren.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_STUN)
|
|
|
|
return "progs/v_handgren.mdl";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_GREN_EMP)
|
|
|
|
return "progs/v_handgren.mdl";
|
|
|
|
if (iid == IID_GREN_SMOKE)
|
|
|
|
return "progs/v_handgren.mdl";
|
|
|
|
if (iid == IID_GREN_FLASH)
|
|
|
|
return "progs/v_handgren.mdl";
|
|
|
|
|
|
|
|
bprint(PRINT_MEDIUM, ftos(iid), " without a vmodel!\n");
|
|
|
|
return "";
|
|
|
|
};
|
|
|
|
|
2006-01-02 22:04:05 +00:00
|
|
|
string(float iid) GetItemWModel =
|
|
|
|
{
|
|
|
|
if (iid == IID_WP_KNIFE)
|
|
|
|
return "progs/w_knife.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_WRENCH)
|
|
|
|
return "progs/w_span.mdl";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_SLEDGE)
|
2006-01-02 22:04:05 +00:00
|
|
|
return "progs/w_knife.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_SPEAR)
|
|
|
|
return "progs/w_spear.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_POWERAXE)
|
|
|
|
return "progs/w_axe.mdl";
|
|
|
|
|
|
|
|
if (iid == IID_WP_USP)
|
|
|
|
return "progs/w_1911.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return "progs/w_1911.mdl";
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return "progs/w_glock.mdl";
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return "progs/w_glock.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
|
|
|
return "progs/w_deagle.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return "progs/w_deagle.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return "progs/w_1911.mdl";
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
|
|
|
return "progs/w_alien.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid >= IID_WP_PIPERIFLE && iid <= IID_WP_PIPERIFLE_S_R)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "progs/w_pipe.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_WINCHESTER)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/w_double.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_MOSSBERG)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/w_combat.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
|
|
|
return "progs/w_jackhammer.mdl";
|
|
|
|
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2006-01-02 22:04:05 +00:00
|
|
|
return "progs/w_mp9.mdl";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/w_mp5.mdl";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/w_mp9.mdl";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9_S)
|
2006-01-02 22:04:05 +00:00
|
|
|
return "progs/w_mp7.mdl";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
2006-01-02 22:04:05 +00:00
|
|
|
return "progs/w_rangem.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return "progs/w_rangem.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
|
|
|
return "progs/w_ak47.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK112_M)
|
|
|
|
return "progs/w_ak47.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
|
|
|
return "progs/w_ak47.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return "progs/w_bozar.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
|
|
|
return "progs/w_srifle.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return "progs/w_srifle.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
|
|
|
return "progs/w_night.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return "progs/w_g11.mdl";
|
2006-01-12 01:55:21 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/w_fnfal.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
|
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
|
|
|
return "progs/w_gauss.mdl";
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/w_plasma.mdl";
|
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return "progs/w_plasma.mdl";
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
2006-01-02 22:04:05 +00:00
|
|
|
return "progs/w_carbine.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return "progs/w_rocket.mdl";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return "progs/w_chain.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_STUN)
|
|
|
|
return "progs/grenade2.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
if (iid == IID_GREN_FRAG)
|
|
|
|
return "progs/grenade2.mdl";
|
|
|
|
if (iid == IID_GREN_EMP)
|
|
|
|
return "progs/grenade2.mdl";
|
|
|
|
if (iid == IID_GREN_SMOKE)
|
|
|
|
return "progs/grenade2.mdl";
|
|
|
|
if (iid == IID_GREN_FLASH)
|
|
|
|
return "progs/grenade2.mdl";
|
|
|
|
|
|
|
|
if (iid == IID_CHEM_STIMPACK)
|
|
|
|
return "maps/b_bh10.bsp";
|
|
|
|
if (iid == IID_CHEM_MEDICALBAG)
|
|
|
|
return "maps/b_bh25.bsp";
|
|
|
|
if (iid == IID_CHEM_SUPERSTIM)
|
|
|
|
return "maps/b_bh100.bsp";
|
|
|
|
|
2009-11-05 05:16:43 +00:00
|
|
|
if (iid >= IID_AM_NEEDLER && iid <= IID_AM_CASELESS)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "progs/ammobox.mdl";
|
|
|
|
|
2006-01-02 22:04:05 +00:00
|
|
|
//fixme
|
|
|
|
if (iid == IID_CHEM_ADRENALINE)
|
|
|
|
return "maps/b_bh10.bsp";
|
|
|
|
if (iid == IID_CHEM_PSYCHO)
|
|
|
|
return "maps/b_bh25.bsp";
|
|
|
|
if (iid == IID_CHEM_BESERK)
|
|
|
|
return "maps/b_bh100.bsp";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_RADX)
|
|
|
|
return "maps/b_bh25.bsp";
|
|
|
|
|
|
|
|
if (iid >= IID_MISC_JUNK && iid <= IID_MISC_XRAYTUBE)
|
|
|
|
return "progs/junk1.mdl";
|
2006-01-02 22:04:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
return "progs/s_light.spr"; //no model. :/
|
|
|
|
};
|
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
float(float iid) WeaponAmmoType =
|
|
|
|
{
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_STUN)
|
|
|
|
return IID_GREN_STUN;
|
|
|
|
if (iid == IID_GREN_FRAG)
|
|
|
|
return IID_GREN_FRAG;
|
|
|
|
if (iid == IID_GREN_EMP)
|
|
|
|
return IID_GREN_EMP;
|
|
|
|
if (iid == IID_GREN_SMOKE)
|
|
|
|
return IID_GREN_SMOKE;
|
|
|
|
if (iid == IID_GREN_FLASH)
|
|
|
|
return IID_GREN_FLASH;
|
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_USP)
|
2009-11-05 03:40:39 +00:00
|
|
|
return IID_AM_45ACP;
|
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return IID_AM_45ACP;
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return IID_AM_10MM;
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
2006-01-10 00:37:49 +00:00
|
|
|
return IID_AM_10MM;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_44MAGNUM;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return IID_AM_WARSAW;
|
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return IID_AM_44MAGNUM;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return IID_AM_NEEDLER;
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_ENERGYCELL;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid >= IID_WP_PIPERIFLE && iid <= IID_WP_PIPERIFLE_S_R)
|
|
|
|
return IID_AM_44MAGNUM;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_WINCHESTER)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_12GAUGESHELLS;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOSSBERG)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_12GAUGESHELLS;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_12GAUGESHELLS;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2009-11-05 03:40:39 +00:00
|
|
|
return IID_AM_45ACP;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_10MM;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return IID_AM_45ACP;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return IID_AM_10MM;
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
|
|
|
return IID_AM_556MM;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return IID_AM_556MM;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_5MMHIGHVEL;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return IID_AM_WARSAW;
|
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-11 07:31:51 +00:00
|
|
|
return IID_AM_556MM;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
|
|
|
return IID_AM_WARSAW;
|
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return IID_AM_762MM;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_762MM;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return IID_AM_762MM;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_556MM;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return IID_AM_CASELESS;
|
2006-01-12 01:55:21 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
|
|
|
return IID_AM_762MM;
|
2006-01-06 02:54:07 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_2MMEC;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_AM_ENERGYCELL;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
|
|
|
return IID_AM_ENERGYCELL;
|
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return IID_AM_ENERGYCELL;
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
|
|
|
return IID_AM_ENERGYCELL;
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return IID_AM_ROCKET;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return IID_AM_ENERGYCELL;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
return IID_NONE;
|
|
|
|
};
|
|
|
|
|
|
|
|
float(float iid) WeaponMagQuant =
|
|
|
|
{
|
|
|
|
if (iid == IID_WP_USP)
|
|
|
|
return 12;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return 12;
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return 15;
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return 15;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
|
|
|
return 7;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return 11;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return 15;
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
|
|
|
return 6;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid >= IID_WP_PIPERIFLE && iid <= IID_WP_PIPERIFLE_S_R)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 1;
|
|
|
|
if (iid == IID_WP_WINCHESTER)
|
|
|
|
return 2;
|
|
|
|
if (iid == IID_WP_MOSSBERG)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 12;
|
2009-11-05 05:16:43 +00:00
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
|
|
|
return 20;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 25;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 30;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 25;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 30;
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 10;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return 10;
|
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return 30;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
|
|
|
return 24;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-11 07:31:51 +00:00
|
|
|
return 100;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
|
|
|
return 30;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return 20;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
|
|
|
return 8;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return 8;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
|
|
|
return 30;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return 50;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
|
|
|
return 10;
|
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
|
|
|
return 40;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return 40;
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
|
|
|
return 50;
|
2006-01-12 01:55:21 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
|
|
|
return 20;
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return 120;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
float(float iid) GetItemWeight =
|
|
|
|
{
|
|
|
|
if (iid == IID_NONE)
|
|
|
|
return 0;
|
|
|
|
if (iid == IID_WP_KNIFE)
|
|
|
|
return 1;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_SLEDGE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 8;
|
|
|
|
if (iid == IID_WP_SPEAR)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 8;
|
|
|
|
if (iid == IID_WP_POWERAXE)
|
|
|
|
return 6;
|
|
|
|
if (iid == IID_WP_USP)
|
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return 1;
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return 1;
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return 1;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 3;
|
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return 4;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return 2;
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
|
|
|
return 2;
|
|
|
|
if (iid == IID_WP_PIPERIFLE)
|
|
|
|
return 3;
|
|
|
|
if (iid == IID_WP_WINCHESTER)
|
|
|
|
return 4;
|
|
|
|
if (iid == IID_WP_MOSSBERG)
|
|
|
|
return 5;
|
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
|
|
|
return 6;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 3;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 3;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 3;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 3;
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return 5;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return 6;
|
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-11 07:31:51 +00:00
|
|
|
return 8;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return 10;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 9;
|
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return 9;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return 6;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
|
|
|
return 9;
|
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 11;
|
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return 11;
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
|
|
|
return 08;
|
2006-01-12 01:55:21 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
2009-11-05 03:40:39 +00:00
|
|
|
return 8;
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return 10;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return 25;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_ARM_LEATHER)
|
|
|
|
return 5;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_VANDAL)
|
|
|
|
return 10;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_ARM_METAL)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 20;
|
|
|
|
if (iid == IID_ARM_TESLA)
|
2006-01-02 02:45:34 +00:00
|
|
|
return 12;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_COMBAT)
|
|
|
|
return 14;
|
|
|
|
if (iid == IID_ARM_SEVA)
|
|
|
|
return 16;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_ARM_FORCE)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 9;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_ARM_LPOWER)
|
|
|
|
return 20;
|
|
|
|
|
|
|
|
if (iid == IID_BUILD_MRAMMO)
|
|
|
|
return 2;
|
|
|
|
if (iid == IID_BUILD_SHIELDGEN)
|
|
|
|
return 4;
|
|
|
|
if (iid == IID_BUILD_AUTODOC)
|
|
|
|
return 3;
|
|
|
|
if (iid == IID_BUILD_ROBOFANG)
|
|
|
|
return 2;
|
2006-01-15 01:38:45 +00:00
|
|
|
if (iid == IID_BUILD_TTURRET)
|
|
|
|
return 3;
|
|
|
|
if (iid == IID_BUILD_GTURRET)
|
|
|
|
return 3;
|
|
|
|
if (iid == IID_BUILD_RTURRET)
|
|
|
|
return 3;
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
// bprint(PRINT_MEDIUM, ftos(iid), " without a weight!\n");
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
float(float item) GetItemsWeight =
|
|
|
|
{
|
|
|
|
local float iid;
|
|
|
|
iid = ToIID(item);
|
|
|
|
if (NotStackable(iid))
|
|
|
|
return GetItemWeight(iid);
|
|
|
|
else
|
|
|
|
return GetItemWeight(iid) * ToStatus(item);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
string(float iid) GetItemName =
|
|
|
|
{
|
|
|
|
if (iid == IID_NONE)
|
|
|
|
return "nothing";
|
|
|
|
|
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_WRENCH)
|
|
|
|
return "WRENCH";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_KNIFE)
|
|
|
|
return "knife";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_SLEDGE)
|
2006-01-02 02:45:34 +00:00
|
|
|
return "axe";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_SPEAR)
|
|
|
|
return "spear";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_POWERAXE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "disruptor";
|
2006-01-06 02:59:04 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_USP)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "usp (45 acp)";
|
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return "usp (silenced)";
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return "glock 21 (10mm)";
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return "glock 21 (silenced)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
2006-01-06 02:59:04 +00:00
|
|
|
return "desert eagle (.44mag)";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return "desert eagle (silenced)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return "needler";
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
2006-01-06 02:59:04 +00:00
|
|
|
return "alien blaster (energy)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "pipe rifle (.44mag)";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_S)
|
|
|
|
return "pipe rifle (silenced)";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_R)
|
|
|
|
return "pipe rifle (rod&spring)";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE)
|
|
|
|
return "pipe rifle (scope)";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_S_R)
|
|
|
|
return "pipe rifle (silenced, rod&spring)";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_R)
|
|
|
|
return "pipe rifle (scope, rod&spring)";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S)
|
|
|
|
return "pipe rifle (scope, silenced)";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S_R)
|
|
|
|
return "pipe rifle (scope, silenced, rod&spring)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_WINCHESTER)
|
2006-01-06 02:59:04 +00:00
|
|
|
return "winchester (12g)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOSSBERG)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "citykiller (12g)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
2006-01-06 02:59:04 +00:00
|
|
|
return "jackhammer (12g)";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
|
|
|
return "grease gun (.45 acp)";
|
2009-11-09 15:24:37 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "mp9 (10mm)";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
2006-01-06 02:59:04 +00:00
|
|
|
return "rangemaster (5.56mm)";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return "rangemaster (x2 SUSAT scope)";
|
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return "ak-47 (7.62mm warsaw pact)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "ak-112 (5mm jhp)";
|
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "light support weapon (5.56mm)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "ak-47 (7.62mm warsaw pact)";
|
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return "bozar (7.62mm)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "knight sr-25 widowmaker (7.62mm)";
|
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return "knight sr-25 widowmaker (silenced)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
2006-01-06 02:59:04 +00:00
|
|
|
return "moonlight (5.56mm)";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return "hk g11 (4mm)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
2006-01-06 02:59:04 +00:00
|
|
|
return "gauss rifle (2mm EC)";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "phased plasma rifle (energy)";
|
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return "turbo plasma rifle (energy)";
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
|
|
|
return "plasma carbine (energy)";
|
2006-01-12 01:55:21 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "fn fal (7.62mm)";
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return "rocket launcher";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return "laser minigun (energy)";
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
if (iid == IID_AM_NEEDLER)
|
2006-01-06 02:54:07 +00:00
|
|
|
return "needler cartidge";
|
|
|
|
if (iid == IID_AM_2MMEC)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "2mm AP";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_AM_10MM)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "10mm JHP";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_AM_556MM)
|
2006-01-12 01:55:21 +00:00
|
|
|
return "5.56mm FMJ";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_AM_5MMHIGHVEL)
|
2006-01-12 01:55:21 +00:00
|
|
|
return "5mm JHP";
|
2006-01-07 22:35:40 +00:00
|
|
|
if (iid == IID_AM_12GAUGESHELLS)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "12GA shotgun shells";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_AM_ENERGYCELL)
|
|
|
|
return "small energy cell";
|
|
|
|
if (iid == IID_AM_762MM)
|
2006-01-12 01:55:21 +00:00
|
|
|
return "7.62mm AP";
|
2006-01-06 02:54:07 +00:00
|
|
|
if (iid == IID_AM_44MAGNUM)
|
2009-11-05 03:40:39 +00:00
|
|
|
return ".44 magnum FMJ";
|
|
|
|
if (iid == IID_AM_WARSAW)
|
|
|
|
return "7.62mmx38 Warsaw Pact";
|
2006-01-07 22:35:40 +00:00
|
|
|
if (iid == IID_AM_45ACP)
|
2009-11-05 03:40:39 +00:00
|
|
|
return ".45 ACP";
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_AM_ROCKET)
|
|
|
|
return "explosive rocket";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_CASELESS)
|
|
|
|
return "4.7mm caseless";
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_STUN)
|
|
|
|
return "stun grenade";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_GREN_FRAG)
|
|
|
|
return "frag grenade";
|
|
|
|
if (iid == IID_GREN_EMP)
|
|
|
|
return "emp grenade";
|
|
|
|
if (iid == IID_GREN_SMOKE)
|
|
|
|
return "smoke grenade";
|
|
|
|
if (iid == IID_GREN_FLASH)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "flash grenade";
|
2009-11-05 05:16:43 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_DESERT)
|
|
|
|
return "desert armor";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_ARM_LEATHER)
|
|
|
|
return "leather armor";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_VANDAL)
|
|
|
|
return "vandal armor";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_ARM_METAL)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "metal armor";
|
|
|
|
if (iid == IID_ARM_TESLA)
|
|
|
|
return "tesla armor";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_ARM_COMBAT)
|
|
|
|
return "combat armor";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_SEVA)
|
|
|
|
return "seva suit";
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_ARM_FORCE)
|
|
|
|
return "force armor";
|
|
|
|
if (iid == IID_ARM_LPOWER)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "power armor";
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_CHEM_STIMPACK)
|
|
|
|
return "stimpack";
|
|
|
|
if (iid == IID_CHEM_MEDICALBAG)
|
|
|
|
return "medical bag";
|
|
|
|
if (iid == IID_CHEM_SUPERSTIM)
|
|
|
|
return "superstim";
|
|
|
|
if (iid == IID_CHEM_ADRENALINE)
|
|
|
|
return "adrenaline";
|
|
|
|
if (iid == IID_CHEM_PSYCHO)
|
|
|
|
return "psycho";
|
|
|
|
if (iid == IID_CHEM_BESERK)
|
|
|
|
return "beserk";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_RADX)
|
|
|
|
return "rad-x";
|
2006-01-04 20:45:08 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
if (iid == IID_BUILD_MRAMMO)
|
|
|
|
return "mr. ammo";
|
|
|
|
if (iid == IID_BUILD_SHIELDGEN)
|
|
|
|
return "shield-gen";
|
|
|
|
if (iid == IID_BUILD_AUTODOC)
|
|
|
|
return "auto-doc";
|
|
|
|
if (iid == IID_BUILD_ROBOFANG)
|
|
|
|
return "robofang";
|
2006-01-15 01:38:45 +00:00
|
|
|
if (iid == IID_BUILD_TTURRET)
|
|
|
|
return "tesla turret";
|
|
|
|
if (iid == IID_BUILD_RTURRET)
|
|
|
|
return "rocket turret";
|
|
|
|
if (iid == IID_BUILD_GTURRET)
|
|
|
|
return "machine-gun turret";
|
2006-01-02 02:45:34 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
if (iid == IID_EQUIP_MEDIC_BAG)
|
|
|
|
return "medics bag";
|
|
|
|
if (iid == IID_EQUIP_GOGGLES)
|
|
|
|
return "ghost goggles";
|
|
|
|
if (iid == IID_EQUIP_SILENCER)
|
|
|
|
return "universal silencer";
|
|
|
|
if (iid == IID_EQUIP_BELTPOUCH)
|
|
|
|
return "belt pouch";
|
|
|
|
if (iid == IID_EQUIP_TOOLKIT)
|
|
|
|
return "super WRENCH";
|
|
|
|
if (iid == IID_EQUIP_BACKPACK)
|
|
|
|
return "haversack";
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_EQUIP_CLIMBINGGEAR)
|
|
|
|
return "climbing gear";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_BATTERY)
|
|
|
|
return "enhanced battery";
|
2006-01-09 03:02:05 +00:00
|
|
|
if (iid == IID_EQUIP_STEALTHBOY)
|
|
|
|
return "stealthboy";
|
2006-01-15 01:38:45 +00:00
|
|
|
if (iid == IID_EQUIP_SPRINTKIT)
|
|
|
|
return "lucozade sport!";
|
|
|
|
if (iid == IID_EQUIP_HOVERBOOTS)
|
|
|
|
return "hover boots";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_EXTENDER)
|
|
|
|
return "barrel extender";
|
|
|
|
if (iid == IID_EQUIP_XRAY)
|
|
|
|
return "x-ray device";
|
|
|
|
|
|
|
|
if (iid == IID_MISC_JUNK)
|
|
|
|
return "random junk";
|
|
|
|
if (iid == IID_MISC_NUKACOLA)
|
|
|
|
return "nuka-cola";
|
|
|
|
if (iid == IID_MISC_CHEMICALS)
|
|
|
|
return "chemicals";
|
|
|
|
if (iid == IID_MISC_AEROSOL)
|
|
|
|
return "aerosol can";
|
|
|
|
if (iid == IID_MISC_RDXCRYSTAL)
|
|
|
|
return "rdx crystals";
|
|
|
|
if (iid == IID_MISC_STEELPIPE)
|
|
|
|
return "steel pipe";
|
|
|
|
if (iid == IID_MISC_DUCKTAPE)
|
|
|
|
return "duct tape";
|
|
|
|
if (iid == IID_MISC_LCD)
|
|
|
|
return "liquid crystal display";
|
|
|
|
if (iid == IID_MISC_CIRCUITBOARD)
|
|
|
|
return "circuit board";
|
|
|
|
if (iid == IID_MISC_COPPERWIRE)
|
|
|
|
return "copper wire";
|
|
|
|
if (iid == IID_MISC_HMXCOMPOUND)
|
|
|
|
return "hmx compound";
|
|
|
|
if (iid == IID_MISC_GUM)
|
|
|
|
return "chewing gum";
|
|
|
|
if (iid == IID_MISC_XRAYTUBE)
|
|
|
|
return "x-ray tube";
|
|
|
|
|
2006-01-09 02:52:18 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
bprint(PRINT_MEDIUM, ftos(iid), " without a name!\n");
|
2006-01-05 00:45:36 +00:00
|
|
|
return strcat("unknown", ftos(iid));
|
2006-01-02 02:45:34 +00:00
|
|
|
};
|
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
float(float iid) GetBaseValue =
|
|
|
|
{
|
|
|
|
if (iid == IID_NONE)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_WP_WRENCH)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_KNIFE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 5;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_SLEDGE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 15;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_SPEAR)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 25;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_WP_USP)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 40;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_USP_S)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 60;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_GLOCK)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 30;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_GLOCK_S)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 50;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 70;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 120;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 80;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
2009-11-09 15:24:37 +00:00
|
|
|
return 150;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 15;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE_S)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 25;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE_R)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 25;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 25;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE_S_R)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 35;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_R)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 35;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 35;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S_R)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 50;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_WINCHESTER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 50;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_MOSSBERG)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 150;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 250;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 100;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 125;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 110;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9_S)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 125;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 80;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 120;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK47)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 150;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 140;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 170;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
2009-11-05 05:16:43 +00:00
|
|
|
return 20;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return 190;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 110;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1_S)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 150;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 225;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 240;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 300;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 280;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 380;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 400;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 190;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 200;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 450;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_AM_NEEDLER)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 7;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_2MMEC)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 15;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_10MM)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 3;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_556MM)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_5MMHIGHVEL)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 4;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_12GAUGESHELLS)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 4;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_ENERGYCELL)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 12;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_762MM)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 8;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_44MAGNUM)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 6;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_WARSAW)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_45ACP)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 4;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_ROCKET)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 30;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_CASELESS)
|
2009-11-07 13:28:20 +00:00
|
|
|
return 10;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_GREN_STUN)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_FRAG)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 10;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_EMP)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 15;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_SMOKE)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_FLASH)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 5;
|
2009-11-05 05:16:43 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
if (iid == IID_ARM_DESERT)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 45;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_LEATHER)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 50;
|
|
|
|
if (iid == IID_ARM_VANDAL)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 90;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_METAL)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 100;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_TESLA)
|
|
|
|
return 175;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_COMBAT)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 300;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_SEVA)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 350;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_FORCE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 500;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_LPOWER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 550;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_CHEM_STIMPACK)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_MEDICALBAG)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 25;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_SUPERSTIM)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 15;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_ADRENALINE)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 9;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_PSYCHO)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 12;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_BESERK)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 14;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_RADX)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 15;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
if (iid == IID_EQUIP_MEDIC_BAG)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 35;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_GOGGLES)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 45;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_SILENCER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 20;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_BELTPOUCH)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 70;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_TOOLKIT)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 50;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_BACKPACK)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 100;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_CLIMBINGGEAR)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 150;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_BATTERY)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 100;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_STEALTHBOY)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 50;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_SPRINTKIT)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 1000;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_HOVERBOOTS)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 1000;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_EXTENDER)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 10;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_XRAY)
|
2009-11-07 10:41:46 +00:00
|
|
|
return 10;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
if (iid == IID_MISC_JUNK)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_NUKACOLA)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_CHEMICALS)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 2;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_AEROSOL)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 2;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_RDXCRYSTAL)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 3;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_STEELPIPE)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_DUCKTAPE)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_LCD)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 2;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_CIRCUITBOARD)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 2;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_COPPERWIRE)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_HMXCOMPOUND)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_GUM)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 2;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_MISC_XRAYTUBE)
|
2009-11-09 04:48:58 +00:00
|
|
|
return 5;
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
bprint(PRINT_MEDIUM, ftos(iid), " without a sell price!\n");
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
2006-01-06 04:46:20 +00:00
|
|
|
string(float iid) GetItemDesc =
|
|
|
|
{
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_NONE)
|
2006-01-06 04:46:20 +00:00
|
|
|
return "";
|
2006-01-09 02:52:18 +00:00
|
|
|
|
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_WRENCH)
|
|
|
|
return "a heavy multi-function wrench";
|
|
|
|
if (iid == IID_WP_KNIFE)
|
|
|
|
return "great for stealth attacks";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_SLEDGE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "a futuristic battle axe";
|
|
|
|
if (iid == IID_WP_SPEAR)
|
|
|
|
return "a long, sharp polearm";
|
|
|
|
if (iid == IID_WP_POWERAXE)
|
|
|
|
return "a futuristic axe of some sort";
|
|
|
|
|
|
|
|
if (iid == IID_WP_USP)
|
|
|
|
return "uses 45 acp, a solid round";
|
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return "this usp has a silencer attached for maximum stealth";
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return "a rugged, reliable sidearm";
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return "silencer allows for hit-and-run tactics";
|
|
|
|
if (iid == IID_WP_DEAGLE)
|
|
|
|
return "the favorite of late 20th century action heroes";
|
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return "a modified desert eagle with extended magazines";
|
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return "an experimental weapon of some sort";
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
|
|
|
return "this gun is of an unknown origin";
|
|
|
|
if (iid == IID_WP_PIPERIFLE)
|
|
|
|
return "a homemade rifle made out of a steel pipe";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_S)
|
|
|
|
return "this pipe rifle has a silencer attached";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE)
|
|
|
|
return "a crude scope has been attached to this pipe rifle";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_R)
|
|
|
|
return "a modified pipe rifle with a rod&spring replacement";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_S_R)
|
|
|
|
return "pipe rifle with a silencer and rod&spring replacement";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_R)
|
|
|
|
return "pipe rifle with a scope and rod&spring replacement";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S)
|
|
|
|
return "pipe rifle with a scope and silencer";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S_R)
|
|
|
|
return "pipe rifle with a scope, silencer, and rod&spring";
|
|
|
|
if (iid == IID_WP_WINCHESTER)
|
|
|
|
return "double-barrelled and sawed off";
|
|
|
|
if (iid == IID_WP_MOSSBERG)
|
|
|
|
return "semi-auto combat shotgun, magazine fed";
|
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
|
|
|
return "the ultimate for close range battles";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "higher recoil due to larger .45 acp round";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "higher recoil due to larger .45 acp round";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "great all-around weapon; good burst fire";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_MP9_S)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "silenced 10mm smg; less recoil";
|
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
|
|
|
return "civilian battle rifle. sturdy and effective";
|
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return "civilian battle rifle. this one has a scope";
|
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return "an outdated assault rifle with extreme durability";
|
|
|
|
if (iid == IID_WP_AK112)
|
|
|
|
return "a common assault rifle with extreme durability";
|
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "a great weapon for providing suppressing fire";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "the larger caliber 7.62mm provides extra power";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return ".308 sniper rifle, silenced for stealth-ops";
|
|
|
|
if (iid == IID_WP_DKS1)
|
|
|
|
return "semi-auto sniper rifle";
|
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
|
|
|
return "decent rifle with extra utility";
|
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return "a prototype rifle that uses caseless ammo";
|
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
|
|
|
return "fires extremely high-velocity rounds";
|
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
|
|
|
return "high-tech plasma weapon released just before the war";
|
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return "modified plasma rifle for greater heat and pressure dissipation";
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
|
|
|
return "prototype plasma rifle released during the final stages of the war";
|
|
|
|
if (iid == IID_WP_FNFAL)
|
|
|
|
return "rifle designed for longer range; high recoil";
|
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return "great for devastating tactical strikes";
|
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return "quite simply, the ultimate in heavy firepower";
|
2009-11-09 15:24:37 +00:00
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "fast, powerful, and accurate - a sniper's dream";
|
2009-11-09 15:24:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_AM_NEEDLER)
|
|
|
|
return "good armor-peircing properties";
|
|
|
|
if (iid == IID_AM_2MMEC)
|
|
|
|
return "virtually ignores armor";
|
|
|
|
if (iid == IID_AM_10MM)
|
|
|
|
return "jacketed hollow-points for good damage";
|
|
|
|
if (iid == IID_AM_556MM)
|
|
|
|
return "standard rifle round, moderate recoil";
|
|
|
|
if (iid == IID_AM_5MMHIGHVEL)
|
|
|
|
return "experimental high-velocity rifle ammo";
|
|
|
|
if (iid == IID_AM_12GAUGESHELLS)
|
|
|
|
return "the old standard, has trouble with heavy armor";
|
|
|
|
if (iid == IID_AM_ENERGYCELL)
|
|
|
|
return "this energy cell comes from an unknown origin";
|
|
|
|
if (iid == IID_AM_762MM)
|
|
|
|
return "good stopping power and armor-piercing performance";
|
|
|
|
if (iid == IID_AM_44MAGNUM)
|
|
|
|
return "full metal jacket, hit 'em hard";
|
|
|
|
if (iid == IID_AM_WARSAW)
|
|
|
|
return "ancient soviet rifle round, used in the ak47";
|
|
|
|
if (iid == IID_AM_45ACP)
|
|
|
|
return "a common pistol round with good stopping power";
|
|
|
|
if (iid == IID_AM_ROCKET)
|
|
|
|
return "expensive and extremely lethal";
|
|
|
|
if (iid == IID_AM_CASELESS)
|
|
|
|
return "a brick of small-caliber caseless ammo";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_GREN_FRAG)
|
|
|
|
return "all-purpose fragmentation grenade";
|
|
|
|
if (iid == IID_GREN_EMP)
|
|
|
|
return "useful against robots and cyborgs";
|
|
|
|
if (iid == IID_GREN_SMOKE)
|
|
|
|
return "very useful for a quick getaway!";
|
|
|
|
if (iid == IID_GREN_FLASH)
|
|
|
|
return "temporarily blinds nearby enemies";
|
|
|
|
if (iid == IID_GREN_STUN)
|
|
|
|
return "delivers a forceful shock to nearby enemies";
|
2009-11-05 03:40:39 +00:00
|
|
|
|
2009-11-09 15:24:37 +00:00
|
|
|
if (iid == IID_ARM_DESERT)
|
|
|
|
return "the light armor of a raider; makes a great disguise";
|
|
|
|
if (iid == IID_ARM_LEATHER)
|
|
|
|
return "lightweight leather armor. provides great mobility.";
|
|
|
|
if (iid == IID_ARM_VANDAL)
|
|
|
|
return "enhanced leather armor for extra protection.";
|
|
|
|
if (iid == IID_ARM_METAL)
|
|
|
|
return "gives great protection at a sacrifice to speed.";
|
|
|
|
if (iid == IID_ARM_TESLA)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "experimental armor. great against small rounds.";
|
2009-11-09 15:24:37 +00:00
|
|
|
if (iid == IID_ARM_COMBAT)
|
|
|
|
return "this all-purpose armor is designed for combat missions.";
|
|
|
|
if (iid == IID_ARM_SEVA)
|
|
|
|
return "high-tech suit provides more environmental defense";
|
|
|
|
if (iid == IID_ARM_FORCE)
|
|
|
|
return "experimental energy-field armor, very low absorb";
|
|
|
|
if (iid == IID_ARM_LPOWER)
|
|
|
|
return "the heaviest armor with great protection";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_CHEM_STIMPACK)
|
|
|
|
return "advanced healing chem that replaces lost blood";
|
|
|
|
if (iid == IID_CHEM_MEDICALBAG)
|
|
|
|
return "first aid kit with many high-tech supplies";
|
|
|
|
if (iid == IID_CHEM_SUPERSTIM)
|
|
|
|
return "contains nanobots that heal very fast";
|
|
|
|
if (iid == IID_CHEM_ADRENALINE)
|
|
|
|
return "boosts the metabolism, increasing jump and run speed";
|
|
|
|
if (iid == IID_CHEM_PSYCHO)
|
|
|
|
return "unknown chemicals, probably of military origin";
|
|
|
|
if (iid == IID_CHEM_BESERK)
|
|
|
|
return "unknown chemicals, probably of military origin";
|
|
|
|
if (iid == IID_CHEM_RADX)
|
|
|
|
return "powerful anti-radiation pills";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_BUILD_MRAMMO)
|
|
|
|
return "provides extra ammunition";
|
|
|
|
if (iid == IID_BUILD_SHIELDGEN)
|
|
|
|
return "protects all nearby allies";
|
|
|
|
if (iid == IID_BUILD_AUTODOC)
|
|
|
|
return "the auto-doc will repair injuries";
|
|
|
|
if (iid == IID_BUILD_ROBOFANG)
|
|
|
|
return "robofang guardian unit";
|
|
|
|
if (iid == IID_BUILD_TTURRET)
|
|
|
|
return "dispatches hostile intruders";
|
|
|
|
if (iid == IID_BUILD_RTURRET)
|
|
|
|
return "rocket turret";
|
|
|
|
if (iid == IID_BUILD_GTURRET)
|
|
|
|
return "machine-gun turret";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_EQUIP_MEDIC_BAG)
|
|
|
|
return "allows more chems to be carried";
|
|
|
|
if (iid == IID_EQUIP_GOGGLES)
|
|
|
|
return "protects against visual impairments";
|
|
|
|
if (iid == IID_EQUIP_SILENCER)
|
|
|
|
return "attaches to any smallarm";
|
|
|
|
if (iid == IID_EQUIP_BELTPOUCH)
|
|
|
|
return "useful for carrying extra grenades";
|
|
|
|
if (iid == IID_EQUIP_TOOLKIT)
|
|
|
|
return "for picking all sorts of locks";
|
|
|
|
if (iid == IID_EQUIP_BACKPACK)
|
|
|
|
return "this handy bag lets you carry more ammunition";
|
|
|
|
if (iid == IID_EQUIP_CLIMBINGGEAR)
|
|
|
|
return "for those hard to reach places";
|
|
|
|
if (iid == IID_EQUIP_BATTERY)
|
|
|
|
return "provides prolonged battery life";
|
|
|
|
if (iid == IID_EQUIP_STEALTHBOY)
|
|
|
|
return "makes user blurry and hard to see";
|
|
|
|
if (iid == IID_EQUIP_EXTENDER)
|
|
|
|
return "gives a weapon slightly longer range and damage";
|
|
|
|
if (iid == IID_EQUIP_XRAY)
|
|
|
|
return "allows for enemy detection through walls";
|
|
|
|
|
|
|
|
if (iid == IID_MISC_NUKACOLA)
|
|
|
|
return "a bottle of tasty nuka-cola";
|
|
|
|
if (iid == IID_MISC_JUNK)
|
|
|
|
return "metallic bits, pipe and other debris";
|
|
|
|
if (iid == IID_MISC_CHEMICALS)
|
|
|
|
return "standard household cleaner";
|
|
|
|
if (iid == IID_MISC_AEROSOL)
|
|
|
|
return "a half-full aerosol can";
|
|
|
|
if (iid == IID_MISC_RDXCRYSTAL)
|
|
|
|
return "a batch of highly unstable explosive crystals";
|
|
|
|
if (iid == IID_MISC_STEELPIPE)
|
|
|
|
return "a slightly rusted steel pipe";
|
|
|
|
if (iid == IID_MISC_DUCKTAPE)
|
|
|
|
return "ancient, but still highly functional";
|
|
|
|
if (iid == IID_MISC_LCD)
|
|
|
|
return "an lcd from a Lameboy DS videogame unit";
|
|
|
|
if (iid == IID_MISC_CIRCUITBOARD)
|
|
|
|
return "a corroded circuit board from a remote control";
|
|
|
|
if (iid == IID_MISC_COPPERWIRE)
|
|
|
|
return "a small spool of thin copper wire";
|
|
|
|
if (iid == IID_MISC_HMXCOMPOUND)
|
|
|
|
return "a small amount of high-grade military explosive";
|
|
|
|
if (iid == IID_MISC_GUM)
|
|
|
|
return "trident chewing gum, limited edition watermelon flavor";
|
|
|
|
if (iid == IID_MISC_XRAYTUBE)
|
|
|
|
return "??? a strange device ???";
|
|
|
|
|
|
|
|
bprint(PRINT_MEDIUM, ftos(iid), " without a desc!\n");
|
|
|
|
return strcat("", ftos(iid));
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
string(float iid) GetItemStats =
|
|
|
|
{
|
|
|
|
if (iid == IID_NONE)
|
|
|
|
return "";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_WP_WRENCH)
|
|
|
|
return "a heavy multi-function wrench";
|
|
|
|
if (iid == IID_WP_KNIFE)
|
|
|
|
return "great for stealth attacks";
|
|
|
|
if (iid == IID_WP_SLEDGE)
|
|
|
|
return "a futuristic battle axe";
|
|
|
|
if (iid == IID_WP_SPEAR)
|
|
|
|
return "a long, sharp polearm";
|
|
|
|
if (iid == IID_WP_POWERAXE)
|
|
|
|
return "a futuristic axe of some sort";
|
|
|
|
|
|
|
|
if (iid == IID_WP_USP)
|
|
|
|
return "dmg: 14 rng: 20 ammo: .45 skill: combat";
|
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return "dmg: 12 rng: 18 ammo: .45 skill: combat";
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return "dmg: 12 rng: 18 ammo: 10mm skill: combat";
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return "dmg: 10 rng: 16 ammo: 10mm skill: combat";
|
|
|
|
if (iid == IID_WP_DEAGLE)
|
|
|
|
return "dmg: 18 rng: 30 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return "dmg: 18 rng: 30 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return "dmg: 16 rng: 20 ammo: nc skill: science";
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
|
|
|
return "dmg: 48 rng: 15 ammo: cell skill: science";
|
|
|
|
if (iid == IID_WP_PIPERIFLE)
|
|
|
|
return "dmg: 20 rng: 50 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_S)
|
|
|
|
return "dmg: 18 rng: 45 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE)
|
|
|
|
return "dmg: 20 rng: 60 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_R)
|
|
|
|
return "dmg: 20 rng: 50 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_S_R)
|
|
|
|
return "dmg: 18 rng: 45 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_R)
|
|
|
|
return "dmg: 20 rng: 60 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S)
|
|
|
|
return "dmg: 18 rng: 50 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_PIPERIFLE_SCOPE_S_R)
|
|
|
|
return "dmg: 18 rng: 50 ammo: .44 skill: combat";
|
|
|
|
if (iid == IID_WP_WINCHESTER)
|
|
|
|
return "dmg: 40 rng: 10 ammo: 12ga skill: combat";
|
|
|
|
if (iid == IID_WP_MOSSBERG)
|
|
|
|
return "dmg: 35 rng: 20 ammo: 12ga skill: combat";
|
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
|
|
|
return "dmg: 35 rng: 15 ammo: 12ga skill: combat";
|
|
|
|
if (iid == IID_WP_GREASEGUN)
|
|
|
|
return "dmg: 14 rng: 15 ammo: .45 skill: combat";
|
|
|
|
if (iid == IID_WP_GREASEGUN_S)
|
|
|
|
return "dmg: 12 rng: 10 ammo: .45 skill: combat";
|
|
|
|
if (iid == IID_WP_MP9)
|
|
|
|
return "dmg: 12 rng: 15 ammo: 10mm skill: sneak";
|
|
|
|
if (iid == IID_WP_MP9_S)
|
|
|
|
return "dmg: 10 rng: 15 ammo: 10mm skill: sneak";
|
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
|
|
|
return "dmg: 18 rng: 40 ammo: 5.56 skill: combat";
|
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return "dmg: 18 rng: 50 ammo: 5.56 skill: combat";
|
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return "an outdated assault rifle with extreme durability";
|
|
|
|
if (iid == IID_WP_AK112)
|
|
|
|
return "dmg: 16 rng: 40 ammo: 5mm skill: combat";
|
|
|
|
if (iid == IID_WP_AK112_M)
|
|
|
|
return "dmg: 16 rng: 40 ammo: 5mm skill: combat";
|
|
|
|
if (iid == IID_WP_DKS1)
|
|
|
|
return "dmg: 40 rng: 80 ammo: 7.62 skill: combat";
|
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return "dmg: 35 rng: 70 ammo: 7.62 skill: combat";
|
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
|
|
|
return "dmg: 16 rng: 40 ammo: 5.56 skill: combat";
|
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return "dmg: 14 rng: 40 ammo: csels skill: combat";
|
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
|
|
|
return "dmg: 30 rng: 90 ammo: 2mmec skill: combat";
|
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
|
|
|
return "dmg: 16 rng: 40 ammo: 5mm skill: combat";
|
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
|
|
|
return "dmg: 32 rng: 45 ammo: cell skill: science";
|
|
|
|
if (iid == IID_WP_PLASMACARBINE)
|
|
|
|
return "dmg: 28 rng: 30 ammo: cell skill: science";
|
|
|
|
if (iid == IID_WP_FNFAL)
|
|
|
|
return "dmg: 32 rng: 60 ammo: 7.62 skill: combat";
|
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
|
|
|
return "dmg: 100 rng: 30 ammo: rkt skill: combat";
|
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return "dmg: 24 rng: 60 ammo: cell skill: combat";
|
|
|
|
if (iid == IID_WP_ACR)
|
|
|
|
return "dmg: 50 rng: 90 ammo: 7.62 skill: combat";
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_AM_NEEDLER)
|
|
|
|
return "good armor-peircing properties";
|
|
|
|
if (iid == IID_AM_2MMEC)
|
|
|
|
return "virtually ignores armor";
|
|
|
|
if (iid == IID_AM_10MM)
|
|
|
|
return "jacketed hollow-points for good damage";
|
|
|
|
if (iid == IID_AM_556MM)
|
|
|
|
return "standard rifle round, moderate recoil";
|
|
|
|
if (iid == IID_AM_5MMHIGHVEL)
|
|
|
|
return "experimental high-velocity rifle ammo";
|
|
|
|
if (iid == IID_AM_12GAUGESHELLS)
|
|
|
|
return "the old standard, has trouble with heavy armor";
|
|
|
|
if (iid == IID_AM_ENERGYCELL)
|
|
|
|
return "this energy cell comes from an unknown origin";
|
|
|
|
if (iid == IID_AM_762MM)
|
|
|
|
return "good stopping power and armor-piercing performance";
|
|
|
|
if (iid == IID_AM_44MAGNUM)
|
|
|
|
return "full metal jacket, hit 'em hard";
|
|
|
|
if (iid == IID_AM_WARSAW)
|
|
|
|
return "ancient soviet rifle round, used in the ak47";
|
|
|
|
if (iid == IID_AM_45ACP)
|
|
|
|
return "a common pistol round with good stopping power";
|
|
|
|
if (iid == IID_AM_ROCKET)
|
|
|
|
return "expensive and extremely lethal";
|
|
|
|
if (iid == IID_AM_CASELESS)
|
|
|
|
return "a brick of small-caliber caseless ammo";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_GREN_FRAG)
|
|
|
|
return "all-purpose fragmentation grenade";
|
|
|
|
if (iid == IID_GREN_EMP)
|
|
|
|
return "useful against robots and cyborgs";
|
|
|
|
if (iid == IID_GREN_SMOKE)
|
|
|
|
return "very useful for a quick getaway!";
|
|
|
|
if (iid == IID_GREN_FLASH)
|
|
|
|
return "temporarily blinds nearby enemies";
|
|
|
|
if (iid == IID_GREN_STUN)
|
|
|
|
return "delivers a forceful shock to nearby enemies";
|
|
|
|
|
|
|
|
if (iid == IID_ARM_DESERT)
|
|
|
|
return "the light armor of a raider; makes a great disguise";
|
|
|
|
if (iid == IID_ARM_LEATHER)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "lightweight leather armor. provides great mobility.";
|
|
|
|
if (iid == IID_ARM_VANDAL)
|
|
|
|
return "enhanced leather armor for extra protection.";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_METAL)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "gives great protection at a sacrifice to speed.";
|
|
|
|
if (iid == IID_ARM_TESLA)
|
|
|
|
return "experimental armor with high deflection but low absorb.";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_COMBAT)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "this all-purpose armor is designed for combat missions.";
|
|
|
|
if (iid == IID_ARM_SEVA)
|
|
|
|
return "high-tech suit provides more environmental defense";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_FORCE)
|
|
|
|
return "experimental energy-field armor, very low absorb";
|
|
|
|
if (iid == IID_ARM_LPOWER)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "the heaviest armor with great protection";
|
2009-11-05 03:40:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_CHEM_STIMPACK)
|
|
|
|
return "advanced healing chem that replaces lost blood";
|
|
|
|
if (iid == IID_CHEM_MEDICALBAG)
|
|
|
|
return "first aid kit with many high-tech supplies";
|
|
|
|
if (iid == IID_CHEM_SUPERSTIM)
|
|
|
|
return "contains nanobots that heal very fast";
|
|
|
|
if (iid == IID_CHEM_ADRENALINE)
|
|
|
|
return "boosts the metabolism, increasing jump and run speed";
|
|
|
|
if (iid == IID_CHEM_PSYCHO)
|
|
|
|
return "unknown chemicals, probably of military origin";
|
|
|
|
if (iid == IID_CHEM_BESERK)
|
|
|
|
return "unknown chemicals, probably of military origin";
|
|
|
|
if (iid == IID_CHEM_RADX)
|
|
|
|
return "powerful anti-radiation pills";
|
|
|
|
|
|
|
|
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_BUILD_MRAMMO)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "provides extra ammunition";
|
|
|
|
if (iid == IID_BUILD_SHIELDGEN)
|
|
|
|
return "protects all nearby allies";
|
|
|
|
if (iid == IID_BUILD_AUTODOC)
|
|
|
|
return "the auto-doc will repair injuries";
|
|
|
|
if (iid == IID_BUILD_ROBOFANG)
|
|
|
|
return "robofang guardian unit";
|
|
|
|
if (iid == IID_BUILD_TTURRET)
|
|
|
|
return "dispatches hostile intruders";
|
|
|
|
if (iid == IID_BUILD_RTURRET)
|
|
|
|
return "rocket turret";
|
|
|
|
if (iid == IID_BUILD_GTURRET)
|
|
|
|
return "machine-gun turret";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_EQUIP_MEDIC_BAG)
|
|
|
|
return "allows more chems to be carried";
|
|
|
|
if (iid == IID_EQUIP_GOGGLES)
|
|
|
|
return "protects against visual impairments";
|
|
|
|
if (iid == IID_EQUIP_SILENCER)
|
|
|
|
return "attaches to any smallarm";
|
|
|
|
if (iid == IID_EQUIP_BELTPOUCH)
|
|
|
|
return "useful for carrying extra grenades";
|
|
|
|
if (iid == IID_EQUIP_TOOLKIT)
|
|
|
|
return "for picking all sorts of locks";
|
|
|
|
if (iid == IID_EQUIP_BACKPACK)
|
|
|
|
return "this handy bag lets you carry more ammunition";
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_EQUIP_CLIMBINGGEAR)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "for those hard to reach places";
|
|
|
|
if (iid == IID_EQUIP_BATTERY)
|
|
|
|
return "provides prolonged battery life";
|
|
|
|
if (iid == IID_EQUIP_STEALTHBOY)
|
|
|
|
return "makes user blurry and hard to see";
|
|
|
|
if (iid == IID_EQUIP_EXTENDER)
|
|
|
|
return "gives a weapon slightly longer range and damage";
|
|
|
|
if (iid == IID_EQUIP_XRAY)
|
|
|
|
return "allows for enemy detection through walls";
|
|
|
|
|
|
|
|
if (iid == IID_MISC_NUKACOLA)
|
|
|
|
return "a bottle of tasty nuka-cola";
|
|
|
|
if (iid == IID_MISC_JUNK)
|
|
|
|
return "metallic bits, pipe and other debris";
|
|
|
|
if (iid == IID_MISC_CHEMICALS)
|
|
|
|
return "standard household cleaner";
|
|
|
|
if (iid == IID_MISC_AEROSOL)
|
|
|
|
return "a half-full aerosol can";
|
|
|
|
if (iid == IID_MISC_RDXCRYSTAL)
|
|
|
|
return "a batch of highly unstable explosive crystals";
|
|
|
|
if (iid == IID_MISC_STEELPIPE)
|
|
|
|
return "a slightly rusted steel pipe";
|
|
|
|
if (iid == IID_MISC_DUCKTAPE)
|
|
|
|
return "ancient, but still highly functional";
|
|
|
|
if (iid == IID_MISC_LCD)
|
|
|
|
return "an lcd from a Lameboy DS videogame unit";
|
|
|
|
if (iid == IID_MISC_CIRCUITBOARD)
|
|
|
|
return "a corroded circuit board from a remote control";
|
|
|
|
if (iid == IID_MISC_COPPERWIRE)
|
|
|
|
return "a small spool of thin copper wire";
|
|
|
|
if (iid == IID_MISC_HMXCOMPOUND)
|
|
|
|
return "a small amount of high-grade military explosive";
|
|
|
|
if (iid == IID_MISC_GUM)
|
|
|
|
return "trident chewing gum, limited edition watermelon flavor";
|
|
|
|
if (iid == IID_MISC_XRAYTUBE)
|
|
|
|
return "??? a strange device ???";
|
2006-01-09 02:52:18 +00:00
|
|
|
|
|
|
|
bprint(PRINT_MEDIUM, ftos(iid), " without a desc!\n");
|
2009-11-05 03:40:39 +00:00
|
|
|
return strcat("", ftos(iid));
|
2006-01-06 04:46:20 +00:00
|
|
|
};
|
|
|
|
|
2006-01-06 03:50:25 +00:00
|
|
|
string(float iid) GetItemImage =
|
|
|
|
{
|
|
|
|
if (iid == IID_NONE)
|
|
|
|
return "blank.jpg";
|
|
|
|
|
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_WRENCH)
|
|
|
|
return "wrench.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_KNIFE)
|
|
|
|
return "knife.jpg";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_SLEDGE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "disruptor.jpg";
|
|
|
|
if (iid == IID_WP_SPEAR)
|
|
|
|
return "spear.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_POWERAXE)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "disruptor.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
|
|
|
|
if (iid == IID_WP_USP)
|
|
|
|
return "usp.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_USP_S)
|
|
|
|
return "usp.jpg";
|
|
|
|
if (iid == IID_WP_GLOCK)
|
|
|
|
return "glock.jpg";
|
|
|
|
if (iid == IID_WP_GLOCK_S)
|
|
|
|
return "glock.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_DEAGLE)
|
|
|
|
return "deagle.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DEAGLE_M)
|
|
|
|
return "deagle.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_NEEDLER)
|
|
|
|
return "needler.jpg";
|
|
|
|
if (iid == IID_WP_ALIENBLASTER)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "ppistol.jpg";
|
|
|
|
if (iid >= IID_WP_PIPERIFLE && iid <= IID_WP_PIPERIFLE_S_R)
|
2006-01-06 03:50:25 +00:00
|
|
|
return "prifle.jpg";
|
|
|
|
if (iid == IID_WP_WINCHESTER)
|
2009-11-09 15:24:37 +00:00
|
|
|
return "sawedoff.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_MOSSBERG)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "citykiller.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_JACKHAMMER)
|
|
|
|
return "jackhammer.jpg";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_WP_GREASEGUN)
|
2009-11-09 15:24:37 +00:00
|
|
|
return "greasegun.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_MP9)
|
|
|
|
return "mp9.jpg";
|
|
|
|
if (iid == IID_WP_RANGEMASTER)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "rangem.png";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_RANGEMASTER_SCOPE)
|
|
|
|
return "rangem_s.jpg";
|
|
|
|
if (iid == IID_WP_AK47)
|
|
|
|
return "ak47.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_AK112)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "ak112.png";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_AK112_M)
|
2009-11-11 07:31:51 +00:00
|
|
|
return "lsw.png";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_AK74)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "ak47.jpg";
|
|
|
|
if (iid == IID_WP_ACR)
|
2009-11-09 15:24:37 +00:00
|
|
|
return "bozar.png";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_DKS1)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "dks1.png";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_DKS1_S)
|
|
|
|
return "dks1_s.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_MOONLIGHT)
|
|
|
|
return "moonlight.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_G11)
|
|
|
|
return "g11.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_WP_GAUSERIFLE)
|
|
|
|
return "grifle.jpg";
|
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "plasma.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_TURBOPLASMA)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "plasma.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_PULSERIFLE)
|
|
|
|
return "carbine.jpg";
|
2006-01-12 01:55:21 +00:00
|
|
|
if (iid == IID_WP_FNFAL)
|
|
|
|
return "fnfal.jpg";
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_WP_ROCKETLAUNCHER)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "rocket.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_WP_LASERGATLING)
|
|
|
|
return "gatling.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_AM_NEEDLER)
|
|
|
|
return "needles.jpg";
|
|
|
|
if (iid == IID_AM_2MMEC)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "2mmec.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_AM_10MM)
|
|
|
|
return "10mm.jpg";
|
|
|
|
if (iid == IID_AM_556MM)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "556mm.png";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_AM_5MMHIGHVEL)
|
|
|
|
return "5mmhv.jpg";
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_AM_12GAUGESHELLS)
|
2006-01-06 03:50:25 +00:00
|
|
|
return "12gauge.jpg";
|
|
|
|
if (iid == IID_AM_ENERGYCELL)
|
|
|
|
return "cell.jpg";
|
|
|
|
if (iid == IID_AM_762MM)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "762mm.png";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_AM_44MAGNUM)
|
|
|
|
return "44mag.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_WARSAW)
|
|
|
|
return "762mm.jpg";
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_AM_45ACP)
|
2006-01-06 03:50:25 +00:00
|
|
|
return "45acp.jpg";
|
2006-01-12 02:12:31 +00:00
|
|
|
if (iid == IID_AM_ROCKET)
|
|
|
|
return "rocket.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_AM_CASELESS)
|
|
|
|
return "caseless.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
|
|
|
|
if (iid == IID_GREN_FRAG)
|
|
|
|
return "frag.jpg";
|
|
|
|
if (iid == IID_GREN_EMP)
|
|
|
|
return "emp.jpg";
|
|
|
|
if (iid == IID_GREN_SMOKE)
|
|
|
|
return "smoke.jpg";
|
|
|
|
if (iid == IID_GREN_FLASH)
|
|
|
|
return "flash.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_GREN_STUN)
|
|
|
|
return "stun.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_ARM_DESERT)
|
|
|
|
return "desert.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_ARM_LEATHER)
|
|
|
|
return "leather.jpg";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_VANDAL)
|
|
|
|
return "vandal.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_ARM_METAL)
|
2009-11-09 04:48:58 +00:00
|
|
|
return "metal.jpg";
|
|
|
|
if (iid == IID_ARM_TESLA)
|
|
|
|
return "tesla.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_ARM_COMBAT)
|
|
|
|
return "combat.jpg";
|
2009-11-09 04:48:58 +00:00
|
|
|
if (iid == IID_ARM_SEVA)
|
|
|
|
return "seva.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_ARM_FORCE)
|
|
|
|
return "force.jpg";
|
|
|
|
if (iid == IID_ARM_LPOWER)
|
|
|
|
return "power.jpg";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_CHEM_STIMPACK)
|
|
|
|
return "stimpack.jpg";
|
|
|
|
if (iid == IID_CHEM_MEDICALBAG)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "medkit.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_CHEM_SUPERSTIM)
|
|
|
|
return "superstim.jpg";
|
|
|
|
if (iid == IID_CHEM_ADRENALINE)
|
|
|
|
return "adrenaline.jpg";
|
|
|
|
if (iid == IID_CHEM_PSYCHO)
|
|
|
|
return "psycho.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_CHEM_RADX)
|
|
|
|
return "radx.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
if (iid == IID_CHEM_BESERK)
|
|
|
|
return "beserk.jpg";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_BUILD_MRAMMO)
|
|
|
|
return "mrammo.jpg";
|
|
|
|
if (iid == IID_BUILD_SHIELDGEN)
|
|
|
|
return "shieldgen.jpg";
|
|
|
|
if (iid == IID_BUILD_AUTODOC)
|
|
|
|
return "autodoc.jpg";
|
|
|
|
if (iid == IID_BUILD_ROBOFANG)
|
|
|
|
return "robofang.jpg";
|
2006-01-15 01:38:45 +00:00
|
|
|
if (iid == IID_BUILD_TTURRET)
|
|
|
|
return "tesla.jpg";
|
|
|
|
if (iid == IID_BUILD_RTURRET)
|
|
|
|
return "rturret.jpg";
|
|
|
|
if (iid == IID_BUILD_GTURRET)
|
|
|
|
return "gturret.jpg";
|
2006-01-06 03:50:25 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
if (iid == IID_EQUIP_MEDIC_BAG)
|
|
|
|
return "equip/medbag.jpg";
|
|
|
|
if (iid == IID_EQUIP_GOGGLES)
|
|
|
|
return "equip/goggles.jpg";
|
|
|
|
if (iid == IID_EQUIP_SILENCER)
|
|
|
|
return "equip/silencer.jpg";
|
|
|
|
if (iid == IID_EQUIP_BELTPOUCH)
|
|
|
|
return "equip/beltpouch.jpg";
|
|
|
|
if (iid == IID_EQUIP_TOOLKIT)
|
|
|
|
return "equip/WRENCH2.jpg";
|
|
|
|
if (iid == IID_EQUIP_BACKPACK)
|
|
|
|
return "equip/haversack.jpg";
|
2006-01-09 02:52:18 +00:00
|
|
|
if (iid == IID_EQUIP_CLIMBINGGEAR)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "equip/cgear.jpg";
|
|
|
|
if (iid == IID_EQUIP_BATTERY)
|
|
|
|
return "equip/battery.jpg";
|
2006-01-09 03:02:05 +00:00
|
|
|
if (iid == IID_EQUIP_STEALTHBOY)
|
2009-11-05 03:40:39 +00:00
|
|
|
return "equip/stealthboy.jpg";
|
|
|
|
if (iid == IID_EQUIP_EXTENDER)
|
|
|
|
return "equip/silencer.jpg";
|
|
|
|
if (iid == IID_EQUIP_XRAY)
|
|
|
|
return "equip/xray.jpg";
|
|
|
|
|
|
|
|
|
|
|
|
if (iid == IID_MISC_NUKACOLA)
|
|
|
|
return "junk/nukacola.jpg";
|
|
|
|
if (iid == IID_MISC_JUNK)
|
|
|
|
return "junk/junk.jpg";
|
|
|
|
if (iid == IID_MISC_CHEMICALS)
|
|
|
|
return "junk/chemicals.jpg";
|
|
|
|
if (iid == IID_MISC_AEROSOL)
|
|
|
|
return "junk/aerosol.jpg";
|
|
|
|
if (iid == IID_MISC_RDXCRYSTAL)
|
|
|
|
return "junk/rdxcrystal.jpg";
|
|
|
|
if (iid == IID_MISC_STEELPIPE)
|
|
|
|
return "junk/pipe.jpg";
|
|
|
|
if (iid == IID_MISC_DUCKTAPE)
|
|
|
|
return "junk/tape.jpg";
|
|
|
|
if (iid == IID_MISC_LCD)
|
|
|
|
return "junk/lcd.jpg";
|
|
|
|
if (iid == IID_MISC_CIRCUITBOARD)
|
|
|
|
return "junk/board.jpg";
|
|
|
|
if (iid == IID_MISC_COPPERWIRE)
|
|
|
|
return "junk/wire.jpg";
|
|
|
|
if (iid == IID_MISC_HMXCOMPOUND)
|
|
|
|
return "junk/hmx.jpg";
|
|
|
|
if (iid == IID_MISC_GUM)
|
|
|
|
return "junk/gum.jpg";
|
|
|
|
if (iid == IID_MISC_XRAYTUBE)
|
|
|
|
return "junk/tube.jpg";
|
2006-01-09 02:52:18 +00:00
|
|
|
|
2006-01-06 03:50:25 +00:00
|
|
|
bprint(PRINT_MEDIUM, ftos(iid), " without a name!\n");
|
|
|
|
return strcat("unknown.jpg", ftos(iid));
|
|
|
|
};
|
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
|
2006-01-06 01:52:52 +00:00
|
|
|
float(string itname) ItemIDOfName =
|
|
|
|
{
|
|
|
|
if (itname == "nothing")
|
|
|
|
return IID_NONE;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "WRENCH")
|
|
|
|
return IID_WP_WRENCH;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "knife")
|
|
|
|
return IID_WP_KNIFE;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "hand-axe")
|
2009-11-09 04:48:58 +00:00
|
|
|
return IID_WP_SLEDGE;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "spear")
|
|
|
|
return IID_WP_SPEAR;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "poweraxe")
|
|
|
|
return IID_WP_POWERAXE;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "usp")
|
2006-01-06 01:52:52 +00:00
|
|
|
return IID_WP_USP;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "glock")
|
|
|
|
return IID_WP_GLOCK;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "desert eagle")
|
|
|
|
return IID_WP_DEAGLE;
|
2006-01-09 02:52:18 +00:00
|
|
|
if (itname == "deagle")
|
|
|
|
return IID_WP_DEAGLE;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "needler")
|
|
|
|
return IID_WP_NEEDLER;
|
|
|
|
if (itname == "alien blaster")
|
|
|
|
return IID_WP_ALIENBLASTER;
|
2006-01-09 02:52:18 +00:00
|
|
|
if (itname == "blaster")
|
|
|
|
return IID_WP_ALIENBLASTER;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "pipe rifle")
|
|
|
|
return IID_WP_PIPERIFLE;
|
|
|
|
if (itname == "winchester")
|
|
|
|
return IID_WP_WINCHESTER;
|
|
|
|
if (itname == "mossberg")
|
|
|
|
return IID_WP_MOSSBERG;
|
|
|
|
if (itname == "jackhammer")
|
|
|
|
return IID_WP_JACKHAMMER;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (itname == "grease gun")
|
|
|
|
return IID_WP_GREASEGUN;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "mp9")
|
|
|
|
return IID_WP_MP9;
|
|
|
|
if (itname == "rangemaster")
|
2006-01-06 02:54:07 +00:00
|
|
|
return IID_WP_RANGEMASTER;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "rangemaster (scope)")
|
|
|
|
return IID_WP_RANGEMASTER_SCOPE;
|
2006-01-12 01:55:21 +00:00
|
|
|
if (itname == "fnfal")
|
|
|
|
return IID_WP_FNFAL;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "ak-47")
|
|
|
|
return IID_WP_AK112;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "ak-112")
|
|
|
|
return IID_WP_AK112;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "ak-112 m")
|
|
|
|
return IID_WP_AK112_M;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "ak-74")
|
|
|
|
return IID_WP_AK74;
|
2009-11-09 15:24:37 +00:00
|
|
|
if (itname == "bozar")
|
2009-11-05 03:40:39 +00:00
|
|
|
return IID_WP_ACR;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "dks-1")
|
|
|
|
return IID_WP_DKS1;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "dks-1 silenced")
|
|
|
|
return IID_WP_DKS1_S;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "moonlight")
|
|
|
|
return IID_WP_MOONLIGHT;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "g11")
|
|
|
|
return IID_WP_G11;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "gauss rifle")
|
|
|
|
return IID_WP_GAUSERIFLE;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "phased plasma rifle")
|
2006-01-06 01:52:52 +00:00
|
|
|
return IID_WP_PULSERIFLE;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "plasma carbine")
|
|
|
|
return IID_WP_PLASMACARBINE;
|
|
|
|
if (itname == "turbo plasma rifle")
|
|
|
|
return IID_WP_TURBOPLASMA;
|
2006-01-12 02:12:31 +00:00
|
|
|
if (itname == "rocket")
|
|
|
|
return IID_WP_ROCKETLAUNCHER;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "laser minigun")
|
|
|
|
return IID_WP_LASERGATLING;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "frag grenade")
|
|
|
|
return IID_GREN_FRAG;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "stun grenade")
|
|
|
|
return IID_GREN_STUN;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "emp grenade")
|
|
|
|
return IID_GREN_EMP;
|
|
|
|
if (itname == "smoke grenade")
|
|
|
|
return IID_GREN_SMOKE;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "flash grenade")
|
2006-01-06 01:52:52 +00:00
|
|
|
return IID_GREN_FLASH;
|
|
|
|
if (itname == "leather armor")
|
|
|
|
return IID_ARM_LEATHER;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (itname == "vandal armor")
|
|
|
|
return IID_ARM_VANDAL;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "metal armor")
|
|
|
|
return IID_ARM_METAL;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (itname == "tesla armor")
|
|
|
|
return IID_ARM_TESLA;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "combat armor")
|
|
|
|
return IID_ARM_COMBAT;
|
2009-11-09 04:48:58 +00:00
|
|
|
if (itname == "seva suit")
|
|
|
|
return IID_ARM_SEVA;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "force armor")
|
|
|
|
return IID_ARM_FORCE;
|
|
|
|
if (itname == "light power armor")
|
|
|
|
return IID_ARM_LPOWER;
|
|
|
|
if (itname == "stimpacks")
|
|
|
|
return IID_CHEM_STIMPACK;
|
|
|
|
if (itname == "stimpack")
|
|
|
|
return IID_CHEM_STIMPACK;
|
|
|
|
if (itname == "medical bag")
|
|
|
|
return IID_CHEM_MEDICALBAG;
|
|
|
|
if (itname == "bandages")
|
|
|
|
return IID_CHEM_MEDICALBAG;
|
|
|
|
if (itname == "superstims")
|
|
|
|
return IID_CHEM_SUPERSTIM;
|
|
|
|
if (itname == "adrenaline")
|
|
|
|
return IID_CHEM_ADRENALINE;
|
|
|
|
if (itname == "psycho")
|
|
|
|
return IID_CHEM_PSYCHO;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "rad-x")
|
|
|
|
return IID_CHEM_RADX;
|
2006-01-06 01:52:52 +00:00
|
|
|
if (itname == "beserk")
|
|
|
|
return IID_CHEM_BESERK;
|
|
|
|
if (itname == "mr.ammo")
|
|
|
|
return IID_BUILD_MRAMMO;
|
|
|
|
if (itname == "mrammo")
|
|
|
|
return IID_BUILD_MRAMMO;
|
|
|
|
if (itname == "shield-gen")
|
|
|
|
return IID_BUILD_SHIELDGEN;
|
|
|
|
if (itname == "shieldgen")
|
|
|
|
return IID_BUILD_SHIELDGEN;
|
|
|
|
if (itname == "auto-doc")
|
|
|
|
return IID_BUILD_AUTODOC;
|
|
|
|
if (itname == "autodoc")
|
|
|
|
return IID_BUILD_AUTODOC;
|
|
|
|
if (itname == "robofang")
|
|
|
|
return IID_BUILD_ROBOFANG;
|
|
|
|
if (itname == "doggie")
|
|
|
|
return IID_BUILD_ROBOFANG;
|
2006-01-09 02:52:18 +00:00
|
|
|
if (itname == "climbinggear")
|
|
|
|
return IID_EQUIP_CLIMBINGGEAR;
|
|
|
|
if (itname == "gear")
|
|
|
|
return IID_EQUIP_CLIMBINGGEAR;
|
2006-01-09 03:02:05 +00:00
|
|
|
if (itname == "stealthboy")
|
|
|
|
return IID_EQUIP_STEALTHBOY;
|
2009-11-05 03:40:39 +00:00
|
|
|
if (itname == "xray")
|
|
|
|
return IID_EQUIP_XRAY;
|
|
|
|
if (itname == "extender")
|
|
|
|
return IID_EQUIP_EXTENDER;
|
|
|
|
|
|
|
|
if (itname == "nukacola")
|
|
|
|
return IID_MISC_NUKACOLA;
|
|
|
|
if (itname == "junk")
|
|
|
|
return IID_MISC_JUNK;
|
|
|
|
if (itname == "chemicals")
|
|
|
|
return IID_MISC_CHEMICALS;
|
|
|
|
if (itname == "aerosol")
|
|
|
|
return IID_MISC_AEROSOL;
|
|
|
|
if (itname == "rdx")
|
|
|
|
return IID_MISC_RDXCRYSTAL;
|
|
|
|
if (itname == "steelpipe")
|
|
|
|
return IID_MISC_STEELPIPE;
|
|
|
|
if (itname == "duct-tape")
|
|
|
|
return IID_MISC_DUCKTAPE;
|
|
|
|
if (itname == "lcd")
|
|
|
|
return IID_MISC_LCD;
|
|
|
|
if (itname == "circuit board")
|
|
|
|
return IID_MISC_CIRCUITBOARD;
|
|
|
|
if (itname == "copper wire")
|
|
|
|
return IID_MISC_COPPERWIRE;
|
|
|
|
if (itname == "nukacola")
|
|
|
|
return IID_MISC_NUKACOLA;
|
|
|
|
if (itname == "hmx compound")
|
|
|
|
return IID_MISC_HMXCOMPOUND;
|
|
|
|
if (itname == "chewing gum")
|
|
|
|
return IID_MISC_GUM;
|
|
|
|
if (itname == "x-ray tube")
|
|
|
|
return IID_MISC_XRAYTUBE;
|
2006-01-09 03:02:05 +00:00
|
|
|
|
2006-01-15 01:38:45 +00:00
|
|
|
if (itname == "sprintkit")
|
|
|
|
return IID_EQUIP_SPRINTKIT;
|
|
|
|
|
|
|
|
if (itname == "tesla")
|
|
|
|
return IID_BUILD_TTURRET;
|
|
|
|
|
2006-01-06 01:52:52 +00:00
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
|
|
|
|
float(float slotno, float iid) FitsInSlot =
|
|
|
|
{
|
2009-11-05 03:40:39 +00:00
|
|
|
|
2006-01-04 20:45:08 +00:00
|
|
|
if (!iid) //nothing can be put in every slot.
|
|
|
|
return true;
|
2006-01-02 02:45:34 +00:00
|
|
|
if (slotno == 1 || slotno == 2)
|
|
|
|
return IsShootable(iid);
|
|
|
|
if (slotno == 3)
|
|
|
|
return IsArmor(iid);
|
2009-11-05 03:40:39 +00:00
|
|
|
if (slotno == 4)
|
|
|
|
return IsEquip(iid);
|
|
|
|
if (slotno == 17)
|
|
|
|
return IsJunk(iid);
|
|
|
|
if (slotno == 18)
|
|
|
|
return IsJunk(iid);
|
|
|
|
if (slotno == 19)
|
|
|
|
return IsJunk(iid);
|
|
|
|
if (slotno == 20)
|
|
|
|
return IsJunk(iid);
|
|
|
|
if (slotno == 21)
|
|
|
|
return IsJunk(iid);
|
|
|
|
if (slotno == 22)
|
|
|
|
return IsJunk(iid);
|
2009-11-07 13:28:20 +00:00
|
|
|
|
2009-11-05 03:40:39 +00:00
|
|
|
|
2006-01-02 02:45:34 +00:00
|
|
|
return true;
|
2009-11-05 03:40:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
string (float slot, float int) PerkName =
|
|
|
|
{
|
|
|
|
if (int == 1)
|
|
|
|
return "unbreakable";
|
|
|
|
if (int == 2)
|
|
|
|
return "feral swiftness";
|
|
|
|
if (int == 3)
|
|
|
|
return "stunt man";
|
|
|
|
if (int == 4)
|
|
|
|
return "kick in the door!";
|
|
|
|
if (int == 5)
|
|
|
|
return "quick draw";
|
|
|
|
if (int == 6)
|
|
|
|
return "light step";
|
|
|
|
if (int == 7)
|
|
|
|
return "surprise attack";
|
|
|
|
if (int == 8)
|
|
|
|
return "large and in charge";
|
|
|
|
if (int == 9)
|
|
|
|
return "nintendo gamer";
|
|
|
|
if (int == 10)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "esp";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (int == 11)
|
|
|
|
return "last man standing";
|
|
|
|
if (int == 12)
|
|
|
|
return "bodysnatcher";
|
|
|
|
if (int == 13)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "medicine man";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (int == 14)
|
|
|
|
return "dark alchemist";
|
|
|
|
if (int == 15)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "renegade commando";
|
2009-11-05 03:40:39 +00:00
|
|
|
if (int == 16)
|
|
|
|
return "power shot";
|
|
|
|
if (int == 17)
|
|
|
|
return "one in a million";
|
|
|
|
if (int == 18)
|
|
|
|
return "master blaster";
|
|
|
|
if (int == 19)
|
|
|
|
return "death wish";
|
|
|
|
};
|
|
|
|
|
|
|
|
string(float int) GetPerkImage =
|
|
|
|
{
|
|
|
|
if (int == 1)
|
|
|
|
return "gui/perks/ironman.jpg";
|
|
|
|
else if (int == 2)
|
|
|
|
return "gui/perks/swiftness.jpg";
|
|
|
|
else if (int == 3)
|
|
|
|
return "gui/perks/stuntman.jpg";
|
|
|
|
else if (int == 4)
|
|
|
|
return "gui/perks/kickin.jpg";
|
|
|
|
else if (int == 5)
|
|
|
|
return "gui/perks/quickdraw.jpg";
|
|
|
|
else if (int == 6)
|
|
|
|
return "gui/perks/lightstep.jpg";
|
|
|
|
else if (int == 7)
|
|
|
|
return "gui/perks/surprise.jpg";
|
|
|
|
else if (int == 8)
|
|
|
|
return "gui/perks/large.jpg";
|
|
|
|
else if (int == 9)
|
|
|
|
return "gui/perks/nintendo.jpg";
|
|
|
|
else if (int == 10)
|
|
|
|
return "gui/perks/redscare.jpg";
|
|
|
|
else if (int == 11)
|
|
|
|
return "gui/perks/lastman.jpg";
|
|
|
|
else if (int == 12)
|
|
|
|
return "gui/perks/bodysnatcher.jpg";
|
|
|
|
else if (int == 13)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "gui/perks/healingway.jpg";
|
2009-11-05 03:40:39 +00:00
|
|
|
else if (int == 14)
|
|
|
|
return "gui/perks/alchemist.jpg";
|
|
|
|
else if (int == 15)
|
|
|
|
return "gui/perks/eastern.jpg";
|
|
|
|
else if (int == 16)
|
|
|
|
return "gui/perks/powershot.jpg";
|
|
|
|
else if (int == 17)
|
|
|
|
return "gui/perks/million.jpg";
|
|
|
|
else if (int == 18)
|
|
|
|
return "gui/perks/demoman.jpg";
|
|
|
|
else if (int == 19)
|
|
|
|
return "gui/perks/lightning.jpg";
|
|
|
|
else
|
|
|
|
return "gui/perks/none.jpg";
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
string(float int) GetPerkDesc =
|
|
|
|
{
|
|
|
|
if (int == 1)
|
|
|
|
return "25% damage resist bonus while at half health";
|
|
|
|
else if (int == 2)
|
|
|
|
return "provides a flat 10% bonus movement speed";
|
|
|
|
else if (int == 3)
|
|
|
|
return "instant stance change, fast prone movement";
|
|
|
|
else if (int == 4)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "smash down locked doors and chests, very loud";
|
2009-11-05 03:40:39 +00:00
|
|
|
else if (int == 5)
|
|
|
|
return "fast reloading, instant weapon switching";
|
|
|
|
else if (int == 6)
|
|
|
|
return "reduced footsteps, +10% sneak, don't trip traps";
|
|
|
|
else if (int == 7)
|
|
|
|
return "25% damage bonus to any enemy not targetting you";
|
|
|
|
else if (int == 8)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "gain melee knockback and berserker rage bonus";
|
2009-11-05 03:40:39 +00:00
|
|
|
else if (int == 9)
|
|
|
|
return "you'll sometimes enter 'the zone'!";
|
|
|
|
else if (int == 10)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "+10% miss chance to you and any nearby allies";
|
2009-11-05 03:40:39 +00:00
|
|
|
else if (int == 11)
|
|
|
|
return "recover hit points as you mow down foes";
|
|
|
|
else if (int == 12)
|
|
|
|
return "become a master of disguise by looting dead bodies";
|
|
|
|
else if (int == 13)
|
2009-11-05 05:16:43 +00:00
|
|
|
return "25% bonus to all chems used on yourself and others";
|
2009-11-05 03:40:39 +00:00
|
|
|
else if (int == 14)
|
|
|
|
return "mix chems together to make better ones";
|
|
|
|
else if (int == 15)
|
|
|
|
return "you have mastered martial arts and kick attacks";
|
|
|
|
else if (int == 16)
|
|
|
|
return "25% damage bonus to your aimed shots";
|
|
|
|
else if (int == 17)
|
|
|
|
return "you sometimes get very, very lucky with anything";
|
|
|
|
else if (int == 18)
|
|
|
|
return "bigger crosshairs means even bigger damage bonus";
|
|
|
|
else if (int == 19)
|
|
|
|
return "20% damage bonus and you also take 20% more damage";
|
|
|
|
else
|
|
|
|
return "";
|
|
|
|
|
2009-11-05 05:16:43 +00:00
|
|
|
};
|