View Single Post
Author Message
Borlea
Junior Member
Join Date: May 2014
Old 07-17-2015 , 03:55   TFCond for slowing needs a weapon switch to update
Reply With Quote #1

I'm slowing people using the TFCond_Slowed, and it adds to the client all fine.. but after it gets removed when the duration is over you need to switch weapons or do something like cloak/disguise and couple other things for it to actually go away. I'm trying to find a way to "update" the client so it gets removed without any disturbance but can't find a way. Or even just an alternative way to slow players would be nice too.

The way I'm doing it is as follows:
TF2_AddCondition(client, TFCond_Slowed, float(3));

I've done a bunch of research and conditions are the only way I can find to slow people.. And the slowing one is the only one with the issue of needing an "update" to be removed.

I attempted to create a timer to quickly switch to a random slot and back but it seems to happen too fast that switching back doesn't work(But the weapon switch does remove the slow effect)

Thanks in advance.. Still pretty nooby at sourcemod.. But I tried my best at doing the research and attempting things on my own before posting.
Borlea is offline