Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
Fix the copy function copying building bug
  • Loading branch information
BattlefieldDuck committed Apr 17, 2019
1 parent 8dca634 commit f062f50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified plugins/TF2Sandbox-ToolGun.smx
Binary file not shown.
10 changes: 9 additions & 1 deletion 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.0"
#define PLUGIN_VERSION "1.1"

#include <sourcemod>
#include <sdkhooks>
Expand Down Expand Up @@ -681,6 +681,14 @@ int GetClientAimEntity(int client)
int entity = TR_GetEntityIndex(trace);
if (entity > 0 && Build_ReturnEntityOwner(entity) == client)
{
char szClass[32];
GetEntityClassname(entity, szClass, sizeof(szClass));

if (StrContains(szClass, "prop_") == -1)
{
return -1;
}

CloseHandle(trace);
return entity;
}
Expand Down

0 comments on commit f062f50

Please sign in to comment.