Raised This Month: $51 Target: $400
 12% 

TF2 Team Names Or Stripdown Of mp_tournament


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
atmuh
Member
Join Date: Nov 2008
Old 11-23-2008 , 21:41   TF2 Team Names Or Stripdown Of mp_tournament
Reply With Quote #1

OK so after some figuring I now know how this plugin should work.
It must do the following things when mp_tournament is set to 1
set mp_tournament_stopwatch to 1 (default) during waiting for players
as soon as setup round starts mp_tournament_stopwatch must change to 0
somehow enable autoteambalance when mp_tournament is set to 1. I do not know this cvar.
There was a problem with the rounds never ending when I did this, though. I think somehow mp_tournament_stopwatch has to be turned back on towards the end to enable things like mapchooser and have the game go to nextmap when it hits < 5 minutes, but I'm not 100% sure.

---------------------

I'm sure there's a plugin for this already, but I searched a while and didn't find anything. I'd like a plugin so I can change the names of RED and BLU in TF2 without having to enable tournament mode.

Help would be excellent.



Alternatively, could there be a plugin that turns ALL cvars of mp_tournament OFF except the ability to change team names?

Last edited by atmuh; 01-18-2009 at 12:55.
atmuh is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-23-2008 , 22:04   Re: TF2 Team Names
Reply With Quote #2

Moved to the SourceMod section
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
atmuh
Member
Join Date: Nov 2008
Old 11-23-2008 , 22:08   Re: TF2 Team Names
Reply With Quote #3

Thanks, sorry to post in the wrong place.
atmuh is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 11-23-2008 , 22:17   Re: TF2 Team Names
Reply With Quote #4

Actually I do not think a plugin like this does exist yet, and it makes me kind of curious how tournament mode does it. I will look around a bit and see what I can find.
CrimsonGT is offline
r3dh3adkid
Senior Member
Join Date: Apr 2008
Location: Georgia
Old 11-24-2008 , 01:17   Re: TF2 Team Names
Reply With Quote #5

I would love to see this.
__________________
r3dh3adkid is offline
atmuh
Member
Join Date: Nov 2008
Old 11-24-2008 , 10:50   Re: TF2 Team Names
Reply With Quote #6

Yeah my friend told me that a few weeks ago he played on a server that had the team names RED vs TACOS.
As soon as I heard this recreating it was my first priority.
atmuh is offline
atmuh
Member
Join Date: Nov 2008
Old 12-01-2008 , 01:20   Re: TF2 Team Names
Reply With Quote #7

so no luck...?
atmuh is offline
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 12-01-2008 , 17:44   Re: TF2 Team Names
Reply With Quote #8

Change these CVars:
mp_tournament_redteamname
mp_tournament_blueteamname
The JCS is offline
Send a message via MSN to The JCS
atmuh
Member
Join Date: Nov 2008
Old 12-01-2008 , 17:56   Re: TF2 Team Names
Reply With Quote #9

That only works if you're in tournament mode, and I'd like to be able to change them without enabling tournament mode.
atmuh is offline
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 12-01-2008 , 18:44   Re: TF2 Team Names
Reply With Quote #10

Oh, sorry. I tried to change the names editing the ent data, but it looks to work like the scores. Here is the code, if you want to work on it.

Code:
RenameTeams(){
    new iTeam = -1;
    new String:sName[32];
    new iTeamNum = 0;
    while ((iTeam = FindEntityByClassname(iTeam, "tf_team")) != -1){
        iTeamNum = GetEntData(iTeam, FindSendPropInfo("CTeam", "m_iTeamNum"));
        Format(sName, 32, "Team%i", iTeamNum)
        SetEntDataString(iTeam, FindSendPropInfo("CTeam", "m_szTeamname"), sName, 16);
    }
}
The JCS is offline
Send a message via MSN to The JCS
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode