]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon.qh
Merge branch 'master' into TimePath/csqc_viewmodels
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon.qh
index 3016b501f8941741dbba3ca8b1e97d5b7caa3fab..71e121f81201ea0b39504c46a63ed72290b0ddfd 100644 (file)
@@ -18,6 +18,18 @@ int weaponslot(.entity weaponentity)
        return 0;
 }
 
        return 0;
 }
 
+// weapon states (actor.(weaponentity).state)
+/** no weapon selected */
+const int WS_CLEAR  = 0;
+/** raise frame */
+const int WS_RAISE  = 1;
+/** deselecting frame */
+const int WS_DROP   = 2;
+/** fire state */
+const int WS_INUSE  = 3;
+/** idle frame */
+const int WS_READY  = 4;
+
 #ifdef SVQC
 .int ammo_shells;
 .int ammo_nails;
 #ifdef SVQC
 .int ammo_shells;
 .int ammo_nails;