Made visualambience module, removed an offset thats provided by SM, moved zombie/human checks to infect module (renamed), fixed blast cvar, renamed some functions, removed zombie cvar enable because it didnt work.
This commit is contained in:
@ -5,8 +5,6 @@
|
||||
* Author: Greyscale
|
||||
* ====================
|
||||
*/
|
||||
|
||||
new String:skyname[32];
|
||||
|
||||
HookCommands()
|
||||
{
|
||||
@ -27,7 +25,7 @@ public Action:Command_NightVision(client, argc)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!IsPlayerZombie(client))
|
||||
if (!InfectIsClientInfected(client))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -50,32 +48,6 @@ public Action:Command_NightVision(client, argc)
|
||||
}
|
||||
}
|
||||
|
||||
FindMapSky()
|
||||
{
|
||||
GetConVarString(FindConVar("sv_skyname"), skyname, sizeof(skyname));
|
||||
}
|
||||
|
||||
ChangeLightStyle()
|
||||
{
|
||||
new bool:dark = GetConVarBool(g_hCvarsList[CVAR_DARK]);
|
||||
if (dark)
|
||||
{
|
||||
decl String:darkness[2];
|
||||
decl String:sky[32];
|
||||
|
||||
GetConVarString(g_hCvarsList[CVAR_DARK_LEVEL], darkness, sizeof(darkness));
|
||||
GetConVarString(g_hCvarsList[CVAR_DARK_SKY], sky, sizeof(sky));
|
||||
|
||||
SetLightStyle(0, darkness);
|
||||
SetConVarString(FindConVar("sv_skyname"), sky, true, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLightStyle(0, "n");
|
||||
SetConVarString(FindConVar("sv_skyname"), skyname, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
JumpBoost(client, Float:distance, Float:height)
|
||||
{
|
||||
new Float:vel[3];
|
||||
@ -110,14 +82,4 @@ RemoveObjectives()
|
||||
RemoveEdict(x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool:IsPlayerZombie(client)
|
||||
{
|
||||
return bZombie[client];
|
||||
}
|
||||
|
||||
bool:IsPlayerHuman(client)
|
||||
{
|
||||
return !bZombie[client];
|
||||
}
|
Reference in New Issue
Block a user