]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add a vanilla settings.qh
authorRudolf Polzer <divverent@alientrap.org>
Wed, 21 Dec 2011 20:50:17 +0000 (21:50 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 21 Dec 2011 20:50:17 +0000 (21:50 +0100)
qcsrc/common/csqcmodel_settings.qh
qcsrc/csqcmodellib/settings.qh [new file with mode: 0644]

index 257676db734871712ae812bf9d95ca4b0bc02130..2164ecae4e7afd6a3c81aaa10ee07439eff0ab21 100644 (file)
@@ -40,6 +40,7 @@
        CSQCModel_Hook_PreDraw(isplayer, islocalplayer);
 #define CSQCPLAYER_HOOK_POSTCAMERASETUP
 
+// force updates of player entities that often even if unchanged
 #define CSQCPLAYER_FORCE_UPDATES 0.25
 
 // mod must define:
diff --git a/qcsrc/csqcmodellib/settings.qh b/qcsrc/csqcmodellib/settings.qh
new file mode 100644 (file)
index 0000000..aab2a56
--- /dev/null
@@ -0,0 +1,27 @@
+// define this if svqc code wants to use .frame2 and .lerpfrac
+//#define CSQCMODEL_HAVE_TWO_FRAMES
+
+// don't define this ever
+//#define CSQCMODEL_SUPPORT_GETTAGINFO_BEFORE_DRAW
+
+// add properties you want networked to CSQC here
+#define CSQCMODEL_EXTRAPROPERTIES \
+       /* CSQCMODEL_PROPERTY(1, float, ReadShort, WriteShort, colormap) */ \
+       /* CSQCMODEL_PROPERTY(2, float, ReadInt24_t, WriteInt24_t, effects) */
+
+// add hook function calls here
+#define CSQCMODEL_HOOK_PREUPDATE
+#define CSQCMODEL_HOOK_POSTUPDATE
+#define CSQCMODEL_HOOK_PREDRAW
+#define CSQCPLAYER_HOOK_POSTCAMERASETUP
+
+// force updates of player entities that often even if unchanged
+#define CSQCPLAYER_FORCE_UPDATES 0.25
+
+// mod must define:
+//vector PL_MIN  = ...;
+//vector PL_MAX  = ...;
+//vector PL_VIEW_OFS  = ...;
+//vector PL_CROUCH_MIN  = ...;
+//vector PL_CROUCH_MAX  = ...;
+//vector PL_CROUCH_VIEW_OFS  = ...;