Created overlay module to unify class overlays and round end overlays, removed unused class overlay functions, fixed invalid hookid error, allow client to toggle class overlay if allowed in cvar and made toggle cmds configurable, cleaned up translations file.

This commit is contained in:
Greyscale
2009-05-14 02:28:26 +02:00
parent 8f9a66e366
commit e051b7bdaa
22 changed files with 743 additions and 508 deletions

View File

@ -31,6 +31,7 @@
#include "zr/sayhooks"
#include "zr/tools"
#include "zr/models"
#include "zr/overlays"
#include "zr/playerclasses/playerclasses"
#include "zr/weapons/weapons"
#include "zr/hitgroups"
@ -98,9 +99,6 @@ public OnPluginStart()
LoadTranslations("common.phrases.txt");
LoadTranslations("zombiereloaded.phrases.txt");
// Start loading ZR init functions.
ZR_PrintToServer("Plugin loading");
// Log
LogInit();
@ -110,16 +108,12 @@ public OnPluginStart()
// Tools
ToolsInit();
// TODO: Be modulized/recoded.
CreateCommands();
HookCommands();
// Commands
CommandsInit();
// Weapons
WeaponsInit();
// Damage
DamageInit();
// Say Hooks
SayHooksInit();
@ -131,9 +125,6 @@ public OnPluginStart()
// Create public cvar for tracking.
CreateConVar("gs_zombiereloaded_version", VERSION, "[ZR] Current version of this plugin", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_UNLOGGED|FCVAR_DONTRECORD|FCVAR_REPLICATED|FCVAR_NOTIFY);
// Finish loading ZR init functions.
ZR_PrintToServer("Plugin loaded");
}
/**
@ -171,6 +162,7 @@ public OnMapStart()
{
// Forward event to modules.
SerialOnMapStart();
OverlaysOnMapStart();
RoundEndOnMapStart();
InfectOnMapStart();
SEffectsOnMapStart();
@ -216,8 +208,8 @@ public OnClientPutInServer(client)
{
// Forward event to modules.
ClassClientInit(client);
OverlaysClientInit(client);
WeaponsClientInit(client);
RoundEndClientInit(client);
InfectClientInit(client);
DamageClientInit(client);
SEffectsClientInit(client);