From 4aff5dd122951f0e04fbb8a4815f80a320d28e67 Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 10 Oct 2008 18:23:08 +0200 Subject: [PATCH] Fixed night vision state not remembered. If zomibes turn off zvision, nvgs will be off next time too. --- changelog.txt | 30 ++++++++++++++++++------------ src/zombiereloaded.sp | 2 +- src/zr/zombie.inc | 6 +++++- todo.txt | 4 ++++ 4 files changed, 28 insertions(+), 14 deletions(-) diff --git a/changelog.txt b/changelog.txt index d64c88a..d8c6554 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,27 +1,33 @@ -2008.10.08 - 2.5.1.5 +2008.10.10 - 2.5.1.6 - Richard + * Fixed night vision state not remembered. If zomibes turn off zvision, nvgs + will be off next time too. + +2008.10.08 - 2.5.1.5 - Richard * Fixed invalid client index errors. -2008.10.08 - 2.5.1.4 +2008.10.08 - 2.5.1.4 - Richard * Fixed zombie moans not looping when interval is 0 (disabled). -2008.10.08 - 2.5.1.3 +2008.10.08 - 2.5.1.3 - Richard * Made the console commands zr_set_class_knockback and zr_get_class_knockback. -2008.10.07 - 2.5.1.2 - * Added support for overriding class nvgs with the CVAR. -1: Disable override, 0/1: Off/On +2008.10.07 - 2.5.1.2 - Richard + * Added support for overriding class nvgs with the CVAR. + -1: Disable override, 0/1: Off/On -2008.09.21 - 2.5.1.1 +2008.09.21 - 2.5.1.1 - mbalex * Added centered counter for spawn protection. * Made chat commands visible to other players. * Made unlimited ammo and hit sounds scripts part of the patch. * Added public CVars zombie_enabled and zombie_version. - * IsClientConnected must always be before IsClientInGame, because IsClientInGame does not implicit call it. + * IsClientConnected must always be before IsClientInGame, because + IsClientInGame does not implicit call it. -2008.09.20 - 2.5.1 - * Fixed spawn protection not protecting against zombies. - * Made protected players invisible and move faster. - * Changed class knockback to be a multiplier of the default knockback. +2008.09.20 - 2.5.1 + * Fixed spawn protection not protecting against zombies. (Richard) + * Made protected players invisible and move faster. (mbalex) + * Changed class knockback to be a multiplier of the default knockback. (Richard) 2008.09.17 - 2.5.1 - * Added support for alpha values in classes. + * Added support for alpha values in classes. (mbalex) diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index 40b66e7..922275a 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -15,7 +15,7 @@ #undef REQUIRE_PLUGIN #include -#define VERSION "2.5.1.5" +#define VERSION "2.5.1.6" #include "zr/zombiereloaded" #include "zr/global" diff --git a/src/zr/zombie.inc b/src/zr/zombie.inc index b0fce06..09391bb 100644 --- a/src/zr/zombie.inc +++ b/src/zr/zombie.inc @@ -405,7 +405,11 @@ ApplyZombieNightVision(client) { new bool:nvgs = GetClassNVGs(pClass[client]); NightVision(client, nvgs); - NightVisionOn(client, nvgs); + + if (bZVision[client]) + { + NightVisionOn(client, nvgs); + } } ApplyZombieFOV(client) diff --git a/todo.txt b/todo.txt index fb1e8b2..3401240 100644 --- a/todo.txt +++ b/todo.txt @@ -38,3 +38,7 @@ Section content is listed in order of importance. Some of these can be ideas too * zombie.inc:KnockBack / cvars.inc Make a CVAR for setting shotgun/hegrenade knockback boost. The zombies don't fly away that much. + +* Fix some zombies not able to zombify some humans when using the infect command + before the first zombie. (make him a mother zombie, kill infect timer, set some + switches)