]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/common/items.qh
Here it is: the @!#%'n Tuba.
[divverent/nexuiz.git] / data / qcsrc / common / items.qh
1 // Weapon indexes
2 // %weaponaddpoint
3 float WEP_FIRST                         =  1;
4 float WEP_LASER                         =  1; float WEPBIT_LASER                        = 1; // always: 2^(w-1)
5 float WEP_SHOTGUN                       =  2; float WEPBIT_SHOTGUN                      = 2;
6 float WEP_UZI                           =  3; float WEPBIT_UZI                          = 4;
7 float WEP_GRENADE_LAUNCHER      =  4; float WEPBIT_GRENADE_LAUNCHER     = 8;
8 float WEP_ELECTRO                       =  5; float WEPBIT_ELECTRO                      = 16;
9 float WEP_CRYLINK                       =  6; float WEPBIT_CRYLINK                      = 32;
10 float WEP_NEX                           =  7; float WEPBIT_NEX                          = 64;
11 float WEP_HAGAR                         =  8; float WEPBIT_HAGAR                        = 128;
12 float WEP_ROCKET_LAUNCHER       =  9; float WEPBIT_ROCKET_LAUNCHER      = 256;
13 float WEP_PORTO                         = 10; float WEPBIT_PORTO                        = 512;
14 float WEP_MINSTANEX                     = 11; float WEPBIT_MINSTANEX            = 1024;
15 float WEP_HOOK                          = 12; float WEPBIT_HOOK                 = 2048;
16 float WEP_HLAC                      = 13; float WEPBIT_HLAC                     = 4096;
17 float WEP_SEEKER                        = 14; float WEPBIT_SEEKER                   = 8192;
18 float WEP_CAMPINGRIFLE      = 15; float WEPBIT_CAMPINGRIFLE     = 16384;
19 float WEP_TUBA              = 16; float WEPBIT_TUBA             = 32768;
20 float WEP_LAST                          = 16; float WEPBIT_ALL              = 65535;
21 float WEP_COUNT             = 17;
22
23 float BOT_PICKUP_RATING_LOW     = 2500;
24 float BOT_PICKUP_RATING_MID     = 5000;
25 float BOT_PICKUP_RATING_HIGH    = 10000;
26
27 float   IT_UNLIMITED_WEAPON_AMMO  = 1;
28 // when this bit is set, using a weapon does not reduce ammo. Checkpoints can give this powerup.
29 float   IT_UNLIMITED_SUPERWEAPONS = 2;
30 // when this bit is set, using a superweapon does not throw it away. Checkpoints can give this powerup.
31 float   IT_CTF_SHIELDED           = 4; // set for the flag shield
32 // using jetpack
33 float   IT_USING_JETPACK          = 8; // confirmation that button is pressed
34 float   IT_JETPACK                = 16; // actual item
35 float   IT_FUEL_REGEN             = 32; // fuel regeneration trigger
36 float   IT_SHELLS                               = 256;
37 float   IT_NAILS                                = 512;
38 float   IT_ROCKETS                              = 1024;
39 float   IT_CELLS                                = 2048;
40 float   IT_SUPERWEAPON                  = 4096;
41 float   IT_FUEL                                 = 128;
42 float   IT_STRENGTH                             = 8192;
43 float   IT_INVINCIBLE                   = 16384;
44 float   IT_HEALTH                               = 32768;
45 // union:
46         // for items:
47         float   IT_KEY1                                 = 131072;
48         float   IT_KEY2                                 = 262144;
49         // for players:
50         float   IT_RED_FLAG_TAKEN               = 32768;
51         float   IT_RED_FLAG_LOST                = 65536;
52         float   IT_RED_FLAG_CARRING             = 98304;
53         float   IT_BLUE_FLAG_TAKEN              = 131072;
54         float   IT_BLUE_FLAG_LOST               = 262144;
55         float   IT_BLUE_FLAG_CARRING    = 393216;
56 // end
57 float   IT_5HP                                  = 524288;
58 float   IT_25HP                                 = 1048576;
59 float   IT_ARMOR_SHARD                  = 2097152;
60 float   IT_ARMOR                                = 4194304;
61
62 float   IT_AMMO                                 = 8064; // IT_SHELLS | IT_NAILS | IT_ROCKETS | IT_CELLS | IT_SUPERWEAPON | IT_FUEL;
63 float   IT_PICKUPMASK           = 51; // IT_FUEL_REGEN | IT_JETPACK | IT_UNLIMITED_AMMO; // strength and invincible are handled separately
64 float   IT_UNLIMITED_AMMO       = 3; // IT_UNLIMITED_SUPERWEAPONS | IT_UNLIMITED_WEAPON_AMMO;
65
66 // variables:
67 string weaponpriority_hudselector_0;
68 string weaponpriority_hudselector_1;
69
70 // functions:
71 entity get_weaponinfo(float id);
72 string W_FixWeaponOrder(string order, float complete);
73 void RegisterWeapons();
74
75 #define WEPSPAWNFLAG_NORMAL 1
76 #define WEPSPAWNFLAG_CANCLIMB 2
77
78 // entity properties of weaponinfo:
79 .float weapon; // WEP_...
80 .float weapons; // WEPBIT_...
81 .string netname; // short name
82 .string message; // human readable name
83 .float items; // IT_...
84 .float(float) weapon_func; // w_...
85 .string mdl; // modelname without g_, v_, w_
86 .string model; // full name of g_ model
87 .float spawnflags; // WEPSPAWNFLAG_... combined
88 .float impulse; // weapon impulse
89 .float bot_pickupbasevalue; // bot weapon priority
90 .string model2; // wpn- sprite name