General: Convert TABs to spaces.

Some files appeared to not follow their own rules, check codestyle.txt
This commit is contained in:
zaCade 2018-07-30 21:53:45 +02:00
parent 651dd9921a
commit 9676fb9852
10 changed files with 91 additions and 91 deletions

View File

@ -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)
{

View File

@ -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.
}
/**

View File

@ -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])
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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);
}
/**

View File

@ -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();
}
/**

View File

@ -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)
{

View File

@ -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");
}
/**