Post your scripting questions / solutions here
Moderator: Moderators
Gen Cobra
Major General
Posts: 739 Joined: Tue Jan 28, 2003 4:26 pm
Post
by Gen Cobra » Fri Feb 06, 2004 6:17 am
Is there a way, in an .scr, to force weather fx on?
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Fri Feb 06, 2004 10:05 am
Maybe this:
cg_norain 0
Tom Trude,
Gen Cobra
Major General
Posts: 739 Joined: Tue Jan 28, 2003 4:26 pm
Post
by Gen Cobra » Fri Feb 06, 2004 8:50 pm
tltrude wrote: Maybe this:
cg_norain 0
Ok I'll try it. Thanks tom.
Gen Cobra
Major General
Posts: 739 Joined: Tue Jan 28, 2003 4:26 pm
Post
by Gen Cobra » Sat Feb 07, 2004 9:31 am
Nope. No go. Anybody?
omniscient
Major General
Posts: 694 Joined: Tue Sep 16, 2003 12:02 am
Post
by omniscient » Sat Feb 07, 2004 7:50 pm
what do u mean exactly by weather effects?
Gen Cobra
Major General
Posts: 739 Joined: Tue Jan 28, 2003 4:26 pm
Post
by Gen Cobra » Sun Feb 08, 2004 12:34 am
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.
omniscient
Major General
Posts: 694 Joined: Tue Sep 16, 2003 12:02 am
Post
by omniscient » Sun Feb 08, 2004 12:47 am
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
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sun Feb 08, 2004 7:22 am
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
Gen Cobra
Major General
Posts: 739 Joined: Tue Jan 28, 2003 4:26 pm
Post
by Gen Cobra » Sun Feb 08, 2004 1:14 pm
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.
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Sun Feb 08, 2004 4:17 pm
Yeah.
omniscient
Major General
Posts: 694 Joined: Tue Sep 16, 2003 12:02 am
Post
by omniscient » Sun Feb 08, 2004 11:02 pm
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.
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 » Mon Feb 09, 2004 12:26 am
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 :-/
Gen Cobra
Major General
Posts: 739 Joined: Tue Jan 28, 2003 4:26 pm
Post
by Gen Cobra » Mon Feb 09, 2004 2:05 am
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.
omniscient
Major General
Posts: 694 Joined: Tue Sep 16, 2003 12:02 am
Post
by omniscient » Tue Feb 10, 2004 12:23 am
are u returning to mapping?
Gen Cobra
Major General
Posts: 739 Joined: Tue Jan 28, 2003 4:26 pm
Post
by Gen Cobra » Tue Feb 10, 2004 7:57 am
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.