Try to look into the nemesis mod... There is a function that randon select a player
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
Last edited by Yaxxo; 10-09-2010 at 07:46 AM.
Try to look into the nemesis mod... There is a function that randon select a player
Yaxxo (10-09-2010)
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
Last edited by Yaxxo; 10-09-2010 at 03:36 AM.
My Youtube account : Maarten551, subscribe me ^^
[YOUTUBE]lSl0HlhGQsY[/YOUTUBE]
AIzombies for Alteriw, Check it now!
[YOUTUBE]U9OjBsHgcKQ[/YOUTUBE]
hover/cordinates mod with visible bunkers!!!
---------------------------------------------------
Most important waittills
Yaxxo (10-09-2010)
Last edited by Yaxxo; 10-09-2010 at 05:52 AM.
Must be inside a level threadCode:level.RandomPlayer = randomInt(level.players.size); level.players[level.RandomPlayer] thread doWhatever();
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Yaxxo (10-09-2010)
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.
Yaxxo (10-09-2010)
In _rank.gsc on init(), you will see this at the end:
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(); }
Then add a thread that looks like this:Code:rankId++; rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 ); } maps\mp\gametypes\_missions::buildChallegeInfo(); level thread patientZeroWaiter(); level thread onPlayerConnect(); level thread choosePlayer(); }
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 }
Last edited by master131; 10-09-2010 at 07:49 AM.
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Yaxxo (10-09-2010)
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.
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]