Page 1 of 1

Forcing Weather FX on

Posted: Fri Feb 06, 2004 6:17 am
by Gen Cobra
Is there a way, in an .scr, to force weather fx on?

cg_norain

Posted: Fri Feb 06, 2004 10:05 am
by tltrude
Maybe this:

cg_norain 0

Re: cg_norain

Posted: Fri Feb 06, 2004 8:50 pm
by Gen Cobra
tltrude wrote:Maybe this:

cg_norain 0

Ok I'll try it. Thanks tom.

Posted: Sat Feb 07, 2004 9:31 am
by Gen Cobra
Nope. No go. Anybody?

Posted: Sat Feb 07, 2004 7:50 pm
by omniscient
what do u mean exactly by weather effects?

Posted: Sun Feb 08, 2004 12:34 am
by Gen Cobra
omniscient wrote:what do u mean exactly by weather effects?
I have rain in a map and I wanna force weather fx on . You know that little box under the video options that says weather fx.

Posted: Sun Feb 08, 2004 12:47 am
by omniscient
o i get it. i dont think u can since its a setting like that. u may want o look on how the anti forcemodels server side mod works

Posted: Sun Feb 08, 2004 7:22 am
by jv_map
Well Bjarne was almost right, except that it is cg_rain you need to set.

You could do it like this:

Code: Select all

forcerain:
  while(1)
  {
    for(local.i = 1; local.i <= $player.size; local.i++)
    {
      if($player[local.i] != NIL && $player[local.i])
        $player[local.i] stufftext "set cg_rain 1"
    }
    wait 5
  }
end
This does allow players however to put it off again for 5 secs with for example a keybind :(

Posted: Sun Feb 08, 2004 1:14 pm
by Gen Cobra
jv_map wrote:Well Bjarne was almost right, except that it is cg_rain you need to set.

You could do it like this:

Code: Select all

forcerain:
  while(1)
  {
    for(local.i = 1; local.i <= $player.size; local.i++)
    {
      if($player[local.i] != NIL && $player[local.i])
        $player[local.i] stufftext "set cg_rain 1"
    }
    wait 5
  }
end
This does allow players however to put it off again for 5 secs with for example a keybind :(
So do you mean:

Code: Select all

thread forcerain
end

forcerain:
  while(1)
  {
    for(local.i = 1; local.i <= $player.size; local.i++)
    {
      if($player[local.i] != NIL && $player[local.i])
        $player[local.i] stufftext "set cg_rain 1"
    }
    wait 5
  }
end
And if people are gonna cheat they are gonna cheat.

Posted: Sun Feb 08, 2004 4:17 pm
by jv_map
Yeah.

Posted: Sun Feb 08, 2004 11:02 pm
by omniscient
why not set the wait to 1 so if people "cheat" its not for such a long time. i wouldnt worry about cheating though, i think cg commands can on br altered through a config while ingame, im not sure though.

Posted: Mon Feb 09, 2004 12:26 am
by nuggets
surely it's best to just create a new weather.scr and change some of the settings??? level.rainvolume and level.raindensity

it's changing the weatherpattern thread you'll want to look at

Posted: Mon Feb 09, 2004 2:05 am
by Gen Cobra
nuggets wrote:surely it's best to just create a new weather.scr and change some of the settings??? level.rainvolume and level.raindensity

it's changing the weatherpattern thread you'll want to look at
I just need to force the fx on nothing special. Thanks for all the help guys.

Posted: Tue Feb 10, 2004 12:23 am
by omniscient
are u returning to mapping?

Posted: Tue Feb 10, 2004 7:57 am
by Gen Cobra
omniscient wrote:are u returning to mapping?
Well I got a job doing maps for a videogame called Our Darkest Hour a WWII scnerio mp game. It's a big project so I've been doing that for hours on end. But I made a texture pack for the community just haven't released it. It's a mix of BT, SH, and COD textures as well as some I made myself. I made a map with some prefabs to test the textures. I added some rain and decided to use it for a map. I prob won't ever release it but it's a nice way to display the textures anyway.

By the way that script did work. Thanks for helping guys.

Image