Page 1 of 1
How i put 1 class in 1 team?
Posted: Sun Aug 19, 2018 5:49 am
by NHG(N_HuyGamingVN)
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
Re: How i put 1 class in 1 team?
Posted: Sun Aug 19, 2018 1:31 pm
by Konda
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:
Then in the definition of the class you want to be in the second team, add this property:
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.
Re: How i put 1 class in 1 team?
Posted: Sun Aug 19, 2018 1:35 pm
by madcat
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.
Re: How i put 1 class in 1 team?
Posted: Mon Aug 20, 2018 1:07 am
by NHG(N_HuyGamingVN)
thank you