]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon.qh
Viewmodel: animate clientside
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon.qh
index 3a878a461d1f933a93160409ae4f873e5aae5ff7..2a92f955b50fc1cd16beb89dbe64f50de2ec3c2f 100644 (file)
@@ -17,6 +17,18 @@ int weaponslot(.entity weaponentity)
        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;
+
 .int ammo_shells;
 .int ammo_nails;
 .int ammo_rockets;