X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Fcsqcmodel%2Fcl_player.qc;h=a92fcc5c5b600294e8825dc037063f3eb949dace;hb=ce8ccb737c4c4730e59e520362ba8e78426b44be;hp=4331f731045ecf21e3dc4fee94c3a9a86589a950;hpb=fc0623f835eae6bd775d0ae8dbd1378052624a60;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/csqcmodel/cl_player.qc b/qcsrc/lib/csqcmodel/cl_player.qc index 4331f7310..a92fcc5c5 100644 --- a/qcsrc/lib/csqcmodel/cl_player.qc +++ b/qcsrc/lib/csqcmodel/cl_player.qc @@ -526,6 +526,18 @@ vector CSQCPlayer_ApplyChase(entity this, vector v) void CSQCPlayer_CalcRefdef(entity this) { + if(use_engine_refdef) + { + int refdefflags = 0; + if (this.csqcmodel_teleported) refdefflags |= REFDEFFLAG_TELEPORTED; + if (input_buttons & BIT(1)) refdefflags |= REFDEFFLAG_JUMPING; + // note: these two only work in WIP2, but are harmless in WIP1 + if (PHYS_HEALTH(NULL) <= 0 && PHYS_HEALTH(NULL) != -666 && PHYS_HEALTH(NULL) != -2342) refdefflags |= REFDEFFLAG_DEAD; + if (intermission) refdefflags |= REFDEFFLAG_INTERMISSION; + V_CalcRefdef(this, refdefflags); // TODO? uses .health stat in the engine when this isn't called here, may be broken! + return; + } + vector vieworg = this.origin; if(intermission) {