]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/common/items.qh
New stuff:
[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_LAST                          = 15; float WEPBIT_ALL              = 32767;
20 float WEP_COUNT             = 16;
21
22 float   IT_UNLIMITED_WEAPON_AMMO  = 1;
23 // when this bit is set, using a weapon does not reduce ammo. Checkpoints can give this powerup.
24 float   IT_UNLIMITED_SUPERWEAPONS = 2;
25 // when this bit is set, using a superweapon does not throw it away. Checkpoints can give this powerup.
26 float   IT_UNLIMITED_AMMO         = 3;
27 // both of these combined
28 float   IT_CTF_SHIELDED           = 4; // set for the flag shield
29 float   IT_SHELLS                               = 256;
30 float   IT_NAILS                                = 512;
31 float   IT_ROCKETS                              = 1024;
32 float   IT_CELLS                                = 2048;
33 float   IT_SUPERWEAPON                  = 4096;
34 float   IT_AMMO                                 = 7936;
35 float   IT_STRENGTH                             = 8192;
36 float   IT_INVINCIBLE                   = 16384;
37 float   IT_HEALTH                               = 32768;
38 // union:
39         // for items:
40         float   IT_KEY1                                 = 131072;
41         float   IT_KEY2                                 = 262144;
42         // for players:
43         float   IT_RED_FLAG_TAKEN               = 32768;
44         float   IT_RED_FLAG_LOST                = 65536;
45         float   IT_RED_FLAG_CARRING             = 98304;
46         float   IT_BLUE_FLAG_TAKEN              = 131072;
47         float   IT_BLUE_FLAG_LOST               = 262144;
48         float   IT_BLUE_FLAG_CARRING    = 393216;
49 // end
50 float   IT_5HP                                  = 524288;
51 float   IT_25HP                                 = 1048576;
52 float   IT_ARMOR_SHARD                  = 2097152;
53 float   IT_ARMOR                                = 4194304;
54
55 // variables:
56 string weaponpriority_hudselector_0;
57 string weaponpriority_hudselector_1;
58
59 // functions:
60 entity get_weaponinfo(float id);
61 string W_FixWeaponOrder(string order, float complete);
62 void RegisterWeapons();
63
64 #define WEPSPAWNFLAG_NORMAL 1
65 #define WEPSPAWNFLAG_CANCLIMB 2
66
67 // entity properties of weaponinfo:
68 .float weapon; // WEP_...
69 .float weapons; // WEPBIT_...
70 .string netname; // short name
71 .string message; // human readable name
72 .float items; // IT_...
73 .float(float) weapon_func; // w_...
74 .string mdl; // modelname without g_, v_, w_
75 .string model; // full name of g_ model
76 .float spawnflags; // WEPSPAWNFLAG_... combined
77 .float impulse; // weapon impulse
78 .float bot_pickupbasevalue; // bot weapon priority
79 .string model2; // wpn- sprite name