]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/cl_client.qh
Viewmodel: fix switching when spectating
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / cl_client.qh
index 1b462a329538ab3c6527a43b187a08f416d28804..b4c125c6bac84f93aad5bedb1a63ed83eb231c7f 100644 (file)
@@ -8,4 +8,7 @@ float CalcRotRegen(float current, float regenstable, float regenfactor, float re
 
 float Spectate(entity pl);
 
+#define SPECTATE_COPY() [[accumulate]] void SpectateCopy(entity this, entity spectatee)
+#define SPECTATE_COPYFIELD(fld) SPECTATE_COPY() { this.(fld) = spectatee.(fld); }
+
 #endif