mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-03-25 12:01:25 +00:00
%s/TeamFortress_TeamGetColor/TeamGetColor/g
This commit is contained in:
parent
6fda29570c
commit
3c837e0bc3
7 changed files with 30 additions and 30 deletions
2
admin.qc
2
admin.qc
|
@ -373,7 +373,7 @@ void() Admin_Cmd =
|
|||
|
||||
// Set the player's color
|
||||
stuffcmd(self.admin_kick, "color ");
|
||||
tc = TeamFortress_TeamGetColor(targetteam) - 1;
|
||||
tc = TeamGetColor(targetteam) - 1;
|
||||
st2 = ftos(tc);
|
||||
|
||||
//- OfN - Nice colors
|
||||
|
|
|
@ -32,7 +32,7 @@ void () TeamAllPlayers;
|
|||
// TeamFortress prototypes
|
||||
void() TeamFortress_MOTD;
|
||||
void() TeamFortress_CheckTeamCheats;
|
||||
//float(float tno) TeamFortress_TeamGetColor; //- OfN - not used here
|
||||
//float(float tno) TeamGetColor; //- OfN - not used here
|
||||
void(entity Viewer, float pc, float rpc) TeamFortress_PrintClassName;
|
||||
void(entity Viewer, float pc) TeamFortress_PrintJobName;
|
||||
void() TeamFortress_RemoveTimers;
|
||||
|
|
|
@ -1226,7 +1226,7 @@ void() BastardTimer =
|
|||
|
||||
//Reset their color
|
||||
stuffcmd(te, "color ");
|
||||
st = ftos(TeamFortress_TeamGetColor(te.team_no) - 1);
|
||||
st = ftos(TeamGetColor(te.team_no) - 1);
|
||||
|
||||
//- OfN - Nice colors
|
||||
if (nicecolors==1) st =TeamGetNiceColor(te.team_no);
|
||||
|
|
2
menu.qc
2
menu.qc
|
@ -22,7 +22,7 @@ void() W_SetCurrentAmmo;
|
|||
void(entity p) bound_other_ammo;
|
||||
float(float tno) TeamFortress_TeamSet;
|
||||
void(entity p) TeamFortress_SetSkin;
|
||||
float(float tno) TeamFortress_TeamGetColor;
|
||||
float(float tno) TeamGetColor;
|
||||
void() TeamFortress_ChangeClass;
|
||||
void(float type) TeamFortress_DropAmmo;
|
||||
float() TeamFortress_TeamPutPlayerInTeam;
|
||||
|
|
6
spy.qc
6
spy.qc
|
@ -551,7 +551,7 @@ void() TeamFortress_SpyUndercoverThink =
|
|||
self.owner.undercover_team = self.team;
|
||||
// Set their color
|
||||
stuffcmd(self.owner, "color ");
|
||||
tc = TeamFortress_TeamGetColor(self.team) - 1;
|
||||
tc = TeamGetColor(self.team) - 1;
|
||||
|
||||
st = ftos(tc);
|
||||
//- OfN - Nice colors //? team_no
|
||||
|
@ -629,7 +629,7 @@ void(float teamno) TeamFortress_SpyChangeColor =
|
|||
//self.immune_to_check = time + 4;
|
||||
self.undercover_team = 0;
|
||||
stuffcmd(self, "color ");
|
||||
tc = TeamFortress_TeamGetColor(self.team_no) - 1;
|
||||
tc = TeamGetColor(self.team_no) - 1;
|
||||
st = ftos(tc);
|
||||
|
||||
//- OfN - Nice colors
|
||||
|
@ -1099,7 +1099,7 @@ void(entity spy) Spy_RemoveDisguise =
|
|||
spy.undercover_team = 0;
|
||||
|
||||
stuffcmd(spy, "color ");
|
||||
tc = TeamFortress_TeamGetColor(spy.team_no) - 1;
|
||||
tc = TeamGetColor(spy.team_no) - 1;
|
||||
|
||||
st = ftos(tc);
|
||||
|
||||
|
|
6
tfort.qc
6
tfort.qc
|
@ -25,7 +25,7 @@ void(entity Item, entity AP, float method) tfgoalitem_RemoveFromPlayer;
|
|||
void() TeamFortress_MOTD;
|
||||
|
||||
// Team Functions
|
||||
float(float tno) TeamFortress_TeamGetColor;
|
||||
float(float tno) TeamGetColor;
|
||||
void(float tno) TeamFortress_TeamSetColor;
|
||||
float() TeamFortress_TeamPutPlayerInTeam;
|
||||
float(float tno) TeamFortress_TeamGetScore;
|
||||
|
@ -457,7 +457,7 @@ void() TeamFortress_Inventory =
|
|||
}
|
||||
|
||||
// Display Team
|
||||
col = TeamFortress_TeamGetColor(self.team_no);
|
||||
col = TeamGetColor(self.team_no);
|
||||
|
||||
sprint(self, PRINT_HIGH, "You're in team ");
|
||||
ac = ftos(self.team_no);
|
||||
|
@ -1921,7 +1921,7 @@ void() TeamFortress_SetEquipment =
|
|||
self.undercover_team = 0;
|
||||
// Set their color
|
||||
stuffcmd(self, "color ");
|
||||
st = ftos(TeamFortress_TeamGetColor(self.team_no) - 1);
|
||||
st = ftos(TeamGetColor(self.team_no) - 1);
|
||||
//- OfN - Nice colors
|
||||
if (nicecolors==1) st =TeamGetNiceColor(self.team_no);
|
||||
|
||||
|
|
40
tforttm.qc
40
tforttm.qc
|
@ -11,7 +11,7 @@
|
|||
// Team Functions
|
||||
float() TeamFortress_TeamPutPlayerInTeam;
|
||||
float(float tno) TeamFortress_TeamSet;
|
||||
float(float tno) TeamFortress_TeamGetColor;
|
||||
float(float tno) TeamGetColor;
|
||||
void(float tno) TeamFortress_TeamSetColor;
|
||||
void() TeamFortress_CheckTeamCheats;
|
||||
void(float tno, float scoretoadd) TeamFortress_TeamIncreaseScore;
|
||||
|
@ -81,7 +81,7 @@ float() TeamFortress_TeamPutPlayerInTeam =
|
|||
|
||||
//=========================================================================
|
||||
// Return the color for the team corresponding to the no passed in
|
||||
float(float tno) TeamFortress_TeamGetColor =
|
||||
float(float tno) TeamGetColor =
|
||||
{
|
||||
if (tno == 1)
|
||||
return DARKBLUE;
|
||||
|
@ -275,11 +275,11 @@ float(float tno) TeamFortress_TeamSet =
|
|||
// then this is the first player in this team, and we set the
|
||||
// teamcolor to this player's pants color.
|
||||
// If not, we change this player's color to this team.
|
||||
if (TeamFortress_TeamGetColor(tno) == 0)
|
||||
if (TeamGetColor(tno) == 0)
|
||||
{
|
||||
TeamFortress_TeamSetColor(tno);
|
||||
// If the color wasn't set
|
||||
if (TeamFortress_TeamGetColor(tno) == 0)
|
||||
if (TeamGetColor(tno) == 0)
|
||||
{
|
||||
sprint (self, PRINT_HIGH, "You can't start a new team with your color, since another ");
|
||||
sprint (self, PRINT_HIGH, "already using that color. Change your pants color, then try again.\n");
|
||||
|
@ -298,13 +298,13 @@ float(float tno) TeamFortress_TeamSet =
|
|||
makeImmune(self,time+10);
|
||||
//self.immune_to_check = time + 10;
|
||||
// FOO
|
||||
tc = TeamFortress_TeamGetColor(tno) - 1;
|
||||
tc = TeamGetColor(tno) - 1;
|
||||
st = ftos(tc);
|
||||
setinfokey(self, "color", st);
|
||||
/*
|
||||
// Set the player's color
|
||||
stuffcmd(self, "color ");
|
||||
tc = TeamFortress_TeamGetColor(tno) - 1;
|
||||
tc = TeamGetColor(tno) - 1;
|
||||
st = ftos(tc);
|
||||
|
||||
//- OfN - Nice colors
|
||||
|
@ -341,14 +341,14 @@ float(float tno) TeamFortress_TeamSet =
|
|||
bprint(PRINT_HIGH, ".\n");
|
||||
|
||||
//FOO
|
||||
tc = TeamFortress_TeamGetColor(tno) - 1;
|
||||
tc = TeamGetColor(tno) - 1;
|
||||
st = ftos(tc);
|
||||
setinfokey(self, "topcolor", st);
|
||||
setinfokey(self, "bottomcolor", st);
|
||||
|
||||
// Set the player's color
|
||||
stuffcmd(self, "color ");
|
||||
tc = TeamFortress_TeamGetColor(tno) - 1;
|
||||
tc = TeamGetColor(tno) - 1;
|
||||
st = ftos(tc);
|
||||
|
||||
//- OfN - Nice colors
|
||||
|
@ -444,13 +444,13 @@ void() TeamFortress_CheckTeamCheats =
|
|||
// if they're a spy, check to see if they've changed colors manually
|
||||
if ((self.cutf_items & CUTF_SPY_KIT) && self.undercover_team != 0)
|
||||
{
|
||||
if (TeamFortress_TeamGetColor(self.undercover_team) != self.team) //- OfN
|
||||
//if ((TeamFortress_TeamGetColor(self.undercover_team) != self.team) || !IsValidTopColor(self.undercover_team,tTopColor))
|
||||
if (TeamGetColor(self.undercover_team) != self.team) //- OfN
|
||||
//if ((TeamGetColor(self.undercover_team) != self.team) || !IsValidTopColor(self.undercover_team,tTopColor))
|
||||
// || !IsValidTopColor(self.undercover_team,tTopColor)
|
||||
{
|
||||
// Set their color
|
||||
stuffcmd(self, "color ");
|
||||
tc = TeamFortress_TeamGetColor(self.undercover_team) - 1;
|
||||
tc = TeamGetColor(self.undercover_team) - 1;
|
||||
|
||||
st = ftos(tc);
|
||||
|
||||
|
@ -468,11 +468,11 @@ void() TeamFortress_CheckTeamCheats =
|
|||
return;
|
||||
}
|
||||
}
|
||||
else if (TeamFortress_TeamGetColor(self.team_no) != self.team)
|
||||
else if (TeamGetColor(self.team_no) != self.team)
|
||||
{
|
||||
// Set their color
|
||||
stuffcmd(self, "color ");
|
||||
tc = TeamFortress_TeamGetColor(self.team_no) - 1;
|
||||
tc = TeamGetColor(self.team_no) - 1;
|
||||
st = ftos(tc);
|
||||
|
||||
//- OfN - Nice colors
|
||||
|
@ -495,7 +495,7 @@ void() TeamFortress_CheckTeamCheats =
|
|||
// if they're a spy, check to see if they've changed colors manually
|
||||
if ((self.cutf_items & CUTF_SPY_KIT) && self.undercover_team != 0)
|
||||
{
|
||||
if ((TeamFortress_TeamGetColor(self.undercover_team) - 1) != tc || !IsValidTopColor(self.undercover_team,tTopColor))
|
||||
if ((TeamGetColor(self.undercover_team) - 1) != tc || !IsValidTopColor(self.undercover_team,tTopColor))
|
||||
{
|
||||
#ifdef CHEAT_WARNINGS
|
||||
RPrint(self.netname);
|
||||
|
@ -504,7 +504,7 @@ void() TeamFortress_CheckTeamCheats =
|
|||
|
||||
// Set the player's color
|
||||
stuffcmd(self, "color ");
|
||||
tc = TeamFortress_TeamGetColor(self.undercover_team) - 1;
|
||||
tc = TeamGetColor(self.undercover_team) - 1;
|
||||
st = ftos(tc);
|
||||
|
||||
//- OfN - Nice colors
|
||||
|
@ -521,7 +521,7 @@ void() TeamFortress_CheckTeamCheats =
|
|||
return;
|
||||
}
|
||||
}
|
||||
else if (tc != (TeamFortress_TeamGetColor(self.team_no) - 1) || !IsValidTopColor(self.team_no,tTopColor))
|
||||
else if (tc != (TeamGetColor(self.team_no) - 1) || !IsValidTopColor(self.team_no,tTopColor))
|
||||
{
|
||||
#ifdef CHEAT_WARNINGS
|
||||
RPrint(self.netname);
|
||||
|
@ -530,7 +530,7 @@ void() TeamFortress_CheckTeamCheats =
|
|||
|
||||
// Set the player's color
|
||||
stuffcmd(self, "color ");
|
||||
tc = TeamFortress_TeamGetColor(self.team_no) - 1;
|
||||
tc = TeamGetColor(self.team_no) - 1;
|
||||
st = ftos(tc);
|
||||
|
||||
//- OfN - Nice colors
|
||||
|
@ -850,7 +850,7 @@ void(float all) TeamFortress_TeamShowScores =
|
|||
{
|
||||
while (i <= number_of_teams)
|
||||
{
|
||||
if (TeamFortress_TeamGetColor(i) > 0)
|
||||
if (TeamGetColor(i) > 0)
|
||||
{
|
||||
j = TeamFortress_TeamGetScore(i);
|
||||
st = TeamFortress_TeamGetColorString(i);
|
||||
|
@ -870,7 +870,7 @@ void(float all) TeamFortress_TeamShowScores =
|
|||
// long scores
|
||||
while (i <= number_of_teams)
|
||||
{
|
||||
if (TeamFortress_TeamGetColor(i) > 0)
|
||||
if (TeamGetColor(i) > 0)
|
||||
{
|
||||
if (all)
|
||||
bprint (PRINT_HIGH, "Team ");
|
||||
|
@ -922,7 +922,7 @@ string(float tno) TeamFortress_TeamGetColorString =
|
|||
{
|
||||
local float col;
|
||||
|
||||
col = TeamFortress_TeamGetColor(tno);
|
||||
col = TeamGetColor(tno);
|
||||
if (col == 1)
|
||||
return "White";
|
||||
if (col == 2)
|
||||
|
|
Loading…
Reference in a new issue