Page 1 of 1
Fog problem
Posted: Sat Dec 29, 2012 3:12 pm
by Gibbs3333
How to install a fog in a .txt for a map ? This topic is invalid for me :
http://buildandshoot.com/viewtopic.php?f=18&t=117# I don't understand...

Re: Fog problem
Posted: Sat Dec 29, 2012 3:23 pm
by Sample
fog = (000, 000, 000)
fog = (RGB, RGB, RGB)
fog = (RED, GREEN, BLUE)
Red:
fog = (255, 000, 000)
Green:
fog = (000, 255, 000)
Blue: fog =
(000, 000, 255)
White: fog =
(255, 255, 255)
Black: fog =
(000, 000, 000)
Right?
Re: Fog problem
Posted: Sat Dec 29, 2012 4:02 pm
by Gibbs3333
I did it...
Code: Select allname = 'Orbix'
version = '1.0'
author = 'Gibbs3333'
description = ('Team R3S')
protected = ['D4','D5', 'E4', 'E5']
fog = (000, 000, 000)
And then nothing, it was the classic fog : 128, 232, 255. I should add a script ?
Re: Fog problem
Posted: Sat Dec 29, 2012 5:12 pm
by ProfCupcake
Try using a value of (001, 001, 001).
I'm not sure about this one, but I know some engines (namely, the Cube engine) reset it to default if you leave it as all 0's.
Re: Fog problem
Posted: Sat Dec 29, 2012 9:21 pm
by Gibbs3333
I will try.
Re: Fog problem
Posted: Sun Dec 30, 2012 12:47 pm
by Gibbs3333
It doesn't work. Any idea ?
Re: Fog problem
Posted: Sun Dec 30, 2012 1:32 pm
by Sample
Try (1, 125, 255) (This is an example)
Re: Fog problem
Posted: Sun Dec 30, 2012 4:38 pm
by Gibbs3333
Sorry guys I did an error in the scripting. So to increment : you must write a dynfog.py like that :
Code: Select all# dynfog.py by SLoW
import commands
def apply_script(protocol, connection, config):
class FogProtocol(protocol):
default_fog = (128, 232, 255)
def on_map_change(self, name):
self.set_fog_color(getattr(self.map_info.info, 'fog', self.default_fog))
protocol.on_map_change(self, name)
return FogProtocol, connection
Insert in your folder called
"script" and write that in
.txt of your map.
Code: Select allname = 'Exemple'
version = '1.0'
author = 'Gibbs3333'
description = ('Team R3S')
protected = ['D4','D5', 'E4', 'E5']
fog = (255, 0, 0)
It was my fault sorry guys.
