GSC Water Sky Code

JR JS LuxZMoDz

New Member
Messages
15
Reaction score
3
Points
3
Code:
DoWaterSky()//Call
{
     if(self.watersky == false)
     {
          self thread WaterSky();//by JR JS LuxZMoDz
          self iprintln("Water Sky ^6On");
          self.watersky = true;
     }
     else
     {
          self iprintln("Water Sky ^1Off");
          self notify("stoptowatery");
          self.watersky = false;
     }
}

WaterSky()
{
     self endon("death");
     self endon("stoptowatery");
     self endon("disconnect");
     for(;;)
     {
          x = randomintrange(-2000,2000);
          y = randomintrange(-2000,2000);
          z = randomintrange(1100,1200);
         
          self thread Waterskylol(X, Y, Z);
          wait 0.01;
          self thread Waterskyme(X,Y,Z);
          self thread DeleteOverTime2();
     }
}

Waterskylol(X,Y,Z)
{
     level.waterskylol=loadfx( "impacts/fx_xtreme_water_hit_mp" );
     Playfx(level.waterskylol,self.origin + (X, Y, Z));
}

Waterskyme(X,Y,Z)
{
     level.waterskyme=loadFx("impacts/fx_xtreme_water_hit_mp");
     Playfx(level.waterskyme,self.origin + (X, Y, Z));
}

DeleteOverTime2()
{
     wait .01;
     self delete();
}
 

[nobody@CCM:]

Member
Messages
95
Reaction score
86
Points
18
Here is a better version of my code lol.. well the code of mine you edited :smile:

Advantages of using my function over the one given, you can use the same function for as many fx's you like without c+p the function over and over again & the code is much cleaner, Enjoy!

How to call:
Code:
"Option 5", ::ExtRanFxSpawn, "weapon/straferun/fx_straferun_chaf");
Actual Function:
Code:
ExtRanFxSpawn(Fx)
{
    self endon("death");
    self endon("End_RanFx");
  
    self iprintlnbold("Current Fx: "+Fx+" Random Fx Location Spawning!");
    for(Ext = 0; Ext < 1000; Ext++)
    {
       x = randomIntRange(-6000,6000);
       y = randomIntRange(-6000,6000);
       z = randomIntRange(2000,6000);
       Playfx(loadFx(Fx), self.origin + (x, y, z));
       wait 0.05;
    }
    self iprintlnbold("Random Fx Loc Ended!");
    self notify("End_RanFx");
}
 
Last edited:

JR JS LuxZMoDz

New Member
Messages
15
Reaction score
3
Points
3
why yoou all so obsessed with gsc go code other stuff instead of spending your whole life doing gsc and slagging people off LOL bunch of sad c*nts
 

[nobody@CCM:]

Member
Messages
95
Reaction score
86
Points
18
why yoou all so obsessed with gsc go code other stuff instead of spending your whole life doing gsc and slagging people off LOL bunch of sad c*nts
This is the gsc section of cabconmodding so i do believe we should be talking about gsc, maybe some people like gsc more than others but what does that have anything to do with the current situation, we are all here to learn and help others.
 

JR JS LuxZMoDz

New Member
Messages
15
Reaction score
3
Points
3
This is the gsc section of cabconmodding so i do believe we should be talking about gsc, maybe some people like gsc more than others but what does that have anything to do with the current situation, we are all here to learn and help others.
Yes but slagging me off every time i post something is pretty immature and the fact i get called a copy and paste is bullshit i have plenty of proof to back up that i don't

Some of you on here need to grow up and stop thinking your a god after modding 2 weeks and telling other people how to do things when we already know
 

[nobody@CCM:]

Member
Messages
95
Reaction score
86
Points
18
Yes but slagging me off every time i post something is pretty immature and the fact i get called a copy and paste is bullshit i have plenty of proof to back up that i don't

Some of you on here need to grow up and stop thinking your a god after modding 2 weeks and telling other people how to do things when we already know
No one is slagging you off, I just said this was a rip off of the code i made months ago and i have plenty of people who could confirm that but yeah if there is a better way to do something i am going to share it since its a stupid function anyways.
 
Last edited:

JR JS LuxZMoDz

New Member
Messages
15
Reaction score
3
Points
3
No one is slagging you off, I just said this was a rip off of the code i made months ago and i have plenty of people who could confirm that but yeah if there is a better way to do something i am going to share it since its a stupid function anyways.
yes that's cool if there a shorter way of doing it i'm cool with that
 
Top