Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. IW5 Script for waiting for more Players

IW5 Script for waiting for more Players

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
5 Posts 3 Posters 195 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Lobiixundefined Offline
    Lobiixundefined Offline
    Lobiix
    wrote on last edited by
    #1

    Hey guys,
    is there a script out there that when only 1 Player joins the Lobby, he wouldn't be able to Spawn until more than 1 Player is connected?
    So that the game puts him in Viewer mode until someone joins, then both spawn and the game timer starts.

    Is this possible with gsc?
    Thanks

    1 Reply Last reply
    0
    • Resxtundefined Offline
      Resxtundefined Offline
      Resxt Plutonium Staff
      wrote on last edited by Resxt
      #2

      One way or another it is possible yes

      For example you could replace the function that tells the game if players can select a team by adding a check if level.players.size > 1 return true else return false. Some other things might be required.

      https://github.com/Resxt/Plutonium-IW5-Scripts/blob/main/gamemodes/chaos.gsc#L29
      https://github.com/Resxt/Plutonium-IW5-Scripts/blob/main/gamemodes/chaos.gsc#L291

      1 Reply Last reply
      0
      • Xerxesundefined Offline
        Xerxesundefined Offline
        Xerxes Plutonium Staff
        wrote on last edited by
        #3

        He could also touch the pre-game timer logic and replace it with an loop that waits for x players.

        Lobiixundefined 1 Reply Last reply
        0
        • Lobiixundefined Offline
          Lobiixundefined Offline
          Lobiix
          replied to Xerxes on last edited by Lobiix
          #4

          Xerxes Hey, is this stored in "Plutonium\storage\iw5\maps\mp\gametypes\ _gamelogic.gsc"?

          1 Reply Last reply
          0
          • Xerxesundefined Offline
            Xerxesundefined Offline
            Xerxes Plutonium Staff
            wrote on last edited by
            #5

            No idea.

            1 Reply Last reply
            0

            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Donate