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

[REQ] Fog plugin CSGO


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 11-13-2016 , 16:32   [REQ] Fog plugin CSGO
Reply With Quote #1

Hello allied, Can someone make a simple fog plugin? I will be grateful if someone can help me
__________________

Last edited by sHoC; 11-13-2016 at 16:50.
sHoC is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 11-13-2016 , 21:51   Re: [REQ] Fog plugin CSGO
Reply With Quote #2

map fog?

https://github.com/Franc1sco/Franug-...g/oscuridad.sp

PHP Code:
#include <sourcemod>
#include <sdktools>

new FogIndex = -1;
new 
Float:mapFogStart 0.0;
new 
Float:mapFogEnd 150.0;
new 
Float:mapFogDensity 0.99;

public 
OnPluginStart()
{
    
RegAdminCmd("sm_fogoff"fogoffADMFLAG_ROOT"");
    
RegAdminCmd("sm_fogon"fogonADMFLAG_ROOT"");
}
public 
OnMapStart()
{
    new 
ent
    
ent FindEntityByClassname(-1"env_fog_controller");
    if (
ent != -1
    {
        
FogIndex ent;
    }
    else
    {
        
FogIndex CreateEntityByName("env_fog_controller");
        
DispatchSpawn(FogIndex);
    }
    
DoFog();
    
AcceptEntityInput(FogIndex"TurnOff");
}

public 
Action:fogoff(clientargs)
{
AcceptEntityInput(FogIndex"TurnOff");}    

public 
Action:fogon(clientargs)
{
AcceptEntityInput(FogIndex"TurnOn");}

DoFog()
{
    if(
FogIndex != -1
    {
        
DispatchKeyValue(FogIndex"fogblend""0");
        
DispatchKeyValue(FogIndex"fogcolor""0 0 0");
        
DispatchKeyValue(FogIndex"fogcolor2""0 0 0");
        
DispatchKeyValueFloat(FogIndex"fogstart"mapFogStart);
        
DispatchKeyValueFloat(FogIndex"fogend"mapFogEnd);
        
DispatchKeyValueFloat(FogIndex"fogmaxdensity"mapFogDensity);
    }

__________________
coding & free software
shanapu is offline
sHoC
Senior Member
Join Date: Nov 2015
Location: Italy
Old 11-14-2016 , 15:50   Re: [REQ] Fog plugin CSGO
Reply With Quote #3

Quote:
Originally Posted by shanapu View Post
map fog?

https://github.com/Franc1sco/Franug-...g/oscuridad.sp

PHP Code:
#include <sourcemod>
#include <sdktools>

new FogIndex = -1;
new 
Float:mapFogStart 0.0;
new 
Float:mapFogEnd 150.0;
new 
Float:mapFogDensity 0.99;

public 
OnPluginStart()
{
    
RegAdminCmd("sm_fogoff"fogoffADMFLAG_ROOT"");
    
RegAdminCmd("sm_fogon"fogonADMFLAG_ROOT"");
}
public 
OnMapStart()
{
    new 
ent
    
ent FindEntityByClassname(-1"env_fog_controller");
    if (
ent != -1
    {
        
FogIndex ent;
    }
    else
    {
        
FogIndex CreateEntityByName("env_fog_controller");
        
DispatchSpawn(FogIndex);
    }
    
DoFog();
    
AcceptEntityInput(FogIndex"TurnOff");
}

public 
Action:fogoff(clientargs)
{
AcceptEntityInput(FogIndex"TurnOff");}    

public 
Action:fogon(clientargs)
{
AcceptEntityInput(FogIndex"TurnOn");}

DoFog()
{
    if(
FogIndex != -1
    {
        
DispatchKeyValue(FogIndex"fogblend""0");
        
DispatchKeyValue(FogIndex"fogcolor""0 0 0");
        
DispatchKeyValue(FogIndex"fogcolor2""0 0 0");
        
DispatchKeyValueFloat(FogIndex"fogstart"mapFogStart);
        
DispatchKeyValueFloat(FogIndex"fogend"mapFogEnd);
        
DispatchKeyValueFloat(FogIndex"fogmaxdensity"mapFogDensity);
    }

Thank you shanapu
__________________
sHoC is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 09-01-2020 , 10:15   Re: [REQ] Fog plugin CSGO
Reply With Quote #4

sorry for bumping an old topic but does anyone know how i can remove that bright thing under the player?
https://imgur.com/a/PeVo11t
__________________
kratoss1812 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 09-01-2020 , 10:59   Re: [REQ] Fog plugin CSGO
Reply With Quote #5

Quote:
Originally Posted by kratoss1812 View Post
sorry for bumping an old topic but does anyone know how i can remove that bright thing under the player?
https://imgur.com/a/PeVo11t
Change new Float:mapFogEnd = 150.0; to new Float:mapFogEnd = 0.0;
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 09-01-2020 , 16:10   Re: [REQ] Fog plugin CSGO
Reply With Quote #6

Quote:
Originally Posted by Franc1sco View Post
Change new Float:mapFogEnd = 150.0; to new Float:mapFogEnd = 0.0;
worked, ty
__________________
kratoss1812 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:49.


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