Forcing Weather FX on
Posted: Fri Feb 06, 2004 6:17 am
Is there a way, in an .scr, to force weather fx on?
tltrude wrote:Maybe this:
cg_norain 0
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.omniscient wrote:what do u mean exactly by weather effects?
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
So do you mean:jv_map wrote:Well Bjarne was almost right, except that it is cg_rain you need to set.
You could do it like this:This does allow players however to put it off again for 5 secs with for example a keybindCode: 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
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
I just need to force the fx on nothing special. Thanks for all the help guys.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
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.omniscient wrote:are u returning to mapping?
