Skip to content

Commit 2b6a780

Browse files
v1.9
- Fix !seq animation not set bug
1 parent baf7dec commit 2b6a780

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugins/TF2Sandbox-ToolGun.smx

24 Bytes
Binary file not shown.

scripting/TF2Sandbox-ToolGun.sp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define DEBUG
44

55
#define PLUGIN_AUTHOR "BattlefieldDuck"
6-
#define PLUGIN_VERSION "1.8"
6+
#define PLUGIN_VERSION "1.9"
77

88
#include <sourcemod>
99
#include <sdkhooks>
@@ -208,6 +208,9 @@ public Action Command_SetSequence(int client, int args)
208208
}
209209

210210
SetEntProp(entity, Prop_Send, "m_nSequence", seq);
211+
SetEntPropFloat(entity, Prop_Send, "m_flPlaybackRate", 1.0);
212+
SetEntPropFloat(entity, Prop_Send, "m_flCycle", 0.0);
213+
211214
Build_PrintToChat(client, "Set Entity %i to Sequence %i", entity, seq);
212215

213216
return Plugin_Continue;

0 commit comments

Comments
 (0)