Permalink
Browse files

I'll rebase latest commits later

  • Loading branch information...
Bara committed May 20, 2018
1 parent aa2de1a commit ea4837f6a26a9c43dbc9630ea53511c8523eca88
Showing with 9 additions and 19 deletions.
  1. +9 −19 addons/sourcemod/scripting/tests/removeHeavy.sp
@@ -20,28 +20,18 @@ public Action Command_GHeavy(int client, int args)
public Action Command_RHeavy(int client, int args)
{
PrintToChat(client, "m_bHasHelmet == %b", GetEntProp(client, Prop_Send, "m_bHasHelmet"));
PrintToChat(client, "m_bHasHeavyArmor == %b", GetEntProp(client, Prop_Send, "m_bHasHeavyArmor"));
PrintToChat(client, "m_bWearingSuit == %b", GetEntProp(client, Prop_Send, "m_bWearingSuit"));
PrintToChat(client, "m_ArmorValue == %d", GetEntProp(client, Prop_Data, "m_ArmorValue"));
SetEntProp(client, Prop_Send, "m_bHasHelmet", false);
SetEntProp(client, Prop_Send, "m_bHasHeavyArmor", false);
SetEntProp(client, Prop_Send, "m_bWearingSuit", false);
SetEntProp(client, Prop_Data, "m_ArmorValue", 0);
RequestFrame(Frame_CheckArmor, GetClientUserId(client));
}
public void Frame_CheckArmor(int userid)
{
int client = GetClientOfUserId(userid);
if (IsClientInGame(client))
if (GetEntProp(client, Prop_Send, "m_bHasHeavyArmor"))
{
PrintToChat(client, "m_bHasHelmet == %b", GetEntProp(client, Prop_Send, "m_bHasHelmet"));
PrintToChat(client, "m_bHasHeavyArmor == %b", GetEntProp(client, Prop_Send, "m_bHasHeavyArmor"));
PrintToChat(client, "m_bWearingSuit == %b", GetEntProp(client, Prop_Send, "m_bWearingSuit"));
PrintToChat(client, "m_ArmorValue == %b", GetEntProp(client, Prop_Data, "m_ArmorValue"));
PrintToChat(client, "m_ArmorValue == %d", GetEntProp(client, Prop_Data, "m_ArmorValue"));
SetEntProp(client, Prop_Send, "m_bHasHelmet", false);
SetEntProp(client, Prop_Send, "m_bHasHeavyArmor", false);
SetEntProp(client, Prop_Send, "m_bWearingSuit", false);
SetEntProp(client, Prop_Data, "m_ArmorValue", 0);
SetEntityModel(client, g_sModel[client]);
}
}

0 comments on commit ea4837f

Please sign in to comment.