Skip to content
Permalink
Browse files

Fix armor

I can't reproduce this bug on my test server but it doesn't work SNG TTT.
  • Loading branch information...
Bara committed Jun 28, 2018
1 parent 6acbb39 commit c4f6765e2094ec37deb8729923b8489fe89c90a5
Showing with 3 additions and 3 deletions.
  1. +3 −3 addons/sourcemod/scripting/ttt/ttt_weapons.sp
@@ -539,10 +539,10 @@ public Action TTT_OnItemPurchased(int client, const char[] itemshort, bool count
return Plugin_Continue;
}

void GiveArmor(int client)
void GiveArmor(int client, int armor = 100)
{
g_iKevs[client]++;
SetEntProp(client, Prop_Data, "m_ArmorValue", 100, 1);
SetEntProp(client, Prop_Send, "m_ArmorValue", armor);
}

void GiveHeavy(int client)
@@ -588,7 +588,7 @@ void ResetStuff()
SetEntProp(i, Prop_Send, "m_bHasHelmet", false);
SetEntProp(i, Prop_Send, "m_bHasHeavyArmor", false);
SetEntProp(i, Prop_Send, "m_bWearingSuit", false);
SetEntProp(i, Prop_Data, "m_ArmorValue", 0);
SetEntProp(i, Prop_Send, "m_ArmorValue", 0);
}
}

0 comments on commit c4f6765

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.