view = CSQCModel_server2csqc(player_localentnum);
#endif
- if(view != csqcplayer)
+ if(view && view != csqcplayer)
{
entity oldself = self;
self = view;
if(input_buttons & 4)
refdefflags |= REFDEFFLAG_JUMPING;
+ // note: these two only work in WIP2, but are harmless in WIP1
+ if(getstati(STAT_HEALTH) <= 0)
+ refdefflags |= REFDEFFLAG_DEAD;
+
+ if(intermission)
+ refdefflags |= REFDEFFLAG_INTERMISSION;
+
V_CalcRefdef(view, refdefflags);
}
else
{
+ // FIXME by CSQC spec we have to do this:
+ // but it breaks chase cam
+ /*
setproperty(VF_ORIGIN, pmove_org + '0 0 1' * getstati(STAT_VIEWHEIGHT));
setproperty(VF_ANGLES, view_angles);
+ */
}
{ CSQCPLAYER_HOOK_POSTCAMERASETUP }