Skip to content

Commit

Permalink
v4.7
Browse files Browse the repository at this point in the history
- Remove debug code
- Fix some syntax
  • Loading branch information
BattlefieldDuck committed Jul 8, 2019
1 parent 526ee54 commit 274b33a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Binary file modified plugins/TF2Sandbox-PhysicsGun.smx
Binary file not shown.
15 changes: 6 additions & 9 deletions scripting/TF2Sandbox-PhysicsGun.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#define DEBUG

#define PLUGIN_AUTHOR "BattlefieldDuck"
#define PLUGIN_VERSION "4.6"
#define PLUGIN_VERSION "4.7"

#include <sourcemod>
#include <sdkhooks>
Expand Down Expand Up @@ -184,6 +184,7 @@ public Action Command_EquipPhysicsGun(int client, int args)

TF2_RemoveWeaponSlot(client, WEAPON_SLOT);
DispatchSpawn(weapon);

EquipPlayerWeapon(client, weapon);
}

Expand Down Expand Up @@ -532,10 +533,6 @@ int Duplicator(int iEntity)
SetEntProp(iNewEntity, Prop_Send, "m_nSkin", GetEntProp(iEntity, Prop_Send, "m_nSkin"));
SetEntPropString(iNewEntity, Prop_Data, "m_iName", szName);

GetEntPropVector(iNewEntity, Prop_Send, "m_vecOrigin", fOrigin);

PrintCenterTextAll("%f %f %f", fOrigin[0], fOrigin[1], fOrigin[2]);

return iNewEntity;
}

Expand Down Expand Up @@ -576,11 +573,11 @@ stock void ClientSettings(int client, int &buttons, int &impulse, float vel[3],
//Fix client eyes angles
if (buttons & IN_RELOAD || buttons & IN_ATTACK3)
{
if(!(GetEntityFlags(client) & FL_FROZEN)) SetEntityFlags(client, (GetEntityFlags(client) | FL_FROZEN));
if(!(GetEntityFlags(client) & FL_FROZEN)) SetEntityFlags(client, (GetEntityFlags(client) | FL_FROZEN));
}
else
{
if(GetEntityFlags(client) & FL_FROZEN) SetEntityFlags(client, (GetEntityFlags(client) & ~FL_FROZEN));
if(GetEntityFlags(client) & FL_FROZEN) SetEntityFlags(client, (GetEntityFlags(client) & ~FL_FROZEN));
}
}
else
Expand All @@ -596,9 +593,9 @@ stock void ClientSettings(int client, int &buttons, int &impulse, float vel[3],
{
SDKUnhook(client, SDKHook_WeaponCanSwitchTo, BlockWeaponSwitch);

if(GetEntProp(client, Prop_Send, "m_iHideHUD") & HIDEHUD_WEAPONSELECTION) SetEntProp(client, Prop_Send, "m_iHideHUD", GetEntProp(client, Prop_Send, "m_iHideHUD") &~HIDEHUD_WEAPONSELECTION);
if(GetEntProp(client, Prop_Send, "m_iHideHUD") & HIDEHUD_WEAPONSELECTION) SetEntProp(client, Prop_Send, "m_iHideHUD", GetEntProp(client, Prop_Send, "m_iHideHUD") &~HIDEHUD_WEAPONSELECTION);

if(GetEntityFlags(client) & FL_FROZEN) SetEntityFlags(client, (GetEntityFlags(client) & ~FL_FROZEN));
if(GetEntityFlags(client) & FL_FROZEN) SetEntityFlags(client, (GetEntityFlags(client) & ~FL_FROZEN));
}
}

Expand Down

0 comments on commit 274b33a

Please sign in to comment.