*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@283 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -53,7 +53,7 @@ void ctf_team(char *name)
|
||||
};
|
||||
|
||||
void newname(char *name) { c2sinit = false; strn0cpy(player1->name, name, 16); };
|
||||
void newskin(int skin) { player1->nextskin = min(0, max(skin, (rb_team_int(player1->team)==TEAM_CLA ? 3 : 5))); c2sinit=false; };
|
||||
void newskin(int skin) { player1->nextskin = max(0, min(skin, (rb_team_int(player1->team)==TEAM_CLA ? 3 : 5))); c2sinit=false; };
|
||||
void newteam(char *name)
|
||||
{
|
||||
if(m_teammode) ctf_team(name);
|
||||
|
||||
@@ -52,7 +52,7 @@ void renderplayer(dynent *d)
|
||||
if(!d) return;
|
||||
|
||||
int team = rb_team_int(d->team);
|
||||
sprintf_sd(mdl)("playermodels/%s/0%i", team==TEAM_CLA ? "terrorist" : "counterterrorist", 1 + min(0, max(d->skin, (rb_team_int(d->team)==TEAM_CLA ? 3 : 5))));
|
||||
sprintf_sd(mdl)("playermodels/%s/0%i", team==TEAM_CLA ? "terrorist" : "counterterrorist", 1 + max(0, min(d->skin, (team==TEAM_CLA ? 3 : 5))));
|
||||
renderclient(d, isteam(player1->team, d->team), mdl, false, 1.6f);
|
||||
|
||||
if(d->gunselect>=0 && d->gunselect<NUMGUNS)
|
||||
|
||||
@@ -165,7 +165,7 @@ void localservertoclient(uchar *buf, int len) // processes any updates from th
|
||||
strcpy_s(d->name, text);
|
||||
sgetstr();
|
||||
strcpy_s(d->team, text);
|
||||
getint(p);
|
||||
d->skin = getint(p);
|
||||
d->lifesequence = getint(p);
|
||||
break;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user