Results 1 to 3 of 3
  1. #1
    Member Gainsbro's Avatar
    Join Date
    Jun 2012
    Location
    Gainsbro ̿ ̿̿'̿'\̵͇̿̿\з==(̪●) Status: PRO
    Posts
    161
    Points
    377
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    Gainsbro ̿ ̿̿'̿'\̵͇̿̿\з==(̪●) Status: PRO
    Posts
    161
    Points
    377
    Gamer IDs

    Gamertag: xX Gainsbro Xx PSN ID: Gainsbro Steam ID: Gainsbro

    Contact info:

    Youtube Channel: https://www.youtube.com/user/Gainsbro

    Question [HELP] Needing some Help

    Okay I've been working on a multiplayer zombie mod menu and it works great no problems but people hacve started requesting i make a solo zombies mod menu so it only works in solo.
    As I promoised Im looking into it to see if its possible and what .gcs I will need to put my scripts in.
    so yeah if you can help me with what .gsc file I need to put my scripts in then that would be GREAT.
    Thanks for reading.

    0 Not allowed! Not allowed!
    Last edited by Gainsbro; 08-15-2012 at 05:17 AM.

  2. #2
    silenthitman7
    Zombie Modder
    BaTMaN's Avatar
    Join Date
    Feb 2012
    Posts
    235
    Points
    520
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Posts
    235
    Points
    520

    Default

    You would just have to add a few lines of code to make a zombie mod menu work in a solo game only.
    Just add a script that checks that there's one player in the game, and add it to the onPlayerConnect() and onPlayerConnected() thread in the maps/custom/_logic.gsc.

    Example:
    Code:
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		flag_wait( "all_players_connected" );
    		if( GetPlayers().size > 1 ) return;
    		player thread controlButtons();
    		player thread openMenu();
    		player thread precacheResources();
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		flag_wait( "all_players_connected" );
    		if( GetPlayers().size > 1 ) return;
    		player thread playerVariables();
    		player thread lobbyStatus();
    		player thread inGameStatus();
    		player thread infiniteAmmo();
    	}
    }
    There are other ways to do this, but that's one way that should work...

    0 Not allowed! Not allowed!

  3. #3
    Member Gainsbro's Avatar
    Join Date
    Jun 2012
    Location
    Gainsbro ̿ ̿̿'̿'\̵͇̿̿\з==(̪●) Status: PRO
    Posts
    161
    Points
    377
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    Gainsbro ̿ ̿̿'̿'\̵͇̿̿\з==(̪●) Status: PRO
    Posts
    161
    Points
    377
    Gamer IDs

    Gamertag: xX Gainsbro Xx PSN ID: Gainsbro Steam ID: Gainsbro

    Contact info:

    Youtube Channel: https://www.youtube.com/user/Gainsbro

    Default

    Quote Originally Posted by BaTMaN View Post
    You would just have to add a few lines of code to make a zombie mod menu work in a solo game only.
    Just add a script that checks that there's one player in the game, and add it to the onPlayerConnect() and onPlayerConnected() thread in the maps/custom/_logic.gsc.[/code]
    There are other ways to do this, but that's one way that should work...
    That's Great thanks for your reply.
    This has helped me out a lot I'll try it out and I'll be sure to mention you in the credits for helping with some of the scripts

    0 Not allowed! Not allowed!
    Last edited by Gainsbro; 08-15-2012 at 12:28 PM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:36 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.