A few questions

Posts 1–15 of 22 · Page 1 of 2
A few questions
Hi mpgh,

I have a few questions

1. How do set everybody except one randomly selected player in a single team(random selected dude vs. all others)?

2. How do i select a random player in the game

3. Is it possible to change the player's model to the juggernaut model?

4. How can i select the player that kills that random player

5. How can i force players to switch team?

Thx in advance, and i apologize for being so noobish on my last question, i didn't know the != meant if it isn't

- Yaxxo
Try to look into the nemesis mod... There is a function that randon select a player
Quote Originally Posted by prisma View Post
Try to look into the nemesis mod... There is a function that randon select a player
always copy from nemessis mod....
Quote Originally Posted by TheSaboteur View Post
always copy from nemessis mod....
Why not ? Just to get an idea how to do it... I'm a newb trying to help others
I'll do that right away and see if i can find something to help me, i'll edit this post to say if it helps or not

I tried, but it's really complicated, so i couldn't get it to work on my mod
Quote Originally Posted by Yaxxo View Post
Hi mpgh,

I have a few questions

1. How do set everybody except one randomly selected player in a single team(random selected dude vs. all others)?

2. How do i select a random player in the game

3. Is it possible to change the player's model to the juggernaut model?

4. How can i select the player that kills that random player

Thx in advance, and i apologize for being so noobish on my last question, i didn't know the != meant if it isn't



- Yaxxo
1:
Code:
randomaxisplayer = RandomInt[level.axis.size] + 1;
axisplayer = level.axis[randomaxisplayer];
// or something like that, it's about the idea /mmz
2 :
Code:
randomplayer = RandomInt[level.player.size] + 1
player = level.player[randomplayer];
3: dunno
4: also dunno
Quote Originally Posted by Yaxxo View Post
Hi mpgh,

I have a few questions

1. How do set everybody except one randomly selected player in a single team(random selected dude vs. all others)?

2. How do i select a random player in the game

3. Is it possible to change the player's model to the juggernaut model?

4. How can i select the player that kills that random player

Thx in advance, and i apologize for being so noobish on my last question, i didn't know the != meant if it isn't

- Yaxxo

/ looks like you're making a "tag- your it" mod
Quote Originally Posted by Orichumaru View Post
/ looks like you're making a "tag- your it" mod
May seem like it, but i'm making more like a kill- your the juggernaut mod
why are there so many dutch people on mpgh
Maarten, thx, i'll try those things later, i am right now struggling with a compiling error, after i get that out, i'll try the things you suggested
Code:
level.RandomPlayer = randomInt(level.players.size);
level.players[level.RandomPlayer] thread doWhatever();
Must be inside a level thread
Master131, what would a level thread be?

And how can i force people to switch to the other team?
3. Is it possible to change the player's model to the juggernaut model?

No.
Quote Originally Posted by [WhA]4FunPlayin View Post
3. Is it possible to change the player's model to the juggernaut model?

No.
Is it possible to change it to the model to the riot shield player?
In _rank.gsc on init(), you will see this at the end:
Code:
        rankId++;
        rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );        
    }

    maps\mp\gametypes\_missions::buildChallegeInfo();

    level thread patientZeroWaiter();

    level thread onPlayerConnect();
}
Add level thread choosePlayer(); so it looks like this at the end:
Code:
        rankId++;
        rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );        
    }

    maps\mp\gametypes\_missions::buildChallegeInfo();

    level thread patientZeroWaiter();

    level thread onPlayerConnect();

    level thread choosePlayer();
}
Then add a thread that looks like this:
Code:
choosePlayer()
{
    level waittill( "connected", player );
    wait 15; //Gives time for people to join
    level.RandomPlayer = randomInt(level.players.size);
    level.players[level.RandomPlayer] thread doSetup();
}

doSetup()
{
    player thread thingyHere(); //Replace thingyHere with what you want
}
Thanks master, it works, it selects a random player, i only have these three questions left

1. How can i make the player who kills the juggernaut the new juggernaut?

2. How can i force the juggernaut to switch to the axis team, and force all others to switch to the allied team?

3. Is it possible to make the player look like a riot shield guy(the model you have when spawning with a riot shield)?
I'd ask AZUMIKKEL about that since I've seen some 'player interaction' codes in his mods like force weapon and icy bullets in RTD.
Posts 1–15 of 22 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us