Modding the sky

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

Modding the sky

Post by SilentAngel »

HELLOOOOOO!! :!: :!:
I need to know how to some tricks....for exemple:
How to change sky color with scripts
How to put flashes with scripts
Someone knows how to do it?:?:
PhilsEmpire
Corporal
Posts: 33
Joined: Fri Aug 08, 2008 5:42 am
Location: Down Under.
Contact:

Post by PhilsEmpire »

You mean like the level Druckkammern? You could try looking in that map's script file?
SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

Post by SilentAngel »

I mean have a black sky with tunders..
however I'll go to check Drukky scripts
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

Isn't black........

$world farplane color 0 0 0
$world farplane 10000

and isn't thunder

exec global weather scr.

not sure about the top one............ been 2 long

it's been done.. somebody will jump in here.
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Isn't black........

$world farplane color 0 0 0
$world farplane 10000
Do you know what farplane is?
exec global weather scr.
And how this script works?

Okay, first of all there's a mod which changes skies, but it can only be done through radiant(meaning you need to have the .map file and you need to know how) and finishing it off through script, it's impossible to do only through script. You can add lightning(flashing) by using this in the prespawn:

Code: Select all

exec global/weather.scr::thunder
It depends on what map it's used, without presetting this in your .map this'll probably look ugly.

You can also use this, though it's server side and only works on stock maps: http://www.mods-r-us.net/page.php?id=249
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post by neillomax »

Yea, I know what farplane is. How's about farplane color 0 0 0 and farplane 75
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Then you can't see a thing. Screen's black, maybe your weapon if you're lucky lol

Also, I got more inside on this "will look ugly thing", don't use it in maps with bright skies, the flashes'll turn the skies blue for a sec.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Post by Gold »

hes probaly talking about night mods...the use of fastsky and the global weather script used together to get lightning thunder and a black sky...maybe this info will help with getting a black sky..i think exec global/weather.scr was mentioned above to get lightning and thunder

http://www.modtheater.com/forum/showthr ... sky&page=2
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Usually, weather.scr is exec'd globally (not thread-specific) because you're supposed to use it along with the map you created.

Gold, the link on tmt is down.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

well for the dark sky i did this...it was on destoyed village and came out perfect....ran it like this for several months before turning the lights back on lol



put this in ur script before prespawn

Code: Select all

setcvar "r_fastsky" "1"
	$world farplane 3500
	$world farplane_color (0 0 0)
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

nice one tazz ;)

But changing it to other colours is impossible, silentangel (without the .map at least). Tazz' script removes the sky (ie making it dark).

You cannot however use weather.scr with this since that script resets the farplane.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

As I have pointed out in another discussion on the subject, forcing fastsky with the setcvar command will only work on non-dedicated servers for the game host only, everyone else will see the sky as normal. You need to stufftext it periodically to everyone one the server.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply