Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Fog and fadeing out [scripts]
Fog and fadeing out [scripts] [message #183437] Fri, 23 December 2005 19:36 Go to next message
theplague is currently offline  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?


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif

[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 Go to previous messageGo to next message
NeoSaber is currently offline  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 Go to previous messageGo to next message
Titan1x77 is currently offline  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

Re: Fog and fadeing out [scripts] [message #183537 is a reply to message #183437] Sat, 24 December 2005 11:12 Go to previous messageGo to next message
NeoSaber is currently offline  NeoSaber
Messages: 336
Registered: February 2003
Karma: 0
Recruit
Those fog commands do have a global effect. I don't think there is one that works on a per player basis. Jonwil might be able to create a per player fog command, but that's a little beyond my "realm of knowledge". Big Grin

NeoSaber

Renegade Map Maker at CnC Source
Animator/Compiler/Level Editor/Object Rigger/Programmer for Red Alert: A Path Beyond
Re: Fog and fadeing out [scripts] [message #183593 is a reply to message #183437] Sat, 24 December 2005 17:37 Go to previous message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma: 0
Recruit
ooooooooo, this is good! thx, 300 works! go 300!

tytyty


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif
Previous Topic: "Internal Application Error" (fixed - map info inside)
Next Topic: =bots=
Goto Forum:
  


Current Time: Thu Nov 28 09:36:19 MST 2024

Total time taken to generate the page: 0.01205 seconds