Skip to content

Commit

Permalink
v1.9
Browse files Browse the repository at this point in the history
- Fix !seq animation not set bug
  • Loading branch information
BattlefieldDuck committed Jul 21, 2019
1 parent baf7dec commit 2b6a780
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified plugins/TF2Sandbox-ToolGun.smx
Binary file not shown.
5 changes: 4 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.8"
#define PLUGIN_VERSION "1.9"

#include <sourcemod>
#include <sdkhooks>
Expand Down Expand Up @@ -208,6 +208,9 @@ public Action Command_SetSequence(int client, int args)
}

SetEntProp(entity, Prop_Send, "m_nSequence", seq);
SetEntPropFloat(entity, Prop_Send, "m_flPlaybackRate", 1.0);
SetEntPropFloat(entity, Prop_Send, "m_flCycle", 0.0);

Build_PrintToChat(client, "Set Entity %i to Sequence %i", entity, seq);

return Plugin_Continue;
Expand Down

0 comments on commit 2b6a780

Please sign in to comment.