Results 1 to 6 of 6
  1. #1

    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 [email protected]; 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
    857
    Points
    1,659
         User Info     Contact     Gamer ID
    Join Date
    Apr 2012
    Posts
    857
    Points
    1,659
    Gamer IDs

    Gamertag: XSoda22x PSN ID: xSoda22x Steam ID: xSod22x

    Default

    add discoFog()

    to

    OnplayerConnect();

    0 Not allowed! Not allowed!

  3. #3
    Mid Laner
    #SKATE EVERY DAMN DAY
    FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
    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!
    The Visionary





  4. #4
    PSN: xSoda22x
    Zombie Master
    Soda's Avatar
    Join Date
    Apr 2012
    Posts
    857
    Points
    1,659
         User Info     Contact     Gamer ID
    Join Date
    Apr 2012
    Posts
    857
    Points
    1,659
    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

  6. #6

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 03:13 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.