--
[ Picked text/plain from multipart/alternative ]
Ok, to proface this, I am not in front of the SDK so I'm sure someone will
give you the update on this...
  There are a few files you need to edit, one file actually gives you more
than 2 arguments. this file is sharddefs.h - look at that and you're
searching for
 #define TEAM_ROGUES --
  The entire block is this
  #define TEAM_INVALID -1
#define TEAM_UNASSIGNED 0 // not assigned to a team
#define TEAM_SPECTATOR 1 // spectator team
#define TEAM_VANGUARD 2 // vanguard team
#define TEAM_ROGUES 3 // rogues team
 You can see how the engine looks at each team. As an array of some sort,
right? So, just add to it..
  #define TEAM_VAMPIRE 4
 #define TEAM_WEREWOLF 5
 This is where I'm getting a bit sketchy, the file is gamerules.cpp (I
THINK) do a search in windows (start button, search) and you'll get your
three text boxes, leave the top one blank, the middle one should have ROGUES
and the bottom box should be the address for your mod (c:\modname). Search
for that, and you'll see all the instances of where the engine needs to know
the names of your team.
 So, to clarify.. The TEAM_ROGUES is not the name of your team, but it's a
general listing so that when you type TEAM_ROGUES, the computer will say, oh
that's 3. The file that you are searching for will take TEAM_ROGUES and turn
it into Preacher, or Werewolf or whatever you want your team names to be.
 look at this site
http://www.sourcewiki.org/wiki/index.php/Making_Teams_Work for a real good
way of making teams work. You're really just extending the scope of this
tutorial. hope that helps, cheers -Greg
 On 10/10/05, Paul Kirby <[EMAIL PROTECTED]> wrote:
>
> Hello All
>
> I am just wondering on the amount of teams you can have on a multi player
> mod?
>
> Because I have noticed the following from
> CHL2MP_Player::PickDefaultSpawnTeam():
>
> ChangeTeam( random->RandomInt( TEAM_COMBINE, TEAM_REBELS ) );
>
> And RandomInt() only accepts 2 arguments :(
>
> I was hoping for the following type of teams:
> Vampire, Werewolf (Bad team).
> Slayer, Preacher (Good Team).
>
> Basically 4 or more teams.
>
> Or would it be easier and better to still have 2 teams but use different
> classes?
> That way we could have more different type of players :)
>
> It also must be possible to have more than 2 teams, because how did they
> do
> it in those VIP maps on CS.
>
> I know having more teams will require more code than if I had used
> different
> classes.
>
> Any ideas or help would be great.
>
> Thanks in advance.
>
> Paul
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to