Raised This Month: $ Target: $400
 0% 

Help with fog


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 07-20-2007 , 17:19   Help with fog
Reply With Quote #1

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.
shine771 is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 07-21-2007 , 01:08   Re: Help with fog
Reply With Quote #2

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)
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
shine771
Senior Member
Join Date: Jun 2007
Old 07-21-2007 , 05:59   Re: Help with fog
Reply With Quote #3

PHP Code:
    server_cmd("sv_skyname space"
It's just too easy to spot enemy.

THanks for sugestion.

Last edited by shine771; 07-21-2007 at 07:10.
shine771 is offline
shine771
Senior Member
Join Date: Jun 2007
Old 07-21-2007 , 08:13   Re: Help with fog
Reply With Quote #4

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.
shine771 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-21-2007 , 09:14   Re: Help with fog
Reply With Quote #5

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() !
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
shine771
Senior Member
Join Date: Jun 2007
Old 07-21-2007 , 11:51   Re: Help with fog
Reply With Quote #6

Thanks Alka.
But is there no way to make a good fog without env_fog... becuse it can only be created on precache...
shine771 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-25-2007 , 13:20   Re: Help with fog
Reply With Quote #7

Quote:
Can create fog only in plugin_precache() !
Are you sure?
VEN is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-29-2007 , 05:49   Re: Help with fog
Reply With Quote #8

Quote:
Originally Posted by VEN View Post
Are you sure?
Hum...maybe -.- ! I tryed to create it with an command but no results.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
shine771
Senior Member
Join Date: Jun 2007
Old 07-29-2007 , 13:08   Re: Help with fog
Reply With Quote #9

Hmm... Maybe VEN knows the salution... Tell us. =]
shine771 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-30-2007 , 04:19   Re: Help with fog
Reply With Quote #10

Quote:
tryed to create it with an command but no results
Show your code.
VEN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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