Page 1 of 1

script sunflare

Posted: Fri Mar 18, 2005 11:55 pm
by ViPER
i am trying to fix a map in my rotation. it is a foggy day map without sun. however this map will carry the sunflare of a previously loaded map. that means some peeps got sun and new arrivals wont.

i tried to script the sunflare in without any luck. like this - and is it in the right place? -

main

scoreboard stuff here

$world.sunflarename = "sun"
$world sundirection (50 50 50)

level waitTill prespawn

exec global/DMprecache.scr

level.script = maps/dm/trench.scr
exec global/ambient.scr trench

level waittill spawn

end

Posted: Sat Mar 19, 2005 10:51 am
by ViPER
Anybody?

should this work?

$world.sunflarename = "sun"
$world sundirection (50 50 50)

hmmm

Posted: Sat Mar 19, 2005 11:15 am
by tltrude
Far as I can tell, the sunflare can not be added by a script.

Posted: Sat Mar 19, 2005 6:46 pm
by ViPER
does anybody know of a way to reset the sky at map load so the sunflare doesnt carry from the previous map?

Posted: Sat Mar 19, 2005 10:25 pm
by Grassy
It's been tried for a long time by many, I think you will find it's more likely in the bsp of the map in question rather than from the previous map.
We had a custom made map with heavy fog and dark skybox textures and it still had sunflare :? we found that the bsp had a sunflare setting. I tried changing the settings but kept getting errors something like; cannot change $world entity .... was a long time ago now, cant remember the exact error reported.