Fog problem
-
Gibbs3333
Mapper
- Posts: 89
- Joined: Wed Dec 19, 2012 2:43 pm
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... 

-
Sample
Deuced Up - Posts: 83
- Joined: Wed Nov 21, 2012 8:37 pm
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?

-
Gibbs3333
Mapper
- Posts: 89
- Joined: Wed Dec 19, 2012 2:43 pm
I did it...
Code: Select all
And then nothing, it was the classic fog : 128, 232, 255. I should add a script ?name = 'Orbix'
version = '1.0'
author = 'Gibbs3333'
description = ('Team R3S')
protected = ['D4','D5', 'E4', 'E5']
fog = (000, 000, 000)
-
ProfCupcake
Deuce - Posts: 3
- Joined: Sat Dec 29, 2012 5:10 pm
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.
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.
-
Gibbs3333
Mapper
- Posts: 89
- Joined: Wed Dec 19, 2012 2:43 pm
-
Gibbs3333
Mapper
- Posts: 89
- Joined: Wed Dec 19, 2012 2:43 pm
-
Sample
Deuced Up - Posts: 83
- Joined: Wed Nov 21, 2012 8:37 pm
-
Gibbs3333
Mapper
- Posts: 89
- Joined: Wed Dec 19, 2012 2:43 pm
Sorry guys I did an error in the scripting. So to increment : you must write a dynfog.py like that :

Code: Select all
Insert in your folder called "script" and write that in .txt of your map.
# 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, connectionCode: Select all
It was my fault sorry guys. name = 'Exemple'
version = '1.0'
author = 'Gibbs3333'
description = ('Team R3S')
protected = ['D4','D5', 'E4', 'E5']
fog = (255, 0, 0)
Who is online
Users browsing this forum: No registered users and 23 guests
