Fixed minor errors, fixed antistick having some false positives, fixed every single Zombie:Reloaded line at top of the file.
This commit is contained in:
parent
07d6e1f8f1
commit
5497a13dd7
@ -316,14 +316,14 @@ public Action:AntiStickSolidifyTimer(Handle:timer, any:client)
|
||||
// Loop through all client's and check if client is stuck in them.
|
||||
for (new x = 1; x <= MaxClients; x++)
|
||||
{
|
||||
// Don't compare the same clients.
|
||||
if (client == x)
|
||||
// If client isn't in-game, then stop.
|
||||
if (!IsClientInGame(x))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// If client isn't in-game, then stop.
|
||||
if (!IsClientInGame(x))
|
||||
// Don't compare the same clients.
|
||||
if (client == x)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -409,14 +409,14 @@ stock AntiStickBuildModelBox(client, Float:boundaries[AntiStickBoxBound][3], Flo
|
||||
new Float:eyeloc[3];
|
||||
GetClientEyePosition(client, eyeloc);
|
||||
|
||||
boundaries[BoxBound_FUR][2] = eyeloc[2] / 1.1; // Scale box down a bit to prevent weird false triggers.
|
||||
boundaries[BoxBound_FUL][2] = eyeloc[2] / 1.1;
|
||||
boundaries[BoxBound_FDR][2] = clientloc[2] + 3.0; // Raise this a hair up to be safe.
|
||||
boundaries[BoxBound_FDL][2] = clientloc[2] + 3.0;
|
||||
boundaries[BoxBound_BUR][2] = eyeloc[2] / 1.1;
|
||||
boundaries[BoxBound_BUL][2] = eyeloc[2] / 1.1;
|
||||
boundaries[BoxBound_BDR][2] = clientloc[2] + 3.0;
|
||||
boundaries[BoxBound_BDL][2] = clientloc[2] + 3.0;
|
||||
boundaries[BoxBound_FUR][2] = eyeloc[2];
|
||||
boundaries[BoxBound_FUL][2] = eyeloc[2];
|
||||
boundaries[BoxBound_FDR][2] = clientloc[2] + 15.0;
|
||||
boundaries[BoxBound_FDL][2] = clientloc[2] + 15.0;
|
||||
boundaries[BoxBound_BUR][2] = eyeloc[2];
|
||||
boundaries[BoxBound_BUL][2] = eyeloc[2];
|
||||
boundaries[BoxBound_BDR][2] = clientloc[2] + 15.0;
|
||||
boundaries[BoxBound_BDL][2] = clientloc[2] + 15.0;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -635,6 +635,9 @@ public Action:AntiStickSetWidthCommand(client, argc)
|
||||
// Set hull width.
|
||||
AntiStickSetModelHullWidth(0, model, hull_width);
|
||||
|
||||
// Tell client it was successful.
|
||||
TranslationReplyToCommand(client, "AntiStick command set width successful", model, hull_width);
|
||||
|
||||
// Save data.
|
||||
AntiStickSaveData();
|
||||
|
||||
|
@ -107,8 +107,8 @@ NapalmOnWeaponFire(client, const String:weapon[])
|
||||
return;
|
||||
}
|
||||
|
||||
// Wait .1 seconds.
|
||||
CreateTimer(0.1, NapalmIgniteGrenade);
|
||||
// Wait .15 seconds.
|
||||
CreateTimer(0.15, NapalmIgniteGrenade);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1003,6 +1003,12 @@ stock ZMarketSetRebuyCookie(client, WeaponsSlot:slot, const String:value[])
|
||||
|
||||
// Find cookie handle, and retrieve its value.
|
||||
new Handle:rebuycookie = FindClientCookie(rebuycookiename);
|
||||
if (rebuycookie == INVALID_HANDLE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Set weapon to cookie.
|
||||
SetClientCookie(client, rebuycookie, value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user