diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index b5eb9d4..b0522b1 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -227,7 +227,7 @@ public OnMapEnd() */ public OnAutoConfigsBuffered() { - // Load map configurations. + // Load map configurations. ConfigLoad(); } @@ -328,7 +328,7 @@ public OnClientPutInServer(client) /** * Called once a client's saved cookies have been loaded from the database. * - * @param client Client index. + * @param client Client index. */ public OnClientCookiesCached(client) { @@ -351,7 +351,7 @@ public OnClientCookiesCached(client) * This callback is gauranteed to occur on all clients, and always * after each OnClientPutInServer() call. * - * @param client Client index. + * @param client Client index. * @noreturn */ public OnClientPostAdminCheck(client) @@ -382,13 +382,13 @@ public OnClientDisconnect(client) /** * Called when a clients movement buttons are being processed * - * @param client Index of the client. - * @param buttons Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc). - * @param impulse Copyback buffer containing the current impulse command. - * @param vel Players desired velocity. - * @param angles Players desired view angles. - * @param weapon Entity index of the new weapon if player switches weapon, 0 otherwise. - * @return Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise. + * @param client Index of the client. + * @param buttons Copyback buffer containing the current commands (as bitflags - see entity_prop_stocks.inc). + * @param impulse Copyback buffer containing the current impulse command. + * @param vel Players desired velocity. + * @param angles Players desired view angles. + * @param weapon Entity index of the new weapon if player switches weapon, 0 otherwise. + * @return Plugin_Handled to block the commands from being processed, Plugin_Continue otherwise. */ public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) { diff --git a/src/zr/event.inc b/src/zr/event.inc index 5216180..420c6a7 100644 --- a/src/zr/event.inc +++ b/src/zr/event.inc @@ -201,7 +201,7 @@ public Action:EventPlayerSpawnPost(Handle:timer, any:client) WeaponsOnClientSpawnPost(client); SEffectsOnClientSpawnPost(client); ClassOnClientSpawnPost(client); - SpawnProtectOnClientSpawnPost(client); // Must be executed after class attributes are applied. + SpawnProtectOnClientSpawnPost(client); // Must be executed after class attributes are applied. } /** diff --git a/src/zr/playerclasses/apply.inc b/src/zr/playerclasses/apply.inc index 6ae73bb..978f1b5 100644 --- a/src/zr/playerclasses/apply.inc +++ b/src/zr/playerclasses/apply.inc @@ -486,8 +486,8 @@ public ClassPreThinkPost(client) /** * Called when a clients movement buttons are being processed * - * @param client Index of the client. - * @param vel Players desired velocity. + * @param client Index of the client. + * @param vel Players desired velocity. */ Class_OnPlayerRunCmd(client, Float:vel[3]) { diff --git a/src/zr/playerclasses/classevents.inc b/src/zr/playerclasses/classevents.inc index fec07f6..49c2858 100644 --- a/src/zr/playerclasses/classevents.inc +++ b/src/zr/playerclasses/classevents.inc @@ -75,11 +75,11 @@ ClassOnModulesLoaded() */ ClassOnMapStart() { - // Clear multipliers. - ClassResetMultiplierCache(); + // Clear multipliers. + ClassResetMultiplierCache(); - // Prepare hp regeneration module. - ClassHealthRegenInit(); + // Prepare hp regeneration module. + ClassHealthRegenInit(); } /** @@ -133,7 +133,7 @@ ClassClientInit(client) * This callback is gauranteed to occur on all clients, and always * after each OnClientPutInServer() call. * - * @param client Client index. + * @param client Client index. * @noreturn */ ClassOnClientPostAdminCheck(client) @@ -156,7 +156,7 @@ ClassOnClientPostAdminCheck(client) /** * Called once a client's saved cookies have been loaded from the database. * - * @param client Client index. + * @param client Client index. */ ClassOnCookiesCached(client) { diff --git a/src/zr/playerclasses/clientoverlays.inc b/src/zr/playerclasses/clientoverlays.inc index 0743972..102aebb 100644 --- a/src/zr/playerclasses/clientoverlays.inc +++ b/src/zr/playerclasses/clientoverlays.inc @@ -81,7 +81,7 @@ ClassOverlayOnCookiesCreate() /** * Called once a client's saved cookies have been loaded from the database. * - * @param client Client index. + * @param client Client index. */ ClassOverlayOnCookiesCached(client) { diff --git a/src/zr/soundeffects/voice.inc b/src/zr/soundeffects/voice.inc index d8921e9..ebcd778 100644 --- a/src/zr/soundeffects/voice.inc +++ b/src/zr/soundeffects/voice.inc @@ -99,9 +99,9 @@ VoiceOnClientHuman(client) * Set the receiver ability to listen to the sender. * Note: This function is from sdktools_voice, it fails if iSender is muted. * - * @param iReceiver The listener index. - * @param iSender The sender index. - * @return True if successful otherwise false. + * @param iReceiver The listener index. + * @param iSender The sender index. + * @return True if successful otherwise false. */ stock bool:VoiceSetClientListening(iReceiver, iSender, bool:bListen) { diff --git a/src/zr/tools_functions.inc b/src/zr/tools_functions.inc index ead40e8..97d40d9 100644 --- a/src/zr/tools_functions.inc +++ b/src/zr/tools_functions.inc @@ -193,31 +193,31 @@ stock ToolsSetClientAlpha(client, alpha) /** * Sets an entity's color. (This is the "get" version of SetEntityRenderColor) * - * @param client The client index. + * @param client The client index. * @return The alpha value of the client. (0-255) */ stock ToolsGetEntityAlpha(entity) { - static bool:gotconfig = false; - static String:prop[32]; + static bool:gotconfig = false; + static String:prop[32]; - if (!gotconfig) - { - new Handle:gc = LoadGameConfigFile("core.games"); - new bool:exists = GameConfGetKeyValue(gc, "m_clrRender", prop, sizeof(prop)); - CloseHandle(gc); + if (!gotconfig) + { + new Handle:gc = LoadGameConfigFile("core.games"); + new bool:exists = GameConfGetKeyValue(gc, "m_clrRender", prop, sizeof(prop)); + CloseHandle(gc); - if (!exists) - { - strcopy(prop, sizeof(prop), "m_clrRender"); - } + if (!exists) + { + strcopy(prop, sizeof(prop), "m_clrRender"); + } - gotconfig = true; - } + gotconfig = true; + } - new offset = GetEntSendPropOffs(entity, prop); + new offset = GetEntSendPropOffs(entity, prop); - return GetEntData(entity, offset + 3, 1); + return GetEntData(entity, offset + 3, 1); } /** diff --git a/src/zr/volfeatures/volevents.inc b/src/zr/volfeatures/volevents.inc index 5456326..9948d49 100644 --- a/src/zr/volfeatures/volevents.inc +++ b/src/zr/volfeatures/volevents.inc @@ -185,8 +185,8 @@ VolOnRoundEnd() */ VolOnMapEnd() { - // Make sure timers and volumes are stopped. Foreward event. - VolOnRoundEnd(); + // Make sure timers and volumes are stopped. Foreward event. + VolOnRoundEnd(); } /** diff --git a/src/zr/zhp.inc b/src/zr/zhp.inc index b6e1d13..d9f539c 100644 --- a/src/zr/zhp.inc +++ b/src/zr/zhp.inc @@ -75,7 +75,7 @@ ZHPClientInit(client) /** * Called once a client's saved cookies have been loaded from the database. * - * @param client Client index. + * @param client Client index. */ ZHPOnCookiesCached(client) { diff --git a/src/zr/zombiereloaded.inc b/src/zr/zombiereloaded.inc index 46b700a..0a1f9b8 100644 --- a/src/zr/zombiereloaded.inc +++ b/src/zr/zombiereloaded.inc @@ -366,46 +366,46 @@ stock bool:ZRIsClientAdmin(client, AdminFlag:flag = Admin_Generic) * * Note: The translation phrases are found in common.phrases.txt. * - * @param client Client index, or 0 for server. - * @param reason COMMAND_TARGET reason. + * @param client Client index, or 0 for server. + * @param reason COMMAND_TARGET reason. */ stock ZRReplyToTargetError(client, reason) { - switch (reason) - { - case COMMAND_TARGET_NONE: - { - TranslationReplyToCommand(client, "No matching client"); - } - case COMMAND_TARGET_NOT_ALIVE: - { - TranslationReplyToCommand(client, "Target must be alive"); - } - case COMMAND_TARGET_NOT_DEAD: - { - TranslationReplyToCommand(client, "Target must be dead"); - } - case COMMAND_TARGET_NOT_IN_GAME: - { - TranslationReplyToCommand(client, "Target is not in game"); - } - case COMMAND_TARGET_IMMUNE: - { - TranslationReplyToCommand(client, "Unable to target"); - } - case COMMAND_TARGET_EMPTY_FILTER: - { - TranslationReplyToCommand(client, "No matching clients"); - } - case COMMAND_TARGET_NOT_HUMAN: - { - TranslationReplyToCommand(client, "Cannot target bot"); - } - case COMMAND_TARGET_AMBIGUOUS: - { - TranslationReplyToCommand(client, "More than one client matched"); - } - } + switch (reason) + { + case COMMAND_TARGET_NONE: + { + TranslationReplyToCommand(client, "No matching client"); + } + case COMMAND_TARGET_NOT_ALIVE: + { + TranslationReplyToCommand(client, "Target must be alive"); + } + case COMMAND_TARGET_NOT_DEAD: + { + TranslationReplyToCommand(client, "Target must be dead"); + } + case COMMAND_TARGET_NOT_IN_GAME: + { + TranslationReplyToCommand(client, "Target is not in game"); + } + case COMMAND_TARGET_IMMUNE: + { + TranslationReplyToCommand(client, "Unable to target"); + } + case COMMAND_TARGET_EMPTY_FILTER: + { + TranslationReplyToCommand(client, "No matching clients"); + } + case COMMAND_TARGET_NOT_HUMAN: + { + TranslationReplyToCommand(client, "Cannot target bot"); + } + case COMMAND_TARGET_AMBIGUOUS: + { + TranslationReplyToCommand(client, "More than one client matched"); + } + } } /** @@ -468,32 +468,32 @@ ZRBoolToString(bool:value, String:output[], maxlen) * The seed is set automatically for each plugin. * Rewritten by MatthiasVance, thanks. * - * @param min Min value used as lower border - * @param max Max value used as upper border - * @return Random Integer number between min and max + * @param min Min value used as lower border + * @param max Max value used as upper border + * @return Random Integer number between min and max */ -#define SIZE_OF_INT 2147483647 // without 0 +#define SIZE_OF_INT 2147483647 // without 0 stock Math_GetRandomInt(min, max) { - new random = GetURandomInt(); + new random = GetURandomInt(); - if (random == 0) { - random++; - } + if (random == 0) { + random++; + } - return RoundToCeil(float(random) / (float(SIZE_OF_INT) / float(max - min + 1))) + min - 1; + return RoundToCeil(float(random) / (float(SIZE_OF_INT) / float(max - min + 1))) + min - 1; } /** * (from SMLIB) * Gets the parent entity of an entity. * - * @param entity Entity Index. - * @return Entity Index of the parent. + * @param entity Entity Index. + * @return Entity Index of the parent. */ stock Entity_GetParent(entity) { - return GetEntPropEnt(entity, Prop_Data, "m_pParent"); + return GetEntPropEnt(entity, Prop_Data, "m_pParent"); } /**