From: Rudolf Polzer Date: Wed, 21 Dec 2011 20:50:17 +0000 (+0100) Subject: add a vanilla settings.qh X-Git-Tag: xonotic-v0.6.0~74^2~75^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=97669041481bf0a3eebe2a20df996250584c207b;p=xonotic%2Fxonotic-data.pk3dir.git add a vanilla settings.qh --- diff --git a/qcsrc/common/csqcmodel_settings.qh b/qcsrc/common/csqcmodel_settings.qh index 257676db7..2164ecae4 100644 --- a/qcsrc/common/csqcmodel_settings.qh +++ b/qcsrc/common/csqcmodel_settings.qh @@ -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 index 000000000..aab2a5637 --- /dev/null +++ b/qcsrc/csqcmodellib/settings.qh @@ -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 = ...;