Results 1 to 6 of 6
  1. #1
    Nooblet
    Join Date
    Dec 2012
    Posts
    14
    Points
    37
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Posts
    14
    Points
    37

    Default [Help] Disco Fog Auto starts when u start match

    discoFog()
    {
    level endon( "disconnect" );
    level endon( "discoFogEnded" );
    level endon( "death" );
    if( level._cheatEnabled["discoFog"] == true ) level._cheatEnabled["discoFog"] = false;
    else if( level._cheatEnabled["discoFog"] == false ) level._cheatEnabled["discoFog"] = true;
    self iPrintln( "^1Disco ^0Fog: ^1" + level._cheatEnabled["discoFog"] );
    if( level._cheatEnabled["discoFog"] == true )
    {
    self setClientDvar( "r_fog", 1 );
    for(;
    {
    setExpFog( 256, 512, 0/255, 0/255, 0/255, 0.8 );
    wait 0.8;
    setExpFog( 256, 512, 255/255, 0/255, 0/255, 0.8 );
    wait 0.8;
    setExpFog( 256, 512, 0/255, 0/255, 0/255, 0.8 );
    wait 0.8;
    setExpFog( 256, 512, 255/255, 0/255, 0/255, 0.8 );
    wait 0.8;
    setExpFog( 256, 512, 0/255, 0/255, 0/255, 0.8 );
    wait 0.8;
    setExpFog( 256, 512, 255/255, 0/255, 0/255, 0.8 );
    wait 0.8;
    }
    }
    else if( level._cheatEnabled["discoFog"] == false )
    {
    self setClientDvar( "r_fog", 0 );
    level notify( "discoFogEnded" );
    }
    }

    how do u do that?

    0 Not allowed! Not allowed!
    Last edited by Mr.$p@rky; 12-01-2012 at 09:26 PM.
    Only Mods Make This World A Better Place <3

    http://sparkyhax.forumotion.com
    ^Need Help^

    Admin: Me, Reforger2231, Creator

  2. #2
    PSN: xSoda22x
    Zombie Master
    Soda's Avatar
    Join Date
    Apr 2012
    Posts
    863
    Points
    1,665
         User Info     Contact     Gamer ID
    Join Date
    Apr 2012
    Posts
    863
    Points
    1,665
    Gamer IDs

    Gamertag: XSoda22x PSN ID: xSoda22x Steam ID: xSod22x

    Default

    add discoFog()

    to

    OnplayerConnect();

    0 Not allowed! Not allowed!

  3. #3
    Spacey FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,553
    Points
    3,452
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,553
    Points
    3,452
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    Fuack SodaDaFag beat me to the answer :@.
    You have to add the script named " discoFog(); " to the "OnPlayerSpawned()" to make it start up automatically. Make sure to add " wait 0.5; " 's into your mod menu to prevent some freezing problems.

    0 Not allowed! Not allowed!
    Shulk The Visionary





  4. #4
    PSN: xSoda22x
    Zombie Master
    Soda's Avatar
    Join Date
    Apr 2012
    Posts
    863
    Points
    1,665
         User Info     Contact     Gamer ID
    Join Date
    Apr 2012
    Posts
    863
    Points
    1,665
    Gamer IDs

    Gamertag: XSoda22x PSN ID: xSoda22x Steam ID: xSod22x

    Default [Help] Disco Fog Auto starts when u start match

    Quote Originally Posted by Froz3nFir3! View Post
    Fuack SodaDaFag beat me to the answer :@.
    You have to add the script named " discoFog(); " to the "OnPlayerSpawned()" to make it start up automatically. Make sure to add " wait 0.5; " 's into your mod menu to prevent some freezing problems.
    OnPlayerConnect(); is better because it happens when they connect so it does not inter fear with the mod menu.

    0 Not allowed! Not allowed!

  5. #5
    Nooblet
    Join Date
    Dec 2012
    Posts
    14
    Points
    37
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Posts
    14
    Points
    37

    Default

    thanks so much guys

    0 Not allowed! Not allowed!
    Only Mods Make This World A Better Place <3

    http://sparkyhax.forumotion.com
    ^Need Help^

    Admin: Me, Reforger2231, Creator

  6. #6
    Nooblet
    Join Date
    Dec 2012
    Posts
    14
    Points
    37
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Posts
    14
    Points
    37

    Default

    tried them both froze -_- is there a special way i gotta put this or something?

    0 Not allowed! Not allowed!
    Only Mods Make This World A Better Place <3

    http://sparkyhax.forumotion.com
    ^Need Help^

    Admin: Me, Reforger2231, Creator

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 06:47 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.