AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with fog (https://forums.alliedmods.net/showthread.php?t=58190)

shine771 07-20-2007 17:19

Help with fog
 
I have made All map Dark and Fog. The problem is that players can see each other too easy. I mean when all is dark and there is fog - you can see others on the grey background. Sorry for my bad english. Hope you did understand.

[IMG]http://img444.**************/img444/5683/thethethezq3.th.jpg[/IMG]

The fog's RED, but that doesn't matter. How can i increase the fog distance from the player??? Is it possible??? Here's The CODE:

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>

#define PLUGIN "Fog"
#define VERSION "1.0"
#define AUTHOR "Sh!nE*"

new fog

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
plugin_precache()
{
    
fog engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_fog"))
    
DispatchKeyValue(fog,"density","0.001")
    
DispatchKeyValue(fog,"rendercolor","173 22 37")


I can only set density from 0.001 - 0.009\

Hope you did understand.
Thanks.
+Karma if someone will help me... Hope it's possible.

Vet 07-21-2007 01:08

Re: Help with fog
 
Have you tried resetting the r-g-b sky colors? That may help if you're using the 'set_lights' function.

Code:


server_cmd(sv_skycolor_r 20)
server_cmd(sv_skycolor_g 20)
server_cmd(sv_skycolor_b 20)


shine771 07-21-2007 05:59

Re: Help with fog
 
PHP Code:

    server_cmd("sv_skyname space"

It's just too easy to spot enemy.

THanks for sugestion.

shine771 07-21-2007 08:13

Re: Help with fog
 
Sorry for Double Post.

Is there any way to remove fog ingame (set density 0.000 and after few seconds set it back) i try'd but it didn't work...

Thank again.

Alka 07-21-2007 09:14

Re: Help with fog
 
To remove it simply find ent by string and remove it,but to bring it back is not possible! :|...Can create fog only in plugin_precache() !

shine771 07-21-2007 11:51

Re: Help with fog
 
Thanks Alka.
But is there no way to make a good fog without env_fog... becuse it can only be created on precache...

VEN 07-25-2007 13:20

Re: Help with fog
 
Quote:

Can create fog only in plugin_precache() !
Are you sure?

Alka 07-29-2007 05:49

Re: Help with fog
 
Quote:

Originally Posted by VEN (Post 508112)
Are you sure?

Hum...maybe -.- ! I tryed to create it with an command but no results.

shine771 07-29-2007 13:08

Re: Help with fog
 
Hmm... Maybe VEN knows the salution... Tell us. =]

VEN 07-30-2007 04:19

Re: Help with fog
 
Quote:

tryed to create it with an command but no results
Show your code.


All times are GMT -4. The time now is 21:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.