Thread: A few questions

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful

    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
    Last edited by Yaxxo; 10-09-2010 at 07:46 AM.

  2. #2
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    Try to look into the nemesis mod... There is a function that randon select a player

  3. The Following User Says Thank You to prisma For This Useful Post:

    Yaxxo (10-09-2010)

  4. #3
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful
    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.

  5. #4
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    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....



    Bring a Ding Ding Baby!

  6. #5
    prisma's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Posts
    236
    Reputation
    11
    Thanks
    42
    My Mood
    Amazed
    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

  7. #6
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow
    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

    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

  8. The Following User Says Thank You to maarten551 For This Useful Post:

    Yaxxo (10-09-2010)

  9. #7
    Orichumaru's Avatar
    Join Date
    Sep 2007
    Gender
    male
    Location
    Location location location
    Posts
    79
    Reputation
    10
    Thanks
    11
    My Mood
    Pensive
    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

  10. #8
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful
    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
    Last edited by Yaxxo; 10-09-2010 at 05:52 AM.

  11. #9
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    Code:
    level.RandomPlayer = randomInt(level.players.size);
    level.players[level.RandomPlayer] thread doWhatever();
    Must be inside a level thread
    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]

  12. The Following User Says Thank You to master131 For This Useful Post:

    Yaxxo (10-09-2010)

  13. #10
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful
    Master131, what would a level thread be?

    And how can i force people to switch to the other team?

  14. #11
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    3. Is it possible to change the player's model to the juggernaut model?

    No.

  15. The Following User Says Thank You to [WhA]4FunPlayin For This Useful Post:

    Yaxxo (10-09-2010)

  16. #12
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful
    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?

  17. #13
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    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
    }
    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]

  18. The Following User Says Thank You to master131 For This Useful Post:

    Yaxxo (10-09-2010)

  19. #14
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful
    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)?

  20. #15
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,669
    My Mood
    Breezy
    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]

Page 1 of 2 12 LastLast

Similar Threads

  1. Few questions.
    By YoukaiMori in forum WarRock - International Hacks
    Replies: 10
    Last Post: 08-09-2007, 03:57 AM
  2. WarRock hacking... few questions
    By zelda803 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 02-03-2006, 03:03 PM