diff --git a/docs/zr_manual.htm b/docs/zr_manual.htm
index 4c011e3..46764c6 100644
--- a/docs/zr_manual.htm
+++ b/docs/zr_manual.htm
@@ -278,14 +278,13 @@ plugin is compatible with all existing Zombie Mod maps.
+ ZRTools extension (bundled). Provides some extra functions needed by Zombie:Reloaded.
+ See Plugin Installation (2.2).
+
+ - Or, depending on version -
SDK Hooks Extension
(version 1.1 or newer). Provides some extra functions needed by Zombie:Reloaded.
-
-
2.2 Plugin Installation
diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp
index 57f8ec1..7f26aba 100644
--- a/src/zombiereloaded.sp
+++ b/src/zombiereloaded.sp
@@ -26,7 +26,7 @@
*/
// Comment to use ZR Tools Extension, otherwise SDK Hooks Extension will be used.
-#define USE_SDKHOOKS
+//define USE_SDKHOOKS
#pragma semicolon 1
#include
@@ -171,6 +171,7 @@ public OnAllPluginsLoaded()
public OnMapStart()
{
// Forward event to modules.
+ ClassOnMapStart();
OverlaysOnMapStart();
RoundEndOnMapStart();
InfectOnMapStart();
diff --git a/src/zr/playerclasses/classevents.inc b/src/zr/playerclasses/classevents.inc
index a5e7fbe..8ae8af1 100644
--- a/src/zr/playerclasses/classevents.inc
+++ b/src/zr/playerclasses/classevents.inc
@@ -49,6 +49,16 @@ ClassOnModulesLoaded()
ClassClientSetDefaultIndexes();
}
+/**
+ * Called when map is loading, before configs are loaded. Used for
+ * initializing class module.
+ */
+ClassOnMapStart()
+{
+ // Clear multipliers.
+ ClassResetMultiplierCache();
+}
+
/**
* Called when a client connects to the server (OnClientPutInServer).
*/
diff --git a/src/zr/playerclasses/playerclasses.inc b/src/zr/playerclasses/playerclasses.inc
index 582cfa2..9409981 100644
--- a/src/zr/playerclasses/playerclasses.inc
+++ b/src/zr/playerclasses/playerclasses.inc
@@ -480,7 +480,7 @@ new String:ClassOriginalPlayerModel[MAXPLAYERS + 1][PLATFORM_MAX_PATH];
* @param keepMultipliers Optional. Don't reset multipliers. Default is
* false.
*/
-ClassLoad(bool:keepMultipliers = false)
+ClassLoad()
{
// Register config file.
ConfigRegisterConfig(File_Classes, Structure_Keyvalue, CONFIG_FILE_ALIAS_CLASSES);
@@ -630,12 +630,6 @@ ClassLoad(bool:keepMultipliers = false)
// Reset selected class indexes for next spawn.
ClassResetNextIndexes();
- // Reset attribute multipliers, if not keeping.
- if (!keepMultipliers)
- {
- ClassResetMultiplierCache();
- }
-
// Mark classes as valid.
ClassValidated = true;
@@ -660,7 +654,7 @@ ClassLoad(bool:keepMultipliers = false)
public ClassOnConfigReload(ConfigFile:config)
{
// Reload class config.
- ClassLoad(true);
+ ClassLoad();
}
/**