Raised This Month: $51 Target: $400
 12% 

What plugin is this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
twigga
Junior Member
Join Date: May 2008
Old 08-20-2008 , 22:38   What plugin is this?
Reply With Quote #1

i recently played on a server which had completely no light and everything was black. it also had smoke/fog on the floor, rain and lightning strikes. if any one knows what plugin this is can you please tell me.
twigga is offline
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 08-21-2008 , 00:56   Re: What plugin is this?
Reply With Quote #2

this is most likely a ZP = Zombie Plague server...as I have my server running that plugin and you were most likely as this is the only map I have played on with all the features you are describing playing on the map called zm_smallcity_fixed or what ever...

If you join my server when it is running that map you probly will be able to easily say yup that is it...

Cuzz I also have rain that when it hits ground makes smoke go cross ground + in the distant it has a lil fog effect...and the lighting strikes are there as well they light up the entire map...or if I remember correctly...on zm_smallcity_fixed dont do really jack squat...but yea...

Most likely it was all that and is the ZP plugin...

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
twigga
Junior Member
Join Date: May 2008
Old 08-21-2008 , 02:59   Re: What plugin is this?
Reply With Quote #3

so is there a way so i can only get the environment?
twigga is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-21-2008 , 05:06   Re: What plugin is this?
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <fakemeta_util>
 
new amx_fogamx_rainamx_light
 
public plugin_init()
{
        
register_plugin("Environment""1.0""hleV")
 
        
register_forward(FM_Think"fwdThinkPost"1)
}
 
public 
client_connect(id)
{
        if (!
get_pcvar_num(amx_rain))
                return
 
        
client_cmd(id"cl_weather 1")
}
 
public 
fwdThinkPost()
{
        static 
light[2]
        
get_pcvar_string(amx_lightlight1)
 
        
engfunc(EngFunc_LightStyle0light)
}
 
public 
plugin_precache()
{
        
amx_fog register_cvar("amx_fog""1")
        
amx_rain register_cvar("amx_rain""1")
        
amx_light register_cvar("amx_light""b"// a - darkest, m - default
 
        
if (get_pcvar_num(amx_fog))
        {
                new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_fog"))
                
fm_set_kvd(ent"density""0.0016""env_fog")
                
fm_set_kvd(ent"rendercolor""128 128 128""env_fog")
        }
 
        if (
get_pcvar_num(amx_rain))
                
engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_rain"))

__________________
hleV is offline
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 08-21-2008 , 23:27   Re: What plugin is this?
Reply With Quote #5

you may want to use this:
PHP Code:
#include <amxmodx>
#include <fakemeta_util>
 
new amx_fogamx_rainamx_light
 
public plugin_init()
{
        
register_plugin("Environment""1.0""hleV")
 
        
register_forward(FM_Think"fwdThinkPost"1)
}
 
public 
client_connect(id)
{
        if (!
get_pcvar_num(amx_rain))
                return
 
        
client_cmd(id"cl_weather 1")
}
 
public 
fwdThinkPost()
{
        static 
light[2]
        
get_pcvar_string(amx_lightlight1)
 
        
engfunc(EngFunc_LightStyle0light)
}
 
public 
plugin_precache()
{
        
amx_fog register_cvar("amx_fog""1")
        
amx_rain register_cvar("amx_rain""1")
        
amx_light register_cvar("amx_light""b"// a - darkest, m - default
 
        
if (get_pcvar_num(amx_fog))
        {
                new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_fog"))
                
fm_set_kvd(ent"density""0.0005""env_fog")
                
fm_set_kvd(ent"rendercolor""128 128 128""env_fog")
        }
 
        if (
get_pcvar_num(amx_rain))
                
engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"env_rain"))

All I did was alter the density to what I use...and it should be all perfect in every other way...

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
Old 08-22-2008, 01:58
twigga
This message has been deleted by twigga.
twigga
Junior Member
Join Date: May 2008
Old 08-22-2008 , 02:18   Re: What plugin is this?
Reply With Quote #6

ok this is exactly what im looking for

would it be possible to have the fog in the air a cvar value/command?

Last edited by twigga; 08-22-2008 at 02:36.
twigga is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-14-2015 , 11:03   Re: What plugin is this?
Reply With Quote #7

Thanks,
__________________








CrazY. 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 02:57.


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