Skip to content

Commit

Permalink
Fix OnTakeDamage error from yesterday update
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Jun 21, 2024
1 parent 90cca4c commit 16790cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripting/randomizer.sp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#pragma newdecls required

#define PLUGIN_VERSION "1.11.2"
#define PLUGIN_VERSION "1.11.3"
#define PLUGIN_VERSION_REVISION "manual"

#define CONFIG_MAXCHAR 64
Expand Down
12 changes: 6 additions & 6 deletions scripting/randomizer/sdkhook.sp
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ public void Client_OnTakeDamagePost(int iVictim, int iAttacker, int iInflictor,
g_bOnTakeDamage = false;
g_bFeignDeath[iVictim] = false;

if (g_bOnTakeDamageClass[iAttacker])
{
RevertClientClass(iAttacker);
g_bOnTakeDamageClass[iAttacker] = false;
}

if (0 < iAttacker <= MaxClients)
{
if (g_bOnTakeDamageClass[iAttacker])
{
RevertClientClass(iAttacker);
g_bOnTakeDamageClass[iAttacker] = false;
}

if (iWeapon != INVALID_ENT_REFERENCE && HasEntProp(iWeapon, Prop_Send, "m_iItemDefinitionIndex"))
{
Properties_SaveWeaponPropInt(iAttacker, iWeapon, "m_iDecapitations");
Expand Down

0 comments on commit 16790cb

Please sign in to comment.