script sunflare

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

script sunflare

Post 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
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Anybody?

should this work?

$world.sunflarename = "sun"
$world sundirection (50 50 50)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

hmmm

Post by tltrude »

Far as I can tell, the sunflare can not be added by a script.
Tom Trude,

Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

does anybody know of a way to reset the sky at map load so the sunflare doesnt carry from the previous map?
Grassy
First Lieutenant
Posts: 221
Joined: Sun Aug 22, 2004 11:36 am

Post 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.
An ambiguous question will get a similar answer...
Post Reply