*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@262 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -67,8 +67,7 @@ void newname(char *name) { c2sinit = false; strn0cpy(player1->name, name, 16); }
|
||||
void newteam(char *name)
|
||||
{
|
||||
c2sinit = false;
|
||||
if(m_ctf) ctf_team(name);
|
||||
else strn0cpy(player1->team, name, 5);
|
||||
ctf_team(name);
|
||||
};
|
||||
|
||||
COMMANDN(team, newteam, ARG_1STR);
|
||||
|
||||
+3
-3
@@ -328,11 +328,11 @@ extern bool demoplayback;
|
||||
#define m_ctf (gamemode==5)
|
||||
|
||||
#define TEAM_CLA 0 //
|
||||
#define TEAM_RSVF 1 //
|
||||
#define TEAM_RVSF 1 //
|
||||
// rb means red/blue
|
||||
#define rb_team_string(t) ((t) ? "RVSF" : "CLA")
|
||||
#define rb_team_int(t) (strcmp((t), "CLA") == 0 ? TEAM_CLA : TEAM_RSVF)
|
||||
#define rb_opposite(o) ((o) == TEAM_CLA ? TEAM_RSVF : TEAM_CLA)
|
||||
#define rb_team_int(t) (strcmp((t), "CLA") == 0 ? TEAM_CLA : TEAM_RVSF)
|
||||
#define rb_opposite(o) ((o) == TEAM_CLA ? TEAM_RVSF : TEAM_CLA)
|
||||
|
||||
enum // function signatures for script functions, see command.cpp
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ void renderentities()
|
||||
sprintf_sd(path)("pickups/flags/%s", rb_team_string(e.attr2));
|
||||
mapmodelinfo mmi = {10, 4, 0, 0, path};
|
||||
if(!&mmi) continue;
|
||||
rendermodel(mmi.name, 0, 7, 0, (float)mmi.rad, e.x, f.state==CTFF_INBASE ? (float)S(e.x, e.y)->floor : e.z, e.y, (float)((e.attr1+7)-(e.attr1+7)%15), 0, false, 1.0f, 120.0f, mmi.snap);
|
||||
rendermodel(mmi.name, 0, 1, 0, (float)mmi.rad, e.x, f.state==CTFF_INBASE ? (float)S(e.x, e.y)->floor : e.z, e.y, (float)((e.attr1+7)-(e.attr1+7)%15), 0, false, 1.0f, 120.0f, mmi.snap);
|
||||
};
|
||||
}
|
||||
else
|
||||
|
||||
@@ -414,7 +414,7 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat
|
||||
glColor4f(1.0f, 1.0f, 1.0f, 0.2f);
|
||||
if(flaginfos[TEAM_CLA].state == CTFF_INBASE) glDisable(GL_BLEND); else glEnable(GL_BLEND);
|
||||
drawicon(64*ctf_scl, 0, 1940, 1650, 11, 1.0f/4.0f);
|
||||
if(flaginfos[TEAM_RSVF].state == CTFF_INBASE) glDisable(GL_BLEND); else glEnable(GL_BLEND);
|
||||
if(flaginfos[TEAM_RVSF].state == CTFF_INBASE) glDisable(GL_BLEND); else glEnable(GL_BLEND);
|
||||
drawicon(0, 0, 1820, 1650, 11, 1.0f/4.0f);
|
||||
glDisable(GL_BLEND);
|
||||
drawicon(rb_team_int(player1->team)*64*ctf_scl, 64*ctf_scl, VIRTW-128-10, 10, 11, 1.0f/4.0f); // shows which team you are
|
||||
|
||||
@@ -62,7 +62,7 @@ void reload()
|
||||
if(akimbo)
|
||||
{
|
||||
akimbolastaction[akimboside?1:0] = lastmillis;
|
||||
akimbolastaction[akimboside?0:1] = lastmillis + (reloadtime(GUN_PISTOL)/2);
|
||||
akimbolastaction[akimboside?0:1] = lastmillis;// + (reloadtime(GUN_PISTOL)/2);
|
||||
};
|
||||
|
||||
player1->gunwait = guns[player1->gunselect].reloadtime;
|
||||
|
||||
Reference in New Issue
Block a user