Removed unneccesary comments. Improved a CVAR description.
This commit is contained in:
parent
0055b943d4
commit
9cb08e2ee7
|
@ -125,7 +125,6 @@ GetClassIndex(String:name[])
|
|||
new i;
|
||||
decl String:current_name[64];
|
||||
|
||||
// Search through all classes for the specified name.
|
||||
for (i = 0; i < classCount; i++)
|
||||
{
|
||||
GetClassName(i, current_name, sizeof(current_name));
|
||||
|
@ -135,7 +134,6 @@ GetClassIndex(String:name[])
|
|||
}
|
||||
}
|
||||
|
||||
// Class not found.
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -215,9 +213,6 @@ bool:GetClassNVGs(classindex)
|
|||
|
||||
if (classes)
|
||||
{
|
||||
// Check if the nvgs CVAR is negative. If not negative, use the CVAR instead of
|
||||
// the class variable. Makes it possible to override nvgs in per-map configs.
|
||||
|
||||
new nvgs_override = GetConVarInt(gCvars[CVAR_ZOMBIE_NVGS]);
|
||||
if (nvgs_override > -1)
|
||||
{
|
||||
|
@ -229,8 +224,6 @@ bool:GetClassNVGs(classindex)
|
|||
}
|
||||
}
|
||||
|
||||
// Note to config: If classes are disabled, nvgs is disabled if it's non-zero.
|
||||
|
||||
return IntToBool(GetConVarInt(gCvars[CVAR_ZOMBIE_NVGS]));
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ CreateCvars()
|
|||
gCvars[CVAR_ZOMBIE_JUMP_DISTANCE] = CreateConVar("zr_zombie_jump_distance", "0.1", "How far the zombie jumps, (0: Regular jump distance)");
|
||||
gCvars[CVAR_ZOMBIE_JUMP_HEIGHT] = CreateConVar("zr_zombie_jump_height", "10.0", "How high a zombie jumps (0: Regular jump height)");
|
||||
gCvars[CVAR_ZOMBIE_KNOCKBACK] = CreateConVar("zr_zombie_knockback", "1", "How far zombies are pushed back when shot. If classes are enabled: This one is a multiplier for class knockback values (1: Default)");
|
||||
gCvars[CVAR_ZOMBIE_NVGS] = CreateConVar("zr_zombie_nvgs", "-1", "Zombies will receive nightvision. Also used to override class nvgs if non-negative. (-1: No override, 0: No night vision, 1: Night vision)");
|
||||
gCvars[CVAR_ZOMBIE_NVGS] = CreateConVar("zr_zombie_nvgs", "-1", "Zombies will be equipped with nightvision. Also used to override class nvgs if non-negative. (-1: No override/Nvgs on, 0: No nvgs, 1: Nvgs on)");
|
||||
gCvars[CVAR_ZOMBIE_FOV] = CreateConVar("zr_zombie_fov", "110", "The field of vision of zombies (90: Default vision)");
|
||||
gCvars[CVAR_ZOMBIE_REGEN] = CreateConVar("zr_zombie_regen", "0", "Zombies will regenerate health");
|
||||
gCvars[CVAR_ZOMBIE_REGEN_HEALTH] = CreateConVar("zr_zombie_regen_health", "1", "How much health is regenerated when zr_zombie_regen is 1");
|
||||
|
|
Loading…
Reference in New Issue
Block a user