How i put 1 class in 1 team?

Discuss all aspects related to modding Zandronum here.
Post Reply
NHG(N_HuyGamingVN)
New User
Posts: 17
Joined: Sat Jul 14, 2018 5:55 am
Clan: NewClanZ
Clan Tag: NewClanZS

How i put 1 class in 1 team?

#1

Post by NHG(N_HuyGamingVN) » Sun Aug 19, 2018 5:49 am

I have modding a team name, color, etc... but i think why prop hunt have a different class into 1 team like example:
team 1 : doomguy
team 2 : zombie
(it is the example)



pls help me

Konda
Forum Regular
Posts: 487
Joined: Thu Jun 07, 2012 5:22 pm

Re: How i put 1 class in 1 team?

#2

Post by Konda » Sun Aug 19, 2018 1:31 pm

Make as many teams as you have classes.
Then in the definition of the class you want to be in the first team, add this property:

Code: Select all

limitedtoteam 0
Then in the definition of the class you want to be in the second team, add this property:

Code: Select all

limitedtoteam 1
etc.
Not sure if this is what prophunt is doing but it's the standard way to limit the choice of a class to a single team. If you play in TLMS, this will work fine. In LMS I think you can pick any class and there are no teams.

User avatar
madcat
Forum Regular
Posts: 361
Joined: Mon Jul 08, 2013 7:16 pm
Location: Czech republic
Clan Tag: [Sun]

Re: How i put 1 class in 1 team?

#3

Post by madcat » Sun Aug 19, 2018 1:35 pm

NHG(N_HuyGamingVN) wrote:
Sun Aug 19, 2018 5:49 am
I have modding a team name, color, etc... but i think why prop hunt have a different class into 1 team like example:
team 1 : doomguy
team 2 : zombie
(it is the example)



pls help me
I think that what you need is adding "LimitedToTeam" string in the player's DECORATE - it makes the player class impossible to be picked by any other team than the one you choose ( 1 is for red, 0 is for blue )

Like this:

ACTOR RedPlayer : PlayerPawn
{
limitedtoteam 1

You might also be interested in "DesignatedTeam" - it prevents the ACTOR being harmed by direct damage stuff from his teammates.

NHG(N_HuyGamingVN)
New User
Posts: 17
Joined: Sat Jul 14, 2018 5:55 am
Clan: NewClanZ
Clan Tag: NewClanZS

Re: How i put 1 class in 1 team?

#4

Post by NHG(N_HuyGamingVN) » Mon Aug 20, 2018 1:07 am

thank you

Post Reply