IW5 Script for waiting for more Players
-
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 -
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 -
He could also touch the pre-game timer logic and replace it with an loop that waits for x players.
-
Xerxes Hey, is this stored in "Plutonium\storage\iw5\maps\mp\gametypes\ _gamelogic.gsc"?
-
No idea.