Skip to content

Commit

Permalink
v1.6
Browse files Browse the repository at this point in the history
- Fix minor bugs
- Add admin overrides
  • Loading branch information
BattlefieldDuck committed Jun 19, 2019
1 parent 92179bd commit 36447c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified plugins/TF2Sandbox-ToolGun.smx
Binary file not shown.
6 changes: 3 additions & 3 deletions scripting/TF2Sandbox-ToolGun.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 "1.5"
#define PLUGIN_VERSION "1.6"

#include <sourcemod>
#include <sdkhooks>
Expand Down Expand Up @@ -432,7 +432,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
{
iSkin += 1;
}
else if (buttons & IN_ATTACK2 && iSkin > 1)
else if (buttons & IN_ATTACK2 && iSkin > 0)
{
iSkin -= 1;
}
Expand Down Expand Up @@ -798,7 +798,7 @@ int GetClientAimEntity(int client)
if(TR_DidHit(trace))
{
int entity = TR_GetEntityIndex(trace);
if (entity > 0 && Build_ReturnEntityOwner(entity) == client)
if (entity > 0 && (Build_ReturnEntityOwner(entity) == client || CheckCommandAccess(client, "sm_admin", ADMFLAG_GENERIC)))
{
char szClass[32];
GetEntityClassname(entity, szClass, sizeof(szClass));
Expand Down

0 comments on commit 36447c0

Please sign in to comment.