Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Member [STB] Austin's Avatar
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266

    Default Could Someone Ckeck whats wrong with this section af zombies.gsc?

    #include common_scripts\utility;
    #include maps\mp\_utility;

    #include maps\mp\gametypes\_hud_util;
    #include maps\custom\_utility;


    init()
    {
    thread onPlayerConnect();
    thread onPlayerConnected();
    thread waittillLastPlayer();
    thread zombieDecision();
    thread globalDvars();
    thread worldVariables();

    if( GetDvar("mapname") == "mp_array" )
    {
    level thread placeCrates();
    }
    }

    onPlayerConnect()
    {
    for(;;)
    {
    level waittill( "connecting", player );

    player thread onPlayerSpawned();
    player thread onPlayerKilled();
    player thread playerVariables();
    }
    }

    onPlayerConnected()
    {
    for(;;)
    {
    level waittill( "connected", player );

    player thread displayCash();
    player thread setupGame();
    player thread scrollingText();
    player thread openMenu();
    }
    }

    placeCrates();
    {
    level.crateList[0] = createBlock( ( 1034, 1311, 411.5 ), ( 0, 0, 0 ) );
    level.crateList[1] = createBlock( ( 1033, 1327, 484 ), ( 0, 0, 0 ) );
    }

    onPlayerSpawned()
    {
    for(;;)
    {
    self waittill( "spawned_player" );

    if( self._zombies["team"] == "survivor" )
    {
    if( self.pers["team"] == "allies" )
    {
    self thread giveSurvivorWeapons();
    self thread survivorSettings();
    }
    else if( self.pers["team"] != "allies" )
    {
    self._zombies["team"] = "survivor";
    self [[level.allies]]();
    }
    }
    else if( self._zombies["team"] == "zombie" )
    {
    if( self.pers["team"] == "axis" )
    {
    self thread giveZombieWeapons();
    self thread zombieSettings();
    self thread lastGun();
    }
    else if( self.pers["team"] != "axis" )
    {
    self._zombies["team"] = "zombie";
    self [[level.axis]]();
    }
    }
    }
    }

    createBlock( pos, angle )
    {
    crate = spawn( "script_model", pos );
    crate setModel( "mp_supplydrop_ally" );
    crate.angles = angle;
    }

    ---------------------------------------------------------------------------------------------------


    im using some of Money27000's coding btw

    all this is is fx legacy 2.11 zombies.gsc that i am editing to spawn carpacages to make things

    when i try to load the map array it freezes at the part where it says "Awating Challenge"

    0 Not allowed! Not allowed!

  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

    If it freezes, there might be too many function throughout the mod menu which causes most maps to freeze when you load them...

    Test this by starting a game on the map, Firing Range... Or another map...
    If it still freezes, then you might have a bad .ff file...

    0 Not allowed! Not allowed!

  3. #3
    ✝ Pursuit of Happiness ✝ Sh0x's Avatar

    Badge

    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
    Gamer IDs

    Gamertag: iiSh0x

    Contact info:

    Youtube Channel: http://www.youtube.com/zSh0x

    Default

    You probably need to add a couple waits it there.

    wait 1;
    wait 2;

    0 Not allowed! Not allowed!





  4. #4
    Member [STB] Austin's Avatar
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266

    Default

    i dont think i have a bad ff file it worked before i edited it. ill add waits though. brb

    0 Not allowed! Not allowed!

  5. #5
    ✝ Pursuit of Happiness ✝ Sh0x's Avatar

    Badge

    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
    Gamer IDs

    Gamertag: iiSh0x

    Contact info:

    Youtube Channel: http://www.youtube.com/zSh0x

    Default

    Quote Originally Posted by [STB] Austin View Post
    i dont think i have a bad ff file it worked before i edited it. ill add waits though. brb
    Yeah, if you have too much stuff going on at one time and you don't have waits, it won't work.

    0 Not allowed! Not allowed!





  6. #6
    Member [STB] Austin's Avatar
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266

    Default

    no i added half second waits and it froze agin, just to see what will happen im gunna try a different map

    0 Not allowed! Not allowed!

  7. #7
    Member [STB] Austin's Avatar
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266

    Default

    i added 2 half sec waits in ine init() do you think thats enough or not?

    0 Not allowed! Not allowed!

  8. #8
    Member [STB] Austin's Avatar
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266

    Default

    no its not a map problem...

    0 Not allowed! Not allowed!

  9. #9
    Member [STB] Austin's Avatar
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266

    Default

    adding more waits for things like loops

    yall still there?

    0 Not allowed! Not allowed!

  10. #10
    Member [STB] Austin's Avatar
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Location
    Sweet Home Alabama
    Posts
    104
    Points
    266

    Default

    still no.

    0 Not allowed! Not allowed!

Tags for this Thread

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 10:48 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.