Forcing Weather FX on

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Forcing Weather FX on

Post by Gen Cobra »

Is there a way, in an .scr, to force weather fx on?
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

cg_norain

Post by tltrude »

Maybe this:

cg_norain 0
Tom Trude,

Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Re: cg_norain

Post by Gen Cobra »

tltrude wrote:Maybe this:

cg_norain 0

Ok I'll try it. Thanks tom.
Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post by Gen Cobra »

Nope. No go. Anybody?
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

what do u mean exactly by weather effects?
Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post 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.
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :(
Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post 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.
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yeah.
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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.
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post 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.
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

are u returning to mapping?
Image
User avatar
Gen Cobra
Major General
Posts: 739
Joined: Tue Jan 28, 2003 4:26 pm

Post 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
Image
Post Reply