diff --git a/plugins/TF2Sandbox-ToolGun.smx b/plugins/TF2Sandbox-ToolGun.smx index 838bf68..e63b6b6 100644 Binary files a/plugins/TF2Sandbox-ToolGun.smx and b/plugins/TF2Sandbox-ToolGun.smx differ diff --git a/scripting/TF2Sandbox-ToolGun.sp b/scripting/TF2Sandbox-ToolGun.sp index 0da17fa..e3b719d 100644 --- a/scripting/TF2Sandbox-ToolGun.sp +++ b/scripting/TF2Sandbox-ToolGun.sp @@ -3,7 +3,7 @@ #define DEBUG #define PLUGIN_AUTHOR "BattlefieldDuck" -#define PLUGIN_VERSION "1.0" +#define PLUGIN_VERSION "1.1" #include #include @@ -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; }