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:
@ -22,7 +22,7 @@
|
||||
*/
|
||||
ClassClientInit(client)
|
||||
{
|
||||
if (ZRIsValidClient(client))
|
||||
if (ZRIsClientValid(client))
|
||||
{
|
||||
// Set default class indexes on the player.
|
||||
ClassClientSetDefaultIndexes(client);
|
||||
|
@ -86,7 +86,7 @@ ClassOverlayStop(client)
|
||||
|
||||
public Action:ClassOverlayTimer(Handle:timer, any:client)
|
||||
{
|
||||
if (!IsClientInGame(client) || !IsPlayerZombie(client))
|
||||
if (!IsClientInGame(client) || !InfectIsClientInfected(client))
|
||||
{
|
||||
tOverlay[client] = INVALID_HANDLE;
|
||||
return Plugin_Stop;
|
||||
|
@ -331,7 +331,7 @@ ClassGetActiveIndex(client)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (IsPlayerHuman(client))
|
||||
if (InfectIsClientHuman(client))
|
||||
{
|
||||
teamid = ZR_CLASS_TEAM_HUMANS;
|
||||
}
|
||||
|
@ -456,7 +456,7 @@ bool:ClassReloadDataCache()
|
||||
bool:ClassReloadPlayerCache(client, classindex, cachetype = ZR_CLASS_CACHE_MODIFIED)
|
||||
{
|
||||
// Validate indexes.
|
||||
if (!ClassValidateIndex(classindex) || !ZRIsValidClient(client))
|
||||
if (!ClassValidateIndex(classindex) || !ZRIsClientValid(client))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user