Results 1 to 10 of 10
  1. #1

    Question [SM8E52]FOUND A SCRIPT

    ok so i found this script any idea wat its for??

    setfogsliders()
    {
    /#
    fogcolor = getdvarvector( "g_fogColorReadOnly" );
    maxOpacity = GetDvar( "g_fogMaxOpacityReadOnly" );
    halfplane = GetDvar( "g_fogHalfDistReadOnly" );
    nearplane = GetDvar( "g_fogStartDistReadOnly" );

    sunFogEnabled = GetDvar( "g_sunFogEnabledReadOnly" );
    sunFogColor = getdvarvector( "g_sunFogColorReadOnly" );
    sunFogDir = getdvarvector( "g_sunFogDirReadOnly" );
    sunFogBeginFadeAngle = GetDvar( "g_sunFogBeginFadeAngleReadOnly" );
    sunFogEndFadeAngle = GetDvar( "g_sunFogEndFadeAngleReadOnly" );
    sunFogScale = GetDvar( "g_sunFogScaleReadOnly" );

    if ( !isdefined( fogcolor )
    || !isdefined( maxOpacity )
    || !isdefined( halfplane )
    || !isdefined( nearplane )
    || !isdefined( sunFogEnabled )
    || !isdefined( sunFogColor )
    || !isdefined( sunFogDir )
    || !isdefined( sunFogBeginFadeAngle )
    || !isdefined( sunFogEndFadeAngle )
    || !isdefined( sunFogScale )
    )
    {
    fogcolor = ( 1, 1, 1 );
    halfplane = 10000001;
    nearplane = 10000000;
    maxOpacity = 1;

    sunFogEnabled = false;
    sunFogColor = ( 1, 1, 1 );
    sunFogDir = ( 1.0, 0.0, 0.0 );
    sunFogBeginFadeAngle = GetDvar( "g_sunFogBeginFadeAngle" );
    sunFogEndFadeAngle = GetDvar( "g_sunFogEndFadeAngle" );
    sunFogScale = GetDvar( "g_sunFogScaleReadOnly" );

    }
    SetDevDvar( "scr_fog_exp_halfplane", halfplane );
    SetDevDvar( "scr_fog_nearplane", nearplane );
    SetDevDvar( "scr_fog_color", fogcolor );
    SetDevDvar( "scr_fog_max_opacity", maxOpacity );

    SetDevDvar( "scr_sunFogEnabled", sunFogEnabled );
    SetDevDvar( "scr_sunFogColor", sunFogColor );
    SetDevDvar( "scr_sunFogDir", sunFogDir );
    SetDevDvar( "scr_sunFogBeginFadeAngle", sunFogBeginFadeAngle );
    SetDevDvar( "scr_sunFogEndFadeAngle", sunFogEndFadeAngle );
    SetDevDvar( "scr_sunFogScale", sunFogScale );
    #/
    }

    0 Not allowed! Not allowed!

  2. #2
    Blink 182 Give Me Boners mynameisjosh's Avatar
    Join Date
    Oct 2011
    Posts
    1,377
    Points
    3,107
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    1,377
    Points
    3,107
    Gamer IDs

    Gamertag: JennaTollzZ PSN ID: OmmNomNomNomNom-

    Default

    whered u find it

    0 Not allowed! Not allowed!
    Quote Originally Posted by Insane.Dragon View Post
    I fucked a shark once.
    Quote Originally Posted by RED 58 View Post
    i like the sig but i hate russ...
    im seeing conflict here

  3. #3
    Diehard xBEASTx's Avatar
    Join Date
    Nov 2011
    Location
    Moving to L.A.
    Posts
    550
    Points
    1,114
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Location
    Moving to L.A.
    Posts
    550
    Points
    1,114
    Gamer IDs

    PSN ID: xB34STLYS0ULx

    Contact info:

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

    Default

    Where did you find this? It looks like it would add fog to the map.

    0 Not allowed! Not allowed!
    I love AIDS.

  4. #4

  5. #5
    Lskip Dont Double Dip
    Join Date
    Nov 2011
    Posts
    550
    Points
    265
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Posts
    550
    Points
    265

    Contact info:

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

    Default

    setfogsliders()
    {
    /#
    fogcolor = getdvarvector( "g_fogColorReadOnly" ); // color/shade of the fog/mist
    maxOpacity = GetDvar( "g_fogMaxOpacityReadOnly" ); // how see through the fog is
    halfplane = GetDvar( "g_fogHalfDistReadOnly" ); //idk
    nearplane = GetDvar( "g_fogStartDistReadOnly" ); //idk

    sunFogEnabled = GetDvar( "g_sunFogEnabledReadOnly" ); //i think it enables the fog to appear
    sunFogColor = getdvarvector( "g_sunFogColorReadOnly" ); // the color
    sunFogDir = getdvarvector( "g_sunFogDirReadOnly" ); //idk
    sunFogBeginFadeAngle = GetDvar( "g_sunFogBeginFadeAngleReadOnly" ); //fades and hard spots of the fog
    sunFogEndFadeAngle = GetDvar( "g_sunFogEndFadeAngleReadOnly" ); //fades and light spots fadings fog away
    sunFogScale = GetDvar( "g_sunFogScaleReadOnly" ); //scale of the fog

    if ( !isdefined( fogcolor )
    || !isdefined( maxOpacity ) //refers to the already defined dvars
    || !isdefined( halfplane ) //refers to the already defined dvars
    || !isdefined( nearplane ) //refers to the already defined dvars
    || !isdefined( sunFogEnabled ) //refers to the already defined dvars
    || !isdefined( sunFogColor ) //refers to the already defined dvars
    || !isdefined( sunFogDir ) //refers to the already defined dvars
    || !isdefined( sunFogBeginFadeAngle ) //refers to the already defined dvars
    || !isdefined( sunFogEndFadeAngle ) //refers to the already defined dvars
    || !isdefined( sunFogScale ) //refers to the already defined dvars
    )
    {
    fogcolor = ( 1, 1, 1 ); // defines the dvar above ... exact color // blackish gray
    halfplane = 10000001; // defines the dvar above
    nearplane = 10000000; // defines the dvar above
    maxOpacity = 1; // defines the dvar above

    sunFogEnabled = false; // defines the dvar above
    sunFogColor = ( 1, 1, 1 ); //defines the dvar above // color
    sunFogDir = ( 1.0, 0.0, 0.0 ); //defines the dvar above amount of fog
    sunFogBeginFadeAngle = GetDvar("g_sunFogBeginFadeAngle")//defines the dvar
    sunFogEndFadeAngle = GetDvar( "g_sunFogEndFadeAngle" );//defines the dvar
    sunFogScale = GetDvar( "g_sunFogScaleReadOnly" ); //defines the dvar above

    }
    SetDevDvar( "scr_fog_exp_halfplane", halfplane ); // the dvars
    SetDevDvar( "scr_fog_nearplane", nearplane ); // the dvars
    SetDevDvar( "scr_fog_color", fogcolor ); // the dvars
    SetDevDvar( "scr_fog_max_opacity", maxOpacity ); // the dvars
    SetDevDvar( "scr_sunFogEnabled", sunFogEnabled ); // the dvars
    SetDevDvar( "scr_sunFogColor", sunFogColor ); // the dvars
    SetDevDvar( "scr_sunFogDir", sunFogDir ); // the dvars
    SetDevDvar( "scr_sunFogBeginFadeAngle",sunFogBeginFadeAngl e); // the dvars
    SetDevDvar( "scr_sunFogEndFadeAngle", sunFogEndFadeAngle ); //the dvars
    SetDevDvar( "scr_sunFogScale", sunFogScale ); // the dvars
    #/


    I think that that sums it up so yeah you could try to add that in as a function in your menu or in onPlayerSpawned and see if it works if you test it then please pm me if it works or not because im making a zombies gametype and i will add that in so yeah. ......your welcome .. lol

    0 Not allowed! Not allowed!
    Last edited by Lskip13; 12-17-2011 at 05:24 PM.

  6. #6

    Default

    Quote Originally Posted by Lskip13 View Post
    setfogsliders()
    {
    /#
    fogcolor = getdvarvector( "g_fogColorReadOnly" ); // color/shade of the fog/mist
    maxOpacity = GetDvar( "g_fogMaxOpacityReadOnly" ); // how see through the fog is
    halfplane = GetDvar( "g_fogHalfDistReadOnly" ); //idk
    nearplane = GetDvar( "g_fogStartDistReadOnly" ); //idk

    sunFogEnabled = GetDvar( "g_sunFogEnabledReadOnly" ); //i think it enables the fog to appear
    sunFogColor = getdvarvector( "g_sunFogColorReadOnly" ); // the color
    sunFogDir = getdvarvector( "g_sunFogDirReadOnly" ); //idk
    sunFogBeginFadeAngle = GetDvar( "g_sunFogBeginFadeAngleReadOnly" ); //fades and hard spots of the fog
    sunFogEndFadeAngle = GetDvar( "g_sunFogEndFadeAngleReadOnly" ); //fades and light spots fadings fog away
    sunFogScale = GetDvar( "g_sunFogScaleReadOnly" ); //scale of the fog

    if ( !isdefined( fogcolor )
    || !isdefined( maxOpacity ) //refers to the already defined dvars
    || !isdefined( halfplane ) //refers to the already defined dvars
    || !isdefined( nearplane ) //refers to the already defined dvars
    || !isdefined( sunFogEnabled ) //refers to the already defined dvars
    || !isdefined( sunFogColor ) //refers to the already defined dvars
    || !isdefined( sunFogDir ) //refers to the already defined dvars
    || !isdefined( sunFogBeginFadeAngle ) //refers to the already defined dvars
    || !isdefined( sunFogEndFadeAngle ) //refers to the already defined dvars
    || !isdefined( sunFogScale ) //refers to the already defined dvars
    )
    {
    fogcolor = ( 1, 1, 1 ); // defines the dvar above ... exact color // blackish gray
    halfplane = 10000001; // defines the dvar above
    nearplane = 10000000; // defines the dvar above
    maxOpacity = 1; // defines the dvar above

    sunFogEnabled = false; // defines the dvar above
    sunFogColor = ( 1, 1, 1 ); //defines the dvar above // color
    sunFogDir = ( 1.0, 0.0, 0.0 ); //defines the dvar above amount of fog
    sunFogBeginFadeAngle = GetDvar("g_sunFogBeginFadeAngle")//defines the dvar
    sunFogEndFadeAngle = GetDvar( "g_sunFogEndFadeAngle" );//defines the dvar
    sunFogScale = GetDvar( "g_sunFogScaleReadOnly" ); //defines the dvar above

    }
    SetDevDvar( "scr_fog_exp_halfplane", halfplane ); // the dvars
    SetDevDvar( "scr_fog_nearplane", nearplane ); // the dvars
    SetDevDvar( "scr_fog_color", fogcolor ); // the dvars
    SetDevDvar( "scr_fog_max_opacity", maxOpacity ); // the dvars
    SetDevDvar( "scr_sunFogEnabled", sunFogEnabled ); // the dvars
    SetDevDvar( "scr_sunFogColor", sunFogColor ); // the dvars
    SetDevDvar( "scr_sunFogDir", sunFogDir ); // the dvars
    SetDevDvar( "scr_sunFogBeginFadeAngle",sunFogBeginFadeAngl e); // the dvars
    SetDevDvar( "scr_sunFogEndFadeAngle", sunFogEndFadeAngle ); //the dvars
    SetDevDvar( "scr_sunFogScale", sunFogScale ); // the dvars
    #/


    I think that that sums it up so yeah you could try to add that in as a function in your menu or in onPlayerSpawned and see if it works if you test it then please pm me if it works or not because im making a zombies gametype and i will add that in so yeah. ......your welcome .. lol

    aiight i'll try it

    0 Not allowed! Not allowed!

  7. #7
    Beast Modder
    ģħţmare
    TheRealNightmare's Avatar
    Join Date
    Oct 2011
    Posts
    264
    Points
    149
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    264
    Points
    149

    Default

    Skip I have a zombies game type mostly done but do you need help because we can add care packages to it because I got the origin and angle script.

    0 Not allowed! Not allowed!

  8. #8
    Lskip Dont Double Dip
    Join Date
    Nov 2011
    Posts
    550
    Points
    265
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Posts
    550
    Points
    265

    Contact info:

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

    Default

    Quote Originally Posted by ( . Y . )Night View Post
    Skip I have a zombies game type mostly done but do you need help because we can add care packages to it because I got the origin and angle script.
    yeah bro ive been working on one too umm add me on skype : Lskip13 .. i g2g tonight and imma be at work tomorow but yeah bro i have been making a new mod menu and i have also been working on zombies but yeah bro ill tell you what you work on zombies and ill try to finish my mod menu and then ill put all my scripts in it which is a shit load .. that havent been released yet and yeah you work on zombies and then we will release it at the same time..

    0 Not allowed! Not allowed!

  9. #9
    Beast Modder
    ģħţmare
    TheRealNightmare's Avatar
    Join Date
    Oct 2011
    Posts
    264
    Points
    149
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    264
    Points
    149

    Default

    ok bro I will do that but I will add you on skype tommorow.

    0 Not allowed! Not allowed!

  10. #10
    Lskip Dont Double Dip
    Join Date
    Nov 2011
    Posts
    550
    Points
    265
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Posts
    550
    Points
    265

    Contact info:

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

    Default

    Quote Originally Posted by ( . Y . )Night View Post
    ok bro I will do that but I will add you on skype tommorow.
    aight bro

    0 Not allowed! Not allowed!

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