Fog and fadeing out [scripts] [message #183437] |
Fri, 23 December 2005 19:36 |
|
theplague
Messages: 261 Registered: May 2004
Karma: 0
|
Recruit |
|
|
well, i was wondering how to fade out fog, i've managed to fade it in and make it instantly dissapear, but not fade out...
i'm using Commands->Set_Fog_Range(0,100,5); to fade in and i tryed to use Commands->Set_Fog_Range(100,0,5); to fade out but no luck :S
Commands->Set_Fog_Enable(false); makes it dissapear instantly -_-"
edit: would Commands->Set_Fog_Range(0,0,5); work?
[Updated on: Fri, 23 December 2005 19:38] Report message to a moderator
|
|
|
Re: Fog and fadeing out [scripts] [message #183443 is a reply to message #183437] |
Fri, 23 December 2005 20:37 |
|
NeoSaber
Messages: 336 Registered: February 2003
Karma: 0
|
Recruit |
|
|
I think Commands->Set_Fog_Range(300,300,5); would work. That should make the fog move to 300m away over a period of 5 seconds. 300 meters is the view distance in Renegade, so anything beyond that shouldn't be visible to a player.
The first two parameters for Set_Fog_Range are the same as the "Start" and "End" in Level Edit's fog settings. "Start" being the distance at which the fog first becomes visible, and "End" being when it becomes too thick to see past. The third parameter is the time, in seconds, it takes to fade between existing fog settings and the new settings you're making with Set_Fog_Range.
NeoSaber
Renegade Map Maker at CnC Source
Animator/Compiler/Level Editor/Object Rigger/Programmer for Red Alert: A Path Beyond
[Updated on: Fri, 23 December 2005 20:38] Report message to a moderator
|
|
|
Re: Fog and fadeing out [scripts] [message #183517 is a reply to message #183437] |
Sat, 24 December 2005 08:50 |
|
Titan1x77
Messages: 1086 Registered: February 2003
Karma: 0
|
General (1 Star) |
|
|
I havent tested these scripts yet, but These are global settings right?
I'm looking for something per player where,when you enter a zone(such as high above the map) the fog becomes heavy, while all other players on ground level still see the normal fog.
"But if the gameplay sucks, the looks don't matter at all." - Sir Phoenixx
|
|
|
|
|