chasing/embodying the followed player (currently with translucent display of client during "embodiment")

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1868 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2008-05-04 14:04:17 +00:00
parent 411e4dd98d
commit fb21aae502
2 changed files with 14 additions and 3 deletions
+2
View File
@@ -439,6 +439,7 @@ void renderclient(playerent *d, const char *mdlname, const char *vwepname, int t
vec o(d->o);
o.z -= d->dyneyeheight();
int basetime = -((int)(size_t)d&0xFFF);
//if(player1->state == CS_SPECTATE && d->clientnum == player1->followplayercn) return; // don't draw followed player (or see below for "see through")
if(d->state==CS_DEAD)
{
if(d==player1 && d->allowmove()) return;
@@ -473,6 +474,7 @@ void renderclient(playerent *d, const char *mdlname, const char *vwepname, int t
a[0].name = vwepname;
a[0].tag = "tag_weapon";
}
if(player1->state == CS_SPECTATE && d->clientnum == player1->followplayercn && player1->spectating == SM_EMBODYPLAYER) anim |= ANIM_TRANSLUCENT; // see through followed player
rendermodel(mdlname, anim, tex, 1.5f, o, d->yaw+90, d->pitch/4, speed, basetime, d, a);
if(isteam(player1->team, d->team)) renderaboveheadicon(d);
}