]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qh
Viewmodels: CSQC rendering
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qh
index 2f974a4f47d54ac141ff51c2e9120731e2d9e5c1..ecfe58199e135ae4e91a079c9d2b5c252f2a710a 100644 (file)
@@ -174,8 +174,37 @@ STATIC_INIT(register_weapons_done)
     weaponorder_byid = strzone(substring(weaponorder_byid, 1, strlen(weaponorder_byid) - 1));
 }
 
-#ifdef SVQC
-void CL_WeaponEntity_SetModel(entity this, int slot, string name);
+#ifndef MENUQC
+
+.entity weaponentity[MAX_WEAPONSLOTS];
+.entity weaponchild;
+.entity exteriorweaponentity;
+.vector weaponentity_glowmod;
+
+//.int weapon; // current weapon
+.int switchweapon; // weapon requested to switch to
+.int switchingweapon; // weapon currently being switched to (is copied from switchweapon once switch is possible)
+.string weaponname; // name of .weapon
+
+.vector spawnorigin; // for casings
+
+// weapon animation vectors:
+.vector anim_fire1;
+.vector anim_fire2;
+.vector anim_idle;
+.vector anim_reload;
+
+// static frame globals
+.int wframe;
+
+const float WFRAME_DONTCHANGE = -1;
+const float WFRAME_FIRE1 = 0;
+const float WFRAME_FIRE2 = 1;
+const float WFRAME_IDLE = 2;
+const float WFRAME_RELOAD = 3;
+
+vector shotorg_adjust_values(vector vecs, bool y_is_right, bool visual, int algn);
+void CL_WeaponEntity_SetModel(entity this, string name);
 #endif
 
 #endif