I would like to change the suncolor, directino, and flare in a stock map. Since it's stock maps, it would have to be done through scripting, not mapping. Is this at all possible? And if so, could you point me in the direction of how I could acheive this?
Thanks for your time.
Suncolor and etc. Through Scripting?
Moderator: Moderators
-
Sgt.Pepper
- Sergeant
- Posts: 69
- Joined: Tue Feb 25, 2003 5:41 pm
- Location: Canada
-
Sgt.Pepper
- Sergeant
- Posts: 69
- Joined: Tue Feb 25, 2003 5:41 pm
- Location: Canada
-
nuggets
- General
- Posts: 1006
- Joined: Fri Feb 28, 2003 2:57 am
- Location: U-england-K (england in the UK) :P
- Contact:
you can't actually make the sun move, but you can do something...
but you will need a fast machine 2 do it
if you have everything made up of script objects except the sky box(sounds stupid so far i know) give west walls $westwallD north walls $northwallsD etc...
then give it all ambient lighting and the correct colour
key: ambientlight
value: 20 20 20
(this is just an example)
now copy everything you have and give it ambientlight again but with a higher value
key: ambientlight
value: 50 50 50 and give these
and with new targetnames $westwallL etc.
then... this is where it gets exciting now
use a command in the script file
$westwallD hide
$northwallD hide
$eastwallL hide
$southwallL hide //this will now hide all the walls that the sun isn't showing on then...
$westwallL hide
$westwallD show //this will replace the illuminated wall with a darker wall, hence a moving sun... (but with no shadows)
it's all i could think of right now but the thing your probably goin 2 have 2 do is edit the .bsp file, don't ask how 2 do this very complicated, and changing the worldspawn.suncolor etc... in there after certain wait commands.
but you will need a fast machine 2 do it
if you have everything made up of script objects except the sky box(sounds stupid so far i know) give west walls $westwallD north walls $northwallsD etc...
then give it all ambient lighting and the correct colour
key: ambientlight
value: 20 20 20
(this is just an example)
now copy everything you have and give it ambientlight again but with a higher value
key: ambientlight
value: 50 50 50 and give these
and with new targetnames $westwallL etc.
then... this is where it gets exciting now
use a command in the script file
$westwallD hide
$northwallD hide
$eastwallL hide
$southwallL hide //this will now hide all the walls that the sun isn't showing on then...
$westwallL hide
$westwallD show //this will replace the illuminated wall with a darker wall, hence a moving sun... (but with no shadows)
it's all i could think of right now but the thing your probably goin 2 have 2 do is edit the .bsp file, don't ask how 2 do this very complicated, and changing the worldspawn.suncolor etc... in there after certain wait commands.
hope this helps, prob not cos it's all foreign 2 me :-/
