Plugin Description:
This plugin is created for all HL1 fog lover, it makes different fog for each mod (infection, multi, swarm, plague, survivor, nemesis).
Cvars:
No cvars all hardcoded
Configuration:
* Please make sure to use OpenGL mod, because HL1 based game is suck!
* Remember to disable ZP original fog, look in "zombieplague.ini" and set "
FOG = 0"
To set fog color and density:
PHP Code:
public zp_round_started(gamemode)
{
switch(gamemode)
{
// Make sure density must between 0.0001 and 0.25
// Max RGB color is 255
case MODE_INFECTION: CreateFog(0, 0, 0, 0, 0.0008);
case MODE_MULTI: CreateFog(0, 100, 100, 0, 0.0008);
case MODE_PLAGUE: CreateFog(0, 0, 100, 0, 0.0008);
case MODE_SURVIVOR: CreateFog(0, 0, 0, 100, 0.0008);
case MODE_NEMESIS: CreateFog(0, 100, 0, 0, 0.0008);
case MODE_SWARM: CreateFog(0, 100, 100, 100, 0.0005);
}
}
To remove fog for certain player:
PHP Code:
CreateFog(id, .clear = true);
To remove fog for all players:
PHP Code:
CreateFog(0, .clear = true);
Credits:
Arkshine -- Custom Fog Stock.
Dolph_Ziggler -- His idea, nice yow!