X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcsqcmodellib%2Fcl_player.qc;h=1f3017afdefd64766649fc7636b9602034b718a9;hb=128cea32714586feb51b4a0d78a6bd4e35fef9f2;hp=9ed8ed6306bb1a297f7b478f5f11a6876b650e24;hpb=845401fd312c66c059aaee1772ac5d79555ab4fc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/csqcmodellib/cl_player.qc b/qcsrc/csqcmodellib/cl_player.qc index 9ed8ed630..1f3017afd 100644 --- a/qcsrc/csqcmodellib/cl_player.qc +++ b/qcsrc/csqcmodellib/cl_player.qc @@ -19,16 +19,29 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ +#if defined(CSQC) + #include "../dpdefs/csprogsdefs.qh" + #include "../client/defs.qh" + #include "../common/constants.qh" + #include "../common/stats.qh" + #include "../common/util.qh" + #include "interpolate.qh" + #include "../client/main.qh" + #include "common.qh" + #include "cl_model.qh" + #include "cl_player.qh" +#elif defined(MENUQC) +#elif defined(SVQC) +#endif -var float autocvar_cl_movement_errorcompensation = 0; +float autocvar_cl_movement_errorcompensation = 0; // engine stuff -const int REFDEFFLAG_TELEPORTED = 1; -const int REFDEFFLAG_JUMPING = 2; float pmove_onground; // weird engine flag we shouldn't really use but have to for now vector csqcplayer_origin, csqcplayer_velocity; -float csqcplayer_sequence, player_pmflags; +float csqcplayer_sequence; +int player_pmflags; float csqcplayer_moveframe; vector csqcplayer_predictionerroro; vector csqcplayer_predictionerrorv; @@ -169,8 +182,6 @@ float CSQCPlayer_IsLocalPlayer() return (self == csqcplayer); } -void(entity e, float fl) V_CalcRefdef = #640; // DP_CSQC_V_CALCREFDEF - void CSQCPlayer_SetCamera() { vector v0;